kea: create /var{,run/}kea + log to stdout

This commit is contained in:
Juergen Buchmueller 2016-12-12 21:50:39 +01:00
parent 27292063b9
commit cc4e3fc164
4 changed files with 8 additions and 1 deletions

View file

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

View file

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

View file

@ -1,3 +1,4 @@
#!/bin/sh
[ -r conf ] && . ./conf
mkdir -p /var/{,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.1.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)
@ -42,6 +42,10 @@ post_install() {
# keactrl and its config file is useless for us
rm ${DESTDIR}/usr/bin/keactrl
rm ${DESTDIR}/etc/kea/keactrl.conf
# Modify the logging output to stdout
sed -i ${DESTDIR}/etc/kea/kea.conf \
-e 's;"output": "/var/log/.*";"output": "stdout";'
}
libkea_package() {