talimat 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Tanım: The Eudev package contains programs for dynamic creation of device nodes.
  2. # URL: http://www.gentoo.org/proj/en/eudev/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=eudev
  6. surum=3.1.5
  7. devir=1
  8. kaynak=(http://dev.gentoo.org/~blueness/eudev/$isim-$surum.tar.gz
  9. http://anduin.linuxfromscratch.org/sources/other/udev-lfs-20140408.tar.bz2)
  10. derle() {
  11. cd $isim-$surum
  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. }