2015-03-28 18:55:09 +01:00
|
|
|
# Template file for 'dhcp'
|
|
|
|
pkgname=dhcp
|
|
|
|
version=4.2.3
|
|
|
|
revision=1
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="perl"
|
|
|
|
short_desc="Server from the Internet Software Consortium's implementation of DHCP"
|
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
license="ISC"
|
|
|
|
homepage="https://www.isc.org/software/dhcp"
|
|
|
|
distfiles="ftp://ftp.isc.org/isc/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=505c5754526ba92669bfd64daa8b529c6694c4528b45c3f35743c6fd4bd72897
|
2015-03-28 19:55:16 +01:00
|
|
|
conf_files="/etc/dhcpd.conf"
|
|
|
|
_configure_args+="--sbindir=/usr/bin --sysconfdir=/etc --enable-paranoia
|
2015-03-28 18:55:09 +01:00
|
|
|
--with-srv-lease-file=/var/lib/dhcp/dhcpd.leases
|
|
|
|
--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"
|
2015-03-28 19:55:16 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# assume that there is /dev/random. Fixes cross compiling
|
|
|
|
sed -i "2i\ac_cv_file__dev_random=yes" configure
|
|
|
|
|
|
|
|
# patching bind Makefile to patch with a cross fix while building (WTF?!)
|
|
|
|
sed -i "s#./configure#patch -p0 < $FILESDIR/003_cross_fix.patch \&\& ac_cv_file__dev_random=yes ./configure $configure_args#" bind/Makefile
|
|
|
|
fi
|
|
|
|
|
|
|
|
# set real configure_args
|
|
|
|
configure_args+="$_configure_args"
|
|
|
|
}
|
2015-03-28 18:55:09 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vsv dhcpd4
|
|
|
|
vsv dhcpd6
|
|
|
|
}
|
|
|
|
|
|
|
|
dhclient_package() {
|
|
|
|
short_desc="Client from the Internet Software Consortium's implementation of DHCP"
|
|
|
|
conf_files="/etc/dhclient.conf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc/dhclient.conf
|
2015-03-28 19:55:16 +01:00
|
|
|
vmove usr/bin/dhclient
|
2015-03-28 18:55:09 +01:00
|
|
|
vmove usr/share/man/man5/dhclient*
|
|
|
|
vmove usr/share/man/man8/dhclient*
|
|
|
|
vsv dhclient
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dhcp-devel_package() {
|
|
|
|
depends="dhcp>=${version}_${revision} dhclient>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|