summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2013-05-27 16:04:08 +0000
committerJason A. Donenfeld <zx2c4@gentoo.org>2013-05-27 16:04:08 +0000
commit9816669d898ae2e425856212c10bbafea22dcba7 (patch)
tree2e79b3afa8bc8aabdbb8d155e169292bf001aa4a
parentssmtp puts it in bin too, and so we'll follow suit. (diff)
downloadgentoo-2-9816669d898ae2e425856212c10bbafea22dcba7.tar.gz
gentoo-2-9816669d898ae2e425856212c10bbafea22dcba7.tar.bz2
gentoo-2-9816669d898ae2e425856212c10bbafea22dcba7.zip
smtpctl can pretend to be sendmail
(Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key A5DE03AE)
-rw-r--r--mail-mta/opensmtpd/ChangeLog6
-rw-r--r--mail-mta/opensmtpd/metadata.xml3
-rw-r--r--mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild10
-rw-r--r--mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild10
4 files changed, 24 insertions, 5 deletions
diff --git a/mail-mta/opensmtpd/ChangeLog b/mail-mta/opensmtpd/ChangeLog
index 05e27f2771e9..99af9e0ca4ce 100644
--- a/mail-mta/opensmtpd/ChangeLog
+++ b/mail-mta/opensmtpd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/opensmtpd
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/ChangeLog,v 1.16 2013/05/24 23:40:52 zx2c4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/ChangeLog,v 1.17 2013/05/27 16:04:08 zx2c4 Exp $
+
+ 27 May 2013; Jason A. Donenfeld <zx2c4@gentoo.org> metadata.xml,
+ opensmtpd-5.3.2.201305241932_p1.ebuild, opensmtpd-5.3.2_p1-r1.ebuild:
+ smtpctl can pretend to be sendmail
*opensmtpd-5.3.2.201305241932_p1 (24 May 2013)
diff --git a/mail-mta/opensmtpd/metadata.xml b/mail-mta/opensmtpd/metadata.xml
index c7aad02804e2..23ffebf2e96c 100644
--- a/mail-mta/opensmtpd/metadata.xml
+++ b/mail-mta/opensmtpd/metadata.xml
@@ -8,5 +8,8 @@ OpenSMTPD is an implementation of the server-side SMTP protocol as defined by RF
<email>zx2c4@gentoo.org</email>
<name>Jason A. Donenfeld</name>
</maintainer>
+<use>
+<flag name='mta'>Enable this to install as system-wide MTA</flag>
+</use>
</pkgmetadata>
diff --git a/mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild
index 266e5b4a48dc..2a067f32f354 100644
--- a/mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild
+++ b/mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild,v 1.1 2013/05/24 23:40:52 zx2c4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.2.201305241932_p1.ebuild,v 1.2 2013/05/27 16:04:08 zx2c4 Exp $
EAPI=5
@@ -19,7 +19,7 @@ SRC_URI="http://www.opensmtpd.org/archives/${MY_DP/_}.tar.gz"
LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="pam sqlite"
+IUSE="pam sqlite +mta"
DEPEND="dev-libs/openssl
sys-libs/zlib
@@ -70,6 +70,12 @@ src_install() {
default
newinitd "${FILESDIR}"/smtpd.initd smtpd
use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
+ 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
+ fi
}
pkg_preinst() {
diff --git a/mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild b/mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild
index b9c735e8fab6..695af18596f0 100644
--- a/mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild
+++ b/mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild,v 1.2 2013/05/24 23:40:52 zx2c4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.2_p1-r1.ebuild,v 1.3 2013/05/27 16:04:08 zx2c4 Exp $
EAPI=5
@@ -19,7 +19,7 @@ SRC_URI="http://www.opensmtpd.org/archives/${MY_DP/_}.tar.gz"
LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE="pam sqlite"
+IUSE="pam sqlite +mta"
DEPEND="dev-libs/openssl
sys-libs/zlib
@@ -67,6 +67,12 @@ src_install() {
default
newinitd "${FILESDIR}"/smtpd.initd smtpd
use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
+ 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
+ fi
}
pkg_preinst() {