milis/talimatname/genel/d/dhcp/talimat

56 lines
1.8 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: ISC DHCP paketi, DHCP için istemci ve sunucu programlarını içerir.
2016-02-24 01:27:23 +01:00
# URL: ftp://ftp.isc.org/isc/dhcp
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2018-08-17 11:27:53 +02:00
# Grup: ağ
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=dhcp
surum=4.3.5
devir=1
kaynak=(ftp://ftp.isc.org/isc/$isim/$surum/$isim-$surum.tar.gz
2017-03-31 05:41:00 +02:00
dhcp-4.3.3-client_script-1.patch
dhcp-4.3.3-missing_ipv6-1.patch
2016-02-24 01:27:23 +01:00
dhclient.conf ifconfig.eth0 dhcpd.conf )
2017-01-31 01:37:09 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
patch -Np1 -i $SRC/dhcp-4.3.3-missing_ipv6-1.patch
2017-01-31 01:37:09 +01:00
patch -Np1 -i $SRC/dhcp-4.3.3-client_script-1.patch
2016-02-24 01:27:23 +01:00
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 \
2017-01-31 01:37:09 +01:00
--with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases
2016-02-24 01:27:23 +01:00
make -j1
2017-01-31 01:37:09 +01:00
make DESTDIR=$PKG install
2016-02-24 01:27:23 +01:00
install -v -dm 755 $PKG/sbin
2017-01-31 01:37:09 +01:00
mv -v $PKG/usr/sbin/dhclient $PKG/sbin
2016-02-24 01:27:23 +01:00
install -v -m755 client/scripts/linux $PKG/sbin/dhclient-script
cp -v $SRC/dhclient.conf $PKG/etc/dhcp/dhclient.conf
2017-01-31 01:37:09 +01:00
2016-02-24 01:27:23 +01:00
install -v -dm 755 $PKG/var/lib/dhclient
2017-01-31 01:37:09 +01:00
install -v -dm 755 $PKG/etc/sysconfig
2017-03-31 05:41:00 +02:00
#gerekli servislerin kurulması
cd /sources/milis.git/ayarlar/servisler
make DESTDIR=$PKG servis-kur-dhclient
2017-01-31 01:37:09 +01:00
cp -v $SRC/ifconfig.eth0 $PKG/etc/sysconfig/ifconfig.eth0
2016-02-24 01:27:23 +01:00
install -v -dm 755 $PKG/var/lib/dhcpd
2017-01-31 01:37:09 +01:00
cp -v $SRC/dhcpd.conf $PKG/etc/dhcp/dhcpd.conf
2017-03-31 05:41:00 +02:00
make DESTDIR=$PKG kur-dhcpd
2016-02-24 01:27:23 +01:00
}