1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # Tanım: ISC DHCP paketi, DHCP için istemci ve sunucu programlarını içerir.
- # URL: ftp://ftp.isc.org/isc/dhcp
- # Paketçi: milisarge
- # Gerekler:
- # Grup: ağ
- isim=dhcp
- surum=4.3.5
- devir=1
- kaynak=(ftp://ftp.isc.org/isc/$isim/$surum/$isim-$surum.tar.gz
- dhcp-4.3.3-client_script-1.patch
- dhcp-4.3.3-missing_ipv6-1.patch
- dhclient.conf ifconfig.eth0 dhcpd.conf )
- derle() {
- cd $isim-$surum
- patch -Np1 -i $SRC/dhcp-4.3.3-missing_ipv6-1.patch
- patch -Np1 -i $SRC/dhcp-4.3.3-client_script-1.patch
- CFLAGS="-D_PATH_DHCLIENT_SCRIPT='\"/sbin/dhclient-script\"' \
- -D_PATH_DHCPD_CONF='\"/etc/dhcp/dhcpd.conf\"' \
- -D_PATH_DHCLIENT_CONF='\"/etc/dhcp/dhclient.conf\"'" \
- ./configure --prefix=/usr \
- --sysconfdir=/etc/dhcp \
- --localstatedir=/var \
- --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
- --with-srv6-lease-file=/var/lib/dhcpd/dhcpd6.leases \
- --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
- --with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases
- make -j1
- make DESTDIR=$PKG install
- install -v -dm 755 $PKG/sbin
- mv -v $PKG/usr/sbin/dhclient $PKG/sbin
- install -v -m755 client/scripts/linux $PKG/sbin/dhclient-script
- cp -v $SRC/dhclient.conf $PKG/etc/dhcp/dhclient.conf
- install -v -dm 755 $PKG/var/lib/dhclient
- install -v -dm 755 $PKG/etc/sysconfig
- #gerekli servislerin kurulması
- cd /sources/milis.git/ayarlar/servisler
-
- make DESTDIR=$PKG servis-kur-dhclient
- cp -v $SRC/ifconfig.eth0 $PKG/etc/sysconfig/ifconfig.eth0
- install -v -dm 755 $PKG/var/lib/dhcpd
- cp -v $SRC/dhcpd.conf $PKG/etc/dhcp/dhcpd.conf
-
- make DESTDIR=$PKG kur-dhcpd
- }
|