net-vpn/libreswan: [QA] Fix UnnecessarySlashStrip
authorDavid Seifert <soap@gentoo.org>
Sat, 8 Feb 2020 16:23:20 +0000 (17:23 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 8 Feb 2020 16:23:20 +0000 (17:23 +0100)
Signed-off-by: David Seifert <soap@gentoo.org>
net-vpn/libreswan/libreswan-3.29.ebuild

index b0f25268995f8f5d0bbed59f88589e750707bbfd..9036edff1ba7f20e8bf097996f99198cd523fbe6 100644 (file)
@@ -105,7 +105,7 @@ src_install() {
 }
 
 pkg_postinst() {
-       local IPSEC_CONFDIR=${ROOT%/}/etc/ipsec.d
+       local IPSEC_CONFDIR=${ROOT}/etc/ipsec.d
        if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
                ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
                certutil -N -d "${IPSEC_CONFDIR}" --empty-password