talimat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Tanım: Temel sistem özelliklerini göstermek ve ayarlamak için kullanılan yardımcı programlar
  2. # URL: http://www.gnu.org/software/coreutils/
  3. # Paketçi: milisarge@gmail.com
  4. # Gerekler:
  5. # Grup: temel
  6. isim=coreutils
  7. surum=8.25
  8. devir=2
  9. kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz
  10. http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-i18n-2.patch)
  11. derle() {
  12. cd $isim-$surum
  13. patch -Np1 -i ../$isim-$surum-i18n-2.patch
  14. FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr \
  15. --libexecdir=/lib --bindir=/bin --sbindir=/sbin \
  16. --enable-no-install-program=kill,uptime
  17. FORCE_UNSAFE_CONFIGURE=1 make || FORCE_UNSAFE_CONFIGURE=1 make -j1
  18. if [ -f /tools/bin/su ];then
  19. make NON_ROOT_USERNAME=nobody check-root
  20. echo "dummy:x:1000:nobody" >> /etc/group
  21. chown -Rv nobody .
  22. su-tools nobody -s /bin/bash -c "make -k RUN_EXPENSIVE_TESTS=yes check"||true
  23. sed -i '/dummy/d' /etc/group
  24. fi
  25. make DESTDIR=$PKG install
  26. mkdir $PKG/sbin
  27. mkdir -p $PKG/usr/share/man/man8
  28. mv -v $PKG/bin/chroot $PKG/sbin
  29. mv -v $PKG/usr/share/man/man1/chroot.1 $PKG/usr/share/man/man8/chroot.8
  30. sed -i s/\"1\"/\"8\"/1 $PKG/usr/share/man/man8/chroot.8
  31. rm -rf $PKG/usr/share/info/dir
  32. mkdir -p $PKG/usr/bin
  33. mv $PKG/bin/env $PKG/usr/bin
  34. mv $PKG/bin/install $PKG/usr/bin
  35. }