dhcp: use make_dir= to create /var/lib/dhcp
This commit is contained in:
parent
e6a64da84e
commit
55489eb16b
4 changed files with 3 additions and 3 deletions
0
srcpkgs/dhcp/files/dhclient/run
Executable file → Normal file
0
srcpkgs/dhcp/files/dhclient/run
Executable file → Normal file
1
srcpkgs/dhcp/files/dhcpd4/run
Executable file → Normal file
1
srcpkgs/dhcp/files/dhcpd4/run
Executable file → Normal file
|
@ -1,5 +1,4 @@
|
|||
#!/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}
|
||||
|
|
1
srcpkgs/dhcp/files/dhcpd6/run
Executable file → Normal file
1
srcpkgs/dhcp/files/dhcpd6/run
Executable file → Normal file
|
@ -1,5 +1,4 @@
|
|||
#!/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}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'dhcp'
|
||||
pkgname=dhcp
|
||||
version=4.4.1
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="dhcp-${version/P/-P}"
|
||||
build_style=gnu-configure
|
||||
disable_parallel_build=yes
|
||||
|
@ -14,6 +14,8 @@ homepage="https://www.isc.org/software/dhcp"
|
|||
distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
|
||||
checksum=2a22508922ab367b4af4664a0472dc220cc9603482cf3c16d9aff14f3a76b608
|
||||
|
||||
make_dirs="/var/lib/dhcp 0755 root root"
|
||||
|
||||
pre_configure() {
|
||||
local _args=" --sbindir=/usr/bin --enable-paranoia
|
||||
--with-srv-lease-file=/var/lib/dhcp/dhcpd.leases
|
||||
|
|
Loading…
Reference in a new issue