1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD"
9 HOMEPAGE="https://www.opensmtpd.org"
10 SRC_URI="https://www.opensmtpd.org/archives/${P/_}.tar.gz"
12 LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
14 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
15 IUSE="libressl pam +mta"
20 !libressl? ( >=dev-libs/openssl-1.1:0= )
21 libressl? ( dev-libs/libressl:0= )
22 elibc_musl? ( sys-libs/fts-standalone )
27 app-misc/ca-certificates
48 --sysconfdir=/etc/smtpd \
49 --with-path-mbox=/var/spool/mail \
50 --with-path-empty=/var/empty \
51 --with-path-socket=/run \
52 --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
53 --with-user-smtpd=smtpd \
54 --with-user-queue=smtpq \
55 --with-group-queue=smtpq \
56 $(use_with pam auth-pam)
61 newinitd "${FILESDIR}"/smtpd.initd smtpd
62 systemd_dounit "${FILESDIR}"/smtpd.{service,socket}
63 use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd
64 dosym smtpctl /usr/sbin/makemap
65 dosym smtpctl /usr/sbin/newaliases
68 dosym smtpctl /usr/sbin/sendmail
69 dosym ../sbin/smtpctl /usr/bin/sendmail
70 mkdir -p "${ED}"/usr/$(get_libdir) || die
71 ln -s --relative "${ED}"/usr/sbin/smtpctl "${ED}"/usr/$(get_libdir)/sendmail || die
77 ewarn "If you're upgrading from version 6.0, note that the"
78 ewarn "configuration syntax has changed, and config files"
79 ewarn "now live in /etc/smtpd instead of /etc/opensmtpd."