From df50345543f34f78cee46b8a098bf3dbce31d23f Mon Sep 17 00:00:00 2001 From: milisbir Date: Fri, 15 Apr 2016 17:25:28 +0000 Subject: [PATCH] eudev-guncelleme --- talimatname/temel/eudev/eudev.kos-kur | 1 + talimatname/temel/eudev/talimat | 36 +++++++++++++++++++-------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 talimatname/temel/eudev/eudev.kos-kur diff --git a/talimatname/temel/eudev/eudev.kos-kur b/talimatname/temel/eudev/eudev.kos-kur new file mode 100644 index 000000000..22e793e5f --- /dev/null +++ b/talimatname/temel/eudev/eudev.kos-kur @@ -0,0 +1 @@ +rm -f /etc/udev/hwdb.bin diff --git a/talimatname/temel/eudev/talimat b/talimatname/temel/eudev/talimat index bf0148cd0..3a86e295b 100644 --- a/talimatname/temel/eudev/talimat +++ b/talimatname/temel/eudev/talimat @@ -1,10 +1,11 @@ + # 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 -# Packager: tnut at nutyx dot org +# Packager: milisarge name=eudev -version=3.1.2 +version=3.1.5 release=1 source=(http://dev.gentoo.org/~blueness/eudev/$name-$version.tar.gz @@ -14,12 +15,13 @@ build() { cd $name-$version sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl - -cat > config.cache << "EOF" -HAVE_BLKID=1 -BLKID_LIBS="-lblkid" -BLKID_CFLAGS="-I/tools/include" +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 \ @@ -34,16 +36,30 @@ EOF --config-cache \ --disable-gtk-doc-html \ --with-firmware-path=/lib/firmware -LIBRARY_PATH=/tools/lib make +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 -make LD_LIBRARY_PATH=/tools/lib DESTDIR=$PKG install - +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 }