summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/unbound/unbound-1.8.0-r1.ebuild')
-rw-r--r--net-dns/unbound/unbound-1.8.0-r1.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/net-dns/unbound/unbound-1.8.0-r1.ebuild b/net-dns/unbound/unbound-1.8.0-r1.ebuild
index 6d9dee1cdfcb..f294360a6d44 100644
--- a/net-dns/unbound/unbound-1.8.0-r1.ebuild
+++ b/net-dns/unbound/unbound-1.8.0-r1.ebuild
@@ -110,7 +110,7 @@ multilib_src_configure() {
--enable-tfo-server \
--with-libevent="${EPREFIX%/}"/usr \
$(multilib_native_usex redis --with-libhiredis="${EPREFIX%/}/usr" --without-libhiredis) \
- --with-pidfile="${EPREFIX%/}"/var/run/unbound.pid \
+ --with-pidfile="${EPREFIX%/}"/run/unbound.pid \
--with-rootkey-file="${EPREFIX%/}"/etc/dnssec/root-anchors.txt \
--with-ssl="${EPREFIX%/}"/usr \
--with-libexpat="${EPREFIX%/}"/usr
@@ -125,8 +125,8 @@ multilib_src_configure() {
multilib_src_install_all() {
use python && python_optimize
- newinitd "${FILESDIR}"/unbound.initd unbound
- newconfd "${FILESDIR}"/unbound.confd unbound
+ newinitd "${FILESDIR}"/unbound-r1.initd unbound
+ newconfd "${FILESDIR}"/unbound-r1.confd unbound
systemd_dounit "${FILESDIR}"/unbound.service
systemd_dounit "${FILESDIR}"/unbound.socket
@@ -152,6 +152,11 @@ multilib_src_install_all() {
"${ED%/}/etc/unbound/unbound.conf" || \
die
+ # Used to store cache data
+ keepdir /var/lib/${PN}
+ fowners root:unbound /var/lib/${PN}
+ fperms 0750 /var/lib/${PN}
+
find "${ED}" -name '*.la' -delete || die
if ! use static-libs ; then
find "${ED}" -name "*.a" -delete || die