talimat 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Description: The Eudev package contains programs for dynamic creation of device nodes.
  2. # URL: http://www.gentoo.org/proj/en/eudev/
  3. # Maintainers: Ian Stakenvicius,Tony Vroon,Francisco Blas Izquierdo Riera,Luca Barbato,Matt Thode,Richard Yao,Anthony G. Basile
  4. # Packager: milisarge
  5. name=eudev
  6. version=3.1.5
  7. release=1
  8. source=(http://dev.gentoo.org/~blueness/eudev/$name-$version.tar.gz
  9. http://anduin.linuxfromscratch.org/sources/other/udev-lfs-20140408.tar.bz2)
  10. build() {
  11. cd $name-$version
  12. sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
  13. if [ -d /tools ];then
  14. cat > config.cache << "EOF"
  15. HAVE_BLKID=1
  16. BLKID_LIBS="-lblkid"
  17. BLKID_CFLAGS="-I/tools/include"
  18. EOF
  19. fi
  20. ./configure --prefix=/usr --bindir=/sbin \
  21. --sbindir=/sbin --libdir=/usr/lib \
  22. --sysconfdir=/etc --libexecdir=/lib \
  23. --with-rootprefix= \
  24. --with-rootlibdir=/lib \
  25. --enable-split-usr \
  26. --enable-hwdb \
  27. --disable-introspection \
  28. --disable-gudev \
  29. --disable-static \
  30. --config-cache \
  31. --disable-gtk-doc-html \
  32. --with-firmware-path=/lib/firmware
  33. if [ -d /tools ];then
  34. LIBRARY_PATH=/tools/lib make
  35. else
  36. make
  37. fi
  38. mkdir -pv $PKG/lib/{firmware,udev/devices/pts}
  39. mkdir -pv $PKG/lib/udev/rules.d
  40. mkdir -pv $PKG/etc/udev/rules.d
  41. if [ -d /tools ];then
  42. make LD_LIBRARY_PATH=/tools/lib DESTDIR=$PKG install
  43. else
  44. make DESTDIR=$PKG install
  45. fi
  46. # man pages
  47. pushd man
  48. make DESTDIR=$PKG install-man7 install-man8
  49. cd $SRC
  50. make -j1 -f udev-lfs-20140408/Makefile.lfs DESTDIR=$PKG install
  51. # DB
  52. if [ -d /tools ];then
  53. LD_LIBRARY_PATH=/tools/lib $PKG/sbin/udevadm hwdb --update --root=$PKG
  54. else
  55. $PKG/sbin/udevadm hwdb --update --root=$PKG
  56. fi
  57. }