milis/talimatname/temel/eudev/talimat

66 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-04-15 19:25:28 +02:00
2016-02-24 01:27:23 +01:00
# Description: The Eudev package contains programs for dynamic creation of device nodes.
# URL: http://www.gentoo.org/proj/en/eudev/
# Maintainers: Ian Stakenvicius,Tony Vroon,Francisco Blas Izquierdo Riera,Luca Barbato,Matt Thode,Richard Yao,Anthony G. Basile
2016-04-15 19:25:28 +02:00
# Packager: milisarge
2016-02-24 01:27:23 +01:00
name=eudev
2016-04-15 19:25:28 +02:00
version=3.1.5
2016-02-24 01:27:23 +01:00
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
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
}