dhcp: fix missing dhclient-script

This commit is contained in:
Andrea Brancaleoni 2015-05-26 13:31:08 +02:00
parent def05c2207
commit 414cf293d6

View File

@ -1,7 +1,7 @@
# Template file for 'dhcp'
pkgname=dhcp
version=4.3.2
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="perl"
conf_files="/etc/dhcpd.conf"
@ -18,9 +18,10 @@ pre_configure() {
--with-srv6-lease-file=/var/lib/dhcp/dhcpd6.leases
--with-cli-lease-file=/var/lib/dhclient/dhclient.leases
--with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases"
local cargs="$(echo $configure_args | tr '\n' ' ')"
# patching bind Makefile to patch with a cross fix while building (WTF?!)
sed -i "s#./configure#patch -p0 < $FILESDIR/003_cross_fix.patch \&\& ./configure --with-randomdev=/dev/urandom $configure_args#" bind/Makefile
sed -i "s#./configure#patch -p0 < $FILESDIR/003_cross_fix.patch \&\& ./configure --with-randomdev=/dev/urandom $cargs#" bind/Makefile
# set real configure_args
export configure_args+="${_args}"
@ -43,6 +44,7 @@ dhclient_package() {
vmove usr/sbin/dhclient
vmove usr/share/man/man5/dhclient*
vmove usr/share/man/man8/dhclient*
vinstall client/scripts/linux 755 usr/sbin dhclient-script
vsv dhclient
}
}