summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2020-02-05 13:01:02 +0100
committerJason A. Donenfeld <zx2c4@gentoo.org>2020-02-05 13:01:45 +0100
commitec9d988a9afbe8ef9f6e2e3111786e964ce170ce (patch)
tree6385855bb5fd38f8e978f5eab6b9076f2e3f09d9
parentnet-analyzer/nmap: Update patch (diff)
downloadgentoo-ec9d988a9afbe8ef9f6e2e3111786e964ce170ce.tar.gz
gentoo-ec9d988a9afbe8ef9f6e2e3111786e964ce170ce.tar.bz2
gentoo-ec9d988a9afbe8ef9f6e2e3111786e964ce170ce.zip
mail-mta/opensmtpd: use relative symlinks for qa
Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
-rw-r--r--mail-mta/opensmtpd/opensmtpd-6.0.3_p1-r2.ebuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/mail-mta/opensmtpd/opensmtpd-6.0.3_p1-r2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.0.3_p1-r2.ebuild
index bed05258e9c5..c5f91cb5029e 100644
--- a/mail-mta/opensmtpd/opensmtpd-6.0.3_p1-r2.ebuild
+++ b/mail-mta/opensmtpd/opensmtpd-6.0.3_p1-r2.ebuild
@@ -63,13 +63,14 @@ src_install() {
newinitd "${FILESDIR}"/smtpd.initd smtpd
systemd_dounit "${FILESDIR}"/smtpd.{service,socket}
use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
- dosym /usr/sbin/smtpctl /usr/sbin/makemap
- dosym /usr/sbin/smtpctl /usr/sbin/newaliases
+ dosym smtpctl /usr/sbin/makemap
+ dosym smtpctl /usr/sbin/newaliases
if use mta ; then
dodir /usr/sbin
- dosym /usr/sbin/smtpctl /usr/sbin/sendmail
- dosym /usr/sbin/smtpctl /usr/bin/sendmail
- dosym /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail
+ dosym smtpctl /usr/sbin/sendmail
+ dosym ../sbin/smtpctl /usr/bin/sendmail
+ mkdir -p "${ED}"/usr/$(get_libdir)
+ ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die
fi
}