eudev-guncelleme

This commit is contained in:
milisbir 2016-04-15 17:25:28 +00:00
parent ede6166eed
commit df50345543
2 changed files with 27 additions and 10 deletions

View File

@ -0,0 +1 @@
rm -f /etc/udev/hwdb.bin

View File

@ -1,10 +1,11 @@
# Description: The Eudev package contains programs for dynamic creation of device nodes. # Description: The Eudev package contains programs for dynamic creation of device nodes.
# URL: http://www.gentoo.org/proj/en/eudev/ # 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 # 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 name=eudev
version=3.1.2 version=3.1.5
release=1 release=1
source=(http://dev.gentoo.org/~blueness/eudev/$name-$version.tar.gz source=(http://dev.gentoo.org/~blueness/eudev/$name-$version.tar.gz
@ -14,12 +15,13 @@ build() {
cd $name-$version cd $name-$version
sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
if [ -d /tools ];then
cat > config.cache << "EOF" cat > config.cache << "EOF"
HAVE_BLKID=1 HAVE_BLKID=1
BLKID_LIBS="-lblkid" BLKID_LIBS="-lblkid"
BLKID_CFLAGS="-I/tools/include" BLKID_CFLAGS="-I/tools/include"
EOF EOF
fi
./configure --prefix=/usr --bindir=/sbin \ ./configure --prefix=/usr --bindir=/sbin \
--sbindir=/sbin --libdir=/usr/lib \ --sbindir=/sbin --libdir=/usr/lib \
@ -34,16 +36,30 @@ EOF
--config-cache \ --config-cache \
--disable-gtk-doc-html \ --disable-gtk-doc-html \
--with-firmware-path=/lib/firmware --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/{firmware,udev/devices/pts}
mkdir -pv $PKG/lib/udev/rules.d mkdir -pv $PKG/lib/udev/rules.d
mkdir -pv $PKG/etc/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 # man pages
pushd man pushd man
make DESTDIR=$PKG install-man7 install-man8 make DESTDIR=$PKG install-man7 install-man8
cd $SRC cd $SRC
make -j1 -f udev-lfs-20140408/Makefile.lfs DESTDIR=$PKG install 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
} }