net-dns/nsd: Minor ebuild improvements.
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 5 Dec 2018 10:13:12 +0000 (11:13 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 5 Dec 2018 10:15:08 +0000 (11:15 +0100)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-dns/nsd/nsd-4.1.25.ebuild

index 9a5fc16aa9bb75932d15db57db26f30ea46c2c0d..c5b30a4d01a1e9a3950df7f5004b272d44eb8a7d 100644 (file)
@@ -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
 }