milis/talimatname/temel/eudev/talimat

65 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: The Eudev package contains programs for dynamic creation of device nodes.
# URL: http://www.gentoo.org/proj/en/eudev/
# Paketçi: milisarge
# Gerekler:
name=eudev
version=3.1.5
release=1
source=(http://dev.gentoo.org/~blueness/eudev/$name-$version.tar.gz
http://anduin.linuxfromscratch.org/sources/other/udev-lfs-20140408.tar.bz2)
build() {
cd $name-$version
sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
if [ -d /tools ];then
cat > config.cache << "EOF"
HAVE_BLKID=1
BLKID_LIBS="-lblkid"
BLKID_CFLAGS="-I/tools/include"
EOF
fi
./configure --prefix=/usr --bindir=/sbin \
--sbindir=/sbin --libdir=/usr/lib \
--sysconfdir=/etc --libexecdir=/lib \
--with-rootprefix= \
--with-rootlibdir=/lib \
--enable-split-usr \
--enable-hwdb \
--disable-introspection \
--disable-gudev \
--disable-static \
--config-cache \
--disable-gtk-doc-html \
--with-firmware-path=/lib/firmware
if [ -d /tools ];then
LIBRARY_PATH=/tools/lib make
else
make
fi
mkdir -pv $PKG/lib/{firmware,udev/devices/pts}
mkdir -pv $PKG/lib/udev/rules.d
mkdir -pv $PKG/etc/udev/rules.d
if [ -d /tools ];then
make LD_LIBRARY_PATH=/tools/lib DESTDIR=$PKG install
else
make DESTDIR=$PKG install
fi
# man pages
pushd man
make DESTDIR=$PKG install-man7 install-man8
cd $SRC
make -j1 -f udev-lfs-20140408/Makefile.lfs DESTDIR=$PKG install
# DB
if [ -d /tools ];then
LD_LIBRARY_PATH=/tools/lib $PKG/sbin/udevadm hwdb --update --root=$PKG
else
$PKG/sbin/udevadm hwdb --update --root=$PKG
fi
}