talimat 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Tanım: ISC DHCP paketi, DHCP için istemci ve sunucu programlarını içerir.
  2. # URL: ftp://ftp.isc.org/isc/dhcp
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: ağ
  6. isim=dhcp
  7. surum=4.3.5
  8. devir=1
  9. kaynak=(ftp://ftp.isc.org/isc/$isim/$surum/$isim-$surum.tar.gz
  10. dhcp-4.3.3-client_script-1.patch
  11. dhcp-4.3.3-missing_ipv6-1.patch
  12. dhclient.conf ifconfig.eth0 dhcpd.conf )
  13. derle() {
  14. cd $isim-$surum
  15. patch -Np1 -i $SRC/dhcp-4.3.3-missing_ipv6-1.patch
  16. patch -Np1 -i $SRC/dhcp-4.3.3-client_script-1.patch
  17. CFLAGS="-D_PATH_DHCLIENT_SCRIPT='\"/sbin/dhclient-script\"' \
  18. -D_PATH_DHCPD_CONF='\"/etc/dhcp/dhcpd.conf\"' \
  19. -D_PATH_DHCLIENT_CONF='\"/etc/dhcp/dhclient.conf\"'" \
  20. ./configure --prefix=/usr \
  21. --sysconfdir=/etc/dhcp \
  22. --localstatedir=/var \
  23. --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
  24. --with-srv6-lease-file=/var/lib/dhcpd/dhcpd6.leases \
  25. --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
  26. --with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases
  27. make -j1
  28. make DESTDIR=$PKG install
  29. install -v -dm 755 $PKG/sbin
  30. mv -v $PKG/usr/sbin/dhclient $PKG/sbin
  31. install -v -m755 client/scripts/linux $PKG/sbin/dhclient-script
  32. cp -v $SRC/dhclient.conf $PKG/etc/dhcp/dhclient.conf
  33. install -v -dm 755 $PKG/var/lib/dhclient
  34. install -v -dm 755 $PKG/etc/sysconfig
  35. #gerekli servislerin kurulması
  36. cd /sources/milis.git/ayarlar/servisler
  37. make DESTDIR=$PKG servis-kur-dhclient
  38. cp -v $SRC/ifconfig.eth0 $PKG/etc/sysconfig/ifconfig.eth0
  39. install -v -dm 755 $PKG/var/lib/dhcpd
  40. cp -v $SRC/dhcpd.conf $PKG/etc/dhcp/dhcpd.conf
  41. make DESTDIR=$PKG kur-dhcpd
  42. }