2015-03-28 18:55:09 +01:00
|
|
|
# Template file for 'dhcp'
|
|
|
|
pkgname=dhcp
|
2016-01-13 07:38:58 +01:00
|
|
|
_distver=4.3.3
|
|
|
|
_patchver=P1
|
|
|
|
version=${_distver}.${_patchver}
|
2016-02-11 06:08:34 +01:00
|
|
|
revision=3
|
2016-01-13 07:38:58 +01:00
|
|
|
wrksrc="dhcp-${_distver}-${_patchver}"
|
2015-03-28 18:55:09 +01:00
|
|
|
build_style=gnu-configure
|
2016-01-11 20:20:32 +01:00
|
|
|
disable_parallel_build=yes
|
2015-03-28 18:55:09 +01:00
|
|
|
hostmakedepends="perl"
|
2015-05-13 09:33:48 +02:00
|
|
|
conf_files="/etc/dhcpd.conf"
|
2015-03-28 18:55:09 +01:00
|
|
|
short_desc="Server from the Internet Software Consortium's implementation of DHCP"
|
2015-08-09 19:08:42 +02:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2015-03-28 18:55:09 +01:00
|
|
|
license="ISC"
|
|
|
|
homepage="https://www.isc.org/software/dhcp"
|
2016-01-13 07:38:58 +01:00
|
|
|
distfiles="http://ftp.isc.org/isc/dhcp/${_distver}-${_patchver}/dhcp-${_distver}-${_patchver}.tar.gz"
|
|
|
|
checksum=c11e896dffa1bfbc49462965d3f6dec45534e34068603546d9a236f2aa669921
|
2015-03-28 19:55:16 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
2015-06-02 11:00:24 +02:00
|
|
|
local _args=" --sbindir=/usr/bin --enable-paranoia
|
2015-05-13 09:33:48 +02: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-05-26 13:31:08 +02:00
|
|
|
local cargs="$(echo $configure_args | tr '\n' ' ')"
|
2015-05-13 09:33:48 +02:00
|
|
|
|
2015-03-28 20:03:44 +01:00
|
|
|
# patching bind Makefile to patch with a cross fix while building (WTF?!)
|
2016-01-11 20:20:32 +01:00
|
|
|
sed -i "s#./configure#patch -p0 < $FILESDIR/003_cross_fix.patch \&\& ./configure --with-randomdev=/dev/random $cargs#" bind/Makefile.in
|
2015-03-28 19:55:16 +01:00
|
|
|
|
|
|
|
# set real configure_args
|
2015-05-13 09:33:48 +02:00
|
|
|
export configure_args+="${_args}"
|
2015-03-28 19:55:16 +01:00
|
|
|
}
|
2015-03-28 18:55:09 +01:00
|
|
|
post_install() {
|
2015-05-13 09:33:48 +02:00
|
|
|
mv ${DESTDIR}/etc/dhclient.conf.example ${DESTDIR}/etc/dhclient.conf
|
|
|
|
mv ${DESTDIR}/etc/dhcpd.conf.example ${DESTDIR}/etc/dhcpd.conf
|
2015-03-28 20:30:29 +01:00
|
|
|
sed -i "s/^/#/" $DESTDIR/etc/dhclient.conf $DESTDIR/etc/dhcpd.conf
|
2015-03-28 18:55:09 +01:00
|
|
|
vsv dhcpd4
|
|
|
|
vsv dhcpd6
|
2015-03-29 09:10:46 +02:00
|
|
|
# Remove development stuff, useless...
|
|
|
|
rm -rf ${DESTDIR}/usr/include ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man/man3
|
2016-02-11 06:08:34 +01:00
|
|
|
vlicense LICENSE
|
2015-03-28 18:55:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dhclient_package() {
|
|
|
|
short_desc="Client from the Internet Software Consortium's implementation of DHCP"
|
|
|
|
conf_files="/etc/dhclient.conf"
|
2015-05-27 17:03:49 +02:00
|
|
|
make_dirs="/var/lib/dhclient 0755 root root"
|
2015-03-28 18:55:09 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove etc/dhclient.conf
|
2015-06-02 11:00:24 +02: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*
|
2015-06-02 11:00:24 +02:00
|
|
|
vbin client/scripts/linux dhclient-script
|
2015-03-28 18:55:09 +01:00
|
|
|
vsv dhclient
|
|
|
|
}
|
|
|
|
}
|