kea: create only /run/kea on services, use make_dirs= for /var/kea

This commit is contained in:
maxice8 2019-01-16 15:47:42 -02:00 committed by maxice8
parent 55edab1a34
commit f501fd4f9a
4 changed files with 7 additions and 5 deletions

2
srcpkgs/kea/files/kea-dhcp-ddns/run Executable file → Normal file
View File

@ -1,4 +1,4 @@
#!/bin/sh
[ -r conf ] && . ./conf
mkdir -p /var/kea /var/run/kea
mkdir -p /run/kea
exec kea-dhcp-ddns ${OPTS:=-c /etc/kea/kea.conf}

2
srcpkgs/kea/files/kea-dhcp4/run Executable file → Normal file
View File

@ -1,5 +1,5 @@
#!/bin/sh
[ -r conf ] && . ./conf
[ -n "$WAIT_IFACE" ] && [ -z "$(ip -f inet address show "$WAIT_IFACE")" ] && exit 1
mkdir -p /var/kea /var/run/kea
mkdir -p /run/kea
exec kea-dhcp4 ${OPTS:=-c /etc/kea/kea.conf}

2
srcpkgs/kea/files/kea-dhcp6/run Executable file → Normal file
View File

@ -1,5 +1,5 @@
#!/bin/sh
[ -r conf ] && . ./conf
[ -n "$WAIT_IFACE" ] && [ -z "$(ip -f inet6 address show "$WAIT_IFACE")" ] && exit 1
mkdir -p /var/kea /var/run/kea
mkdir -p /run/kea
exec kea-dhcp6 ${OPTS:=-c /etc/kea/kea.conf}

View File

@ -1,7 +1,7 @@
# Template file for 'kea'
pkgname=kea
version=1.5.0
revision=2
revision=3
build_style=gnu-configure
configure_args="--enable-generate-docs --with-openssl=${XBPS_CROSS_BASE}/usr
$(vopt_if mysql --with-dhcp-mysql)
@ -12,8 +12,8 @@ makedepends="boost-devel log4cplus-devel python3-devel
$(vopt_if botan botan-devel libressl-devel)
$(vopt_if mysql libmysqlclient-devel)
$(vopt_if pgsql postgresql-libs-devel)"
checkdepends="procps-ng" #needs pgrep
depends="libkea>=0"
checkdepends="procps-ng" #needs pgrep
conf_files="/etc/kea/*.conf"
short_desc="Next generation DHCPv4/v6 server"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
@ -32,6 +32,8 @@ build_options_default="pgsql"
# Reduce log spamming for deprecated auto_ptr
CXXFLAGS="-Wno-deprecated-declarations -O2"
make_dirs="/var/kea 755 root root"
post_install() {
vsv kea-dhcp4
vsv kea-dhcp6