diff --git a/unbound.be0 b/unbound.be0 index fa8f608ae..a6ab26351 100755 --- a/unbound.be0 +++ b/unbound.be0 @@ -56,6 +56,7 @@ SRCURL[0]="https://www.unbound.net/downloads/unbound-${PKGVERSION}.tar.gz" mee_configure() { bee_configure \ --disable-static \ + --enable-systemd \ --with-pidfile="/run/unbound.pid" \ --with-rootkey-file="/var/unbound/root.key" } @@ -73,6 +74,8 @@ mee_build() { mee_install_post() { start_cmd mv ${D}/etc/unbound/unbound.conf{,.sample} + start_cmd install -m 644 -D -t ${D}/lib/systemd/system ${B}/contrib/unbound.{service,socket} + start_cmd sed -i '/^ReadWritePaths=/ s,$, /var/unbound,' ${B}/contrib/unbound.service start_cmd install -o unbound -m 755 -d ${D}/var/unbound }