From: Lars Wendler Date: Wed, 5 Dec 2018 10:13:12 +0000 (+0100) Subject: net-dns/nsd: Minor ebuild improvements. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=159c618d4383d24739152273ede234b3fe96703f;p=gentoo.git net-dns/nsd: Minor ebuild improvements. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Lars Wendler --- diff --git a/net-dns/nsd/nsd-4.1.25.ebuild b/net-dns/nsd/nsd-4.1.25.ebuild index 9a5fc16aa9bb..c5b30a4d01a1 100644 --- a/net-dns/nsd/nsd-4.1.25.ebuild +++ b/net-dns/nsd/nsd-4.1.25.ebuild @@ -93,7 +93,7 @@ src_install() { # remove the /run directory that usually resides on tmpfs and is # being taken care of by the nsd init script anyway (checkpath) - rm -r "${ED%/}"/run || die "Failed to remove /run" + rm -r "${ED}"/run || die "Failed to remove /run" keepdir /var/db/${PN} } @@ -104,8 +104,8 @@ pkg_postinst() { enewuser nsd -1 -1 -1 nsd # database directory, writable by nsd for database updates and zone transfers - install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd + install -d -m 750 -o nsd -g nsd "${EROOT}"/var/db/nsd # zones directory, writable by nsd for zone file updates (nsd-control write) - install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd + install -d -m 750 -o nsd -g nsd "${EROOT}"/var/lib/nsd }