milis/talimatname/temel/eudev/talimat

65 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: The Eudev package contains programs for dynamic creation of device nodes.
2016-02-24 01:27:23 +01:00
# URL: http://www.gentoo.org/proj/en/eudev/
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
isim=eudev
surum=3.1.5
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://dev.gentoo.org/~blueness/eudev/$isim-$surum.tar.gz
2017-10-27 21:56:50 +02:00
http://anduin.linuxfromscratch.org/sources/other/udev-lfs-20140408.tar.bz2)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:15:02 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
2016-04-15 19:25:28 +02:00
if [ -d /tools ];then
cat > config.cache << "EOF"
HAVE_BLKID=1
BLKID_LIBS="-lblkid"
BLKID_CFLAGS="-I/tools/include"
2016-02-24 01:27:23 +01:00
EOF
2016-04-15 19:25:28 +02:00
fi
2016-02-24 01:27:23 +01:00
./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
2016-04-15 19:25:28 +02:00
if [ -d /tools ];then
LIBRARY_PATH=/tools/lib make
else
make
fi
2016-02-24 01:27:23 +01:00
mkdir -pv $PKG/lib/{firmware,udev/devices/pts}
mkdir -pv $PKG/lib/udev/rules.d
mkdir -pv $PKG/etc/udev/rules.d
2016-04-15 19:25:28 +02:00
if [ -d /tools ];then
make LD_LIBRARY_PATH=/tools/lib DESTDIR=$PKG install
else
make DESTDIR=$PKG install
fi
2016-02-24 01:27:23 +01:00
# man pages
pushd man
make DESTDIR=$PKG install-man7 install-man8
cd $SRC
make -j1 -f udev-lfs-20140408/Makefile.lfs DESTDIR=$PKG install
2016-04-15 19:25:28 +02:00
# 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
2016-02-24 01:27:23 +01:00
}