public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/opensmtpd/
Date: Sun, 11 Oct 2015 01:04:50 +0000 (UTC)	[thread overview]
Message-ID: <1444525826.0d91b20aadbe9ee1f5ddab4ed6ad0c75514695ad.blueness@gentoo> (raw)

commit:     0d91b20aadbe9ee1f5ddab4ed6ad0c75514695ad
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 11 01:10:26 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Oct 11 01:10:26 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d91b20a

mail-mta/opensmtpd: add libressl support

Package-Manager: portage-2.2.20.1

 mail-mta/opensmtpd/opensmtpd-5.7.3_p1-r1.ebuild | 94 +++++++++++++++++++++++++
 1 file changed, 94 insertions(+)

diff --git a/mail-mta/opensmtpd/opensmtpd-5.7.3_p1-r1.ebuild b/mail-mta/opensmtpd/opensmtpd-5.7.3_p1-r1.ebuild
new file mode 100644
index 0000000..ef9a286
--- /dev/null
+++ b/mail-mta/opensmtpd/opensmtpd-5.7.3_p1-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools systemd versionator
+
+DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD"
+HOMEPAGE="http://www.opensmtpd.org/"
+MY_P="${P}"
+if [ $(get_last_version_component_index) -eq 4 ]; then
+	MY_P="${PN}-$(get_version_component_range 4-)"
+fi
+SRC_URI="https://www.opensmtpd.org/archives/${MY_P/_}.tar.gz"
+
+LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl pam +mta"
+
+DEPEND="!libressl? ( dev-libs/openssl:0 )
+		libressl? ( dev-libs/libressl )
+		sys-libs/zlib
+		pam? ( virtual/pam )
+		sys-libs/db:=
+		dev-libs/libevent
+		app-misc/ca-certificates
+		net-mail/mailbase
+		net-libs/libasr
+		!mail-mta/courier
+		!mail-mta/esmtp
+		!mail-mta/exim
+		!mail-mta/mini-qmail
+		!mail-mta/msmtp[mta]
+		!mail-mta/netqmail
+		!mail-mta/nullmailer
+		!mail-mta/postfix
+		!mail-mta/qmail-ldap
+		!mail-mta/sendmail
+		!mail-mta/ssmtp[mta]
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P/_}
+
+src_prepare() {
+	# Use /run instead of /var/run
+	sed -i -e '/pidfile_path/s:_PATH_VARRUN:"/run/":' openbsd-compat/pidfile.c || die
+
+	epatch_user
+	eautoreconf
+}
+
+src_configure() {
+	tc-export AR
+	AR="$(which "$AR")" econf \
+		--enable-table-db \
+		--with-privsep-user=smtpd \
+		--with-queue-user=smtpq \
+		--with-privsep-path=/var/empty \
+		--with-sock-dir=/run \
+		--sysconfdir=/etc/opensmtpd \
+		--with-ca-file=/etc/ssl/certs/ca-certificates.crt \
+		$(use_with pam)
+}
+
+src_install() {
+	default
+	newinitd "${FILESDIR}"/smtpd.initd smtpd
+	systemd_dounit "${FILESDIR}"/smtpd.{service,socket}
+	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() {
+	enewgroup smtpd 25
+	enewuser smtpd 25 -1 /var/empty smtpd
+	enewgroup smtpq 252
+	enewuser smtpq 252 -1 /var/empty smtpq
+}
+
+pkg_postinst() {
+	einfo
+	einfo "Plugins for SQLite, MySQL, PostgreSQL, LDAP, socketmaps,"
+	einfo "Redis, and many other useful addons and filters are"
+	einfo "available in the mail-filter/opensmtpd-extras package."
+	einfo
+}


             reply	other threads:[~2015-10-11  1:04 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-11  1:04 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-25 22:38 [gentoo-commits] repo/gentoo:master commit in: mail-mta/opensmtpd/ Sam James
2024-11-24 15:47 Jakov Smolić
2024-11-23 20:33 Arthur Zamarin
2024-11-23 16:02 Michał Górny
2024-11-17 11:17 Cédric Krier
2024-11-17 11:10 Cédric Krier
2024-06-02  7:30 Joonas Niilola
2024-01-13  7:49 Joonas Niilola
2024-01-13  7:49 Joonas Niilola
2023-09-05 14:23 Sam James
2023-09-05 14:23 Sam James
2023-09-05 14:23 Sam James
2023-09-05 14:23 Sam James
2023-08-28 16:07 David Seifert
2023-08-26 14:22 David Seifert
2023-04-29  5:47 Sam James
2023-03-31  7:15 Joonas Niilola
2022-12-25  7:49 Georgy Yakovlev
2022-12-13  5:27 Sam James
2022-07-28 13:31 Sam James
2021-07-22  3:19 Georgy Yakovlev
2021-07-06 19:00 Georgy Yakovlev
2021-06-22 22:38 Sam James
2021-06-16  7:40 Georgy Yakovlev
2021-05-25 20:44 Thomas Deutschmann
2021-05-02  8:54 Mikle Kolyada
2021-01-04  9:32 Sam James
2020-12-27 23:56 Sam James
2020-12-26 12:18 Jason A. Donenfeld
2020-12-22 18:57 Sam James
2020-12-22 17:08 Thomas Deutschmann
2020-08-25 19:24 Jason A. Donenfeld
2020-05-23 23:11 Jason A. Donenfeld
2020-05-23 23:08 Jason A. Donenfeld
2020-02-06  5:46 Georgy Yakovlev
2020-02-05 13:05 Jason A. Donenfeld
2020-02-05 13:02 Jason A. Donenfeld
2020-02-05 12:47 Jason A. Donenfeld
2020-02-05 12:29 Jason A. Donenfeld
2020-02-05 12:17 Jason A. Donenfeld
2020-02-05 12:07 Jason A. Donenfeld
2020-02-05 12:01 Jason A. Donenfeld
2020-01-29  8:51 Jason A. Donenfeld
2019-10-12 21:03 Mikle Kolyada
2018-05-18 12:34 Aaron Bauman
2017-06-15 10:41 Alexis Ballier
2017-03-04 17:18 Alexis Ballier
2016-10-14  6:42 Patrice Clement
2016-10-14  2:27 Jason Donenfeld
2016-10-14  2:23 Jason Donenfeld
2016-10-12 11:59 Jason Donenfeld
2016-07-05 12:09 Jason Donenfeld
2016-07-04  7:09 Jason Donenfeld
2016-06-25 15:16 Patrice Clement
2016-06-16 12:07 Jason Donenfeld
2016-06-07  8:41 Jason Donenfeld
2016-06-06 22:27 Jason Donenfeld
2016-06-06 17:59 Jason Donenfeld
2016-06-06 17:55 Jason Donenfeld
2016-06-06 17:46 Jason Donenfeld
2016-02-18 20:38 Jason Donenfeld
2015-10-02 12:59 Jason Donenfeld
2015-10-02 12:39 Jason Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444525826.0d91b20aadbe9ee1f5ddab4ed6ad0c75514695ad.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox