milis/talimatname/genel/dhcp/talimat

55 lines
1.8 KiB
Plaintext
Raw Normal View History

2017-03-22 12:40:51 +01:00
# Description: 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-01-31 01:37:09 +01:00
# Packager: milisarge
2016-02-24 01:27:23 +01:00
# Depends on:
name=dhcp
2017-03-31 05:41:00 +02:00
version=4.3.5
2016-02-24 01:27:23 +01:00
release=1
2017-03-31 05:41:00 +02:00
source=(ftp://ftp.isc.org/isc/$name/$version/$name-$version.tar.gz
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
2016-02-24 01:27:23 +01:00
build() {
cd $name-$version
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
}