diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-16 00:38:08 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-16 00:38:50 -0700 |
commit | f97ac1fff7ef25c941663425bb615db7b4dc7752 (patch) | |
tree | b66dfd838413db8d1d5ff51d1f9ad8275d6ab50a /mail-mta | |
parent | dev-perl/HTTP-Daemon: x86 stable wrt bug #796257 (diff) | |
download | gentoo-f97ac1fff7ef25c941663425bb615db7b4dc7752.tar.gz gentoo-f97ac1fff7ef25c941663425bb615db7b4dc7752.tar.bz2 gentoo-f97ac1fff7ef25c941663425bb615db7b4dc7752.zip |
mail-mta/opensmtpd: fix collision on merged /usr systems
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild b/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild index 53f82ac42483..9adcaa46b33a 100644 --- a/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild +++ b/mail-mta/opensmtpd/opensmtpd-6.8.0_p2.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz" LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" -IUSE="pam +mta berkdb" +IUSE="berkdb +mta pam split-usr" DEPEND=" acct-user/smtpd @@ -66,7 +66,9 @@ src_install() { if use mta ; then dodir /usr/sbin dosym smtpctl /usr/sbin/sendmail - dosym ../sbin/smtpctl /usr/bin/sendmail + # on USE="-split-usr" system sbin and bin are merged + # so symlink made above will collide with one below + use split-usr && dosym ../sbin/smtpctl /usr/bin/sendmail mkdir -p "${ED}"/usr/$(get_libdir) || die ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die fi |