eudev-guncelleme
This commit is contained in:
parent
ede6166eed
commit
df50345543
|
@ -0,0 +1 @@
|
|||
rm -f /etc/udev/hwdb.bin
|
|
@ -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
|
||||
|
||||
|
||||
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
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue