summaryrefslogtreecommitdiffstats
path: root/udev/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'udev/Pkgfile')
-rw-r--r--udev/Pkgfile72
1 files changed, 40 insertions, 32 deletions
diff --git a/udev/Pkgfile b/udev/Pkgfile
index 31d74e860..483d59b52 100644
--- a/udev/Pkgfile
+++ b/udev/Pkgfile
@@ -2,45 +2,53 @@
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: libusb-compat,usbutils,gobject-introspection,gperf,acl,pciutils
+# Depends on: libusb,usbutils,gobject-introspection,gperf,acl,pciutils
# Run on:
name=udev
-version=173
+version=181
release=1
_lfs_release=20100128
-source=( http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration/$name/$name-$version.tar.bz2 \
-http://www.linuxfromscratch.org/lfs/downloads/development/udev-config-${_lfs_release}.tar.bz2)
-build() {
-if ( pkginfo -i|grep "^glib " > /dev/null) then
- EXTRA="--with-pci-ids-path=/usr/share/pci.ids.gz --enable-udev_acl"
-else
- EXTRA="--disable-extras --disable-introspection --disable-hwdb --disable-keymap"
-fi
-cd udev-$version
-
-install -dv $PKG/lib/{firmware,udev/devices/{pts,shm}}
-ln -s /proc/self/fd $PKG/lib/udev/devices/fd
-ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin
-ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout
-ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr
-ln -s /proc/kcore $PKG/lib/udev/devices/core
+source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.xz
+ http://www.linuxfromscratch.org/lfs/downloads/development/udev-config-${_lfs_release}.tar.bz2)
+build() {
+ if ( pkginfo -i|grep "^glib " > /dev/null) then
+ EXTRA="--with-pci-ids-path=/usr/share/pci.ids.gz --enable-udev_acl"
+ else
+ EXTRA="--disable-extras --disable-introspection --disable-hwdb --disable-keymap"
+ fi
+ cd udev-$version
-./configure --prefix=/usr \
- --sysconfdir=/etc --sbindir=/sbin \
- --with-rootlibdir=/lib --libexecdir=/lib/udev \
- --docdir=/usr/share/doc/udev-$version \
- $EXTRA
+ install -dv $PKG/lib/{firmware,udev/devices/{pts,shm}}
+ ln -s /proc/self/fd $PKG/lib/udev/devices/fd
+ ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin
+ ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout
+ ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr
+ ln -s /proc/kcore $PKG/lib/udev/devices/core
-make
+ BLKID_CFLAGS="-I/usr/include/blkid" \
+ BLKID_LIBS="-L/lib -lblkid" \
+ KMOD_CFLAGS="-I/usr/include" \
+ KMOD_LIBS="-L/lib -lkmod" \
+ ./configure --prefix=/usr \
+ --with-rootlibdir=/lib \
+ --docdir=/usr/share/doc/udev-$version \
+ --sbindir=/sbin \
+ --bindir=/sbin \
+ --libdir=/usr/lib \
+ --sysconfdir=/etc \
+ --libexecdir=/lib \
+ --enable-rule_generator \
+ --with-systemdsystemunitdir=no \
+ $EXTRA
+ make
-make install DESTDIR=$PKG mandir="/usr/share/man"
-install -m644 -v rules/misc/30-kernel-compat.rules \
- $PKG/lib/udev/rules.d/
-cd ../udev-config-${_lfs_release}
-make DESTDIR=$PKG install
-make DESTDIR=$PKG install-doc
-rm -r $PKG/usr/share/gtk-doc
-rm -r $PKG/usr/share/doc/udev-$version
+ make install DESTDIR=$PKG mandir="/usr/share/man"
+ install -m644 -v rules/misc/30-kernel-compat.rules $PKG/lib/udev/rules.d/
+ cd ../udev-config-${_lfs_release}
+ make DESTDIR=$PKG install
+ make DESTDIR=$PKG install-doc
+ rm -r $PKG/usr/share/gtk-doc
+ rm -r $PKG/usr/share/doc/udev-$version
}