talimat 720 B

12345678910111213141516171819202122232425262728293031
  1. # Tanım: UNIX araçlarının hafif hallerinin tek ikilide yer alması
  2. # URL: http://busybox.net/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: sistem
  6. isim=busybox
  7. surum=1.27.2
  8. devir=2
  9. kaynak=(http://busybox.net/downloads/$isim-$surum.tar.bz2
  10. busybox-1.27.0_lzip-0.patch)
  11. derle() {
  12. cd $isim-$surum
  13. # https://bugs.gentoo.org/show_bug.cgi?id=310413
  14. export CFLAGS+=' -fno-strict-aliasing'
  15. [ "$CC" ] || CC=gcc
  16. patch -Np1 -i "${SRC}/busybox-1.27.0_lzip-0.patch"
  17. #for i in $SRC/*.patch; do
  18. # patch -p1 -i $i
  19. #done
  20. make defconfig
  21. make CC="$CC"
  22. install -m 0755 -D busybox $PKG/sbin/busybox
  23. make clean
  24. export LDFLAGS+=' -static'
  25. make defconfig
  26. make CC="$CC"
  27. install -m 0755 -D busybox $PKG/sbin/busybox.static
  28. }