From ad2933bc11e8ff5450488651f208ecc06766829d Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Thu, 11 Feb 2016 00:08:34 -0500 Subject: [PATCH] dhcp: Create runtime-essential files --- srcpkgs/dhcp/files/dhcpd4/run | 2 ++ srcpkgs/dhcp/files/dhcpd6/run | 2 ++ srcpkgs/dhcp/template | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/dhcp/files/dhcpd4/run b/srcpkgs/dhcp/files/dhcpd4/run index 0a50933b987..181a47e70b8 100755 --- a/srcpkgs/dhcp/files/dhcpd4/run +++ b/srcpkgs/dhcp/files/dhcpd4/run @@ -1,3 +1,5 @@ #!/bin/sh [ -r conf ] && . ./conf +mkdir -p /var/lib/dhcp/ +touch /var/lib/dhcp/dhcpd.leases exec dhcpd -f ${OPTS:=-4 -q -pf /run/dhcpd4.pid} diff --git a/srcpkgs/dhcp/files/dhcpd6/run b/srcpkgs/dhcp/files/dhcpd6/run index dc359ba5c76..faba89b6bc5 100755 --- a/srcpkgs/dhcp/files/dhcpd6/run +++ b/srcpkgs/dhcp/files/dhcpd6/run @@ -1,3 +1,5 @@ #!/bin/sh [ -r conf ] && . ./conf +mkdir -p /var/lib/dhcp/ +touch /var/lib/dhcp/dhcpd.leases exec dhcpd -f ${OPTS:=-6 -q -pf /run/dhcpd6.pid} diff --git a/srcpkgs/dhcp/template b/srcpkgs/dhcp/template index 7058ff9b7f3..08812b0dff6 100644 --- a/srcpkgs/dhcp/template +++ b/srcpkgs/dhcp/template @@ -3,7 +3,7 @@ pkgname=dhcp _distver=4.3.3 _patchver=P1 version=${_distver}.${_patchver} -revision=2 +revision=3 wrksrc="dhcp-${_distver}-${_patchver}" build_style=gnu-configure disable_parallel_build=yes @@ -38,6 +38,7 @@ post_install() { vsv dhcpd6 # Remove development stuff, useless... rm -rf ${DESTDIR}/usr/include ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man/man3 + vlicense LICENSE } dhclient_package() {