diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-04-11 22:12:05 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-04-11 22:52:25 +0200 |
commit | 78de78f05b99c91baa9acf0fc1fab76a09540804 (patch) | |
tree | 39d8575496cb95780e11f4b5f6ff23a1bc197f87 /mail-mta/qpsmtpd | |
parent | app-crypt/scute: Remove old 1.6.0 (diff) | |
download | gentoo-78de78f05b99c91baa9acf0fc1fab76a09540804.tar.gz gentoo-78de78f05b99c91baa9acf0fc1fab76a09540804.tar.bz2 gentoo-78de78f05b99c91baa9acf0fc1fab76a09540804.zip |
mail-mta/qpsmtpd: migrate to GLEP 81
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'mail-mta/qpsmtpd')
-rw-r--r-- | mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild | 83 | ||||
-rw-r--r-- | mail-mta/qpsmtpd/qpsmtpd-9999.ebuild | 30 |
2 files changed, 96 insertions, 17 deletions
diff --git a/mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild b/mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild new file mode 100644 index 000000000000..334237eed909 --- /dev/null +++ b/mail-mta/qpsmtpd/qpsmtpd-0.95-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +[[ ${PV} == *9999 ]] && SCM="git-r3" +inherit perl-module ${SCM} + +DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl" +HOMEPAGE="https://smtpd.github.io/qpsmtpd/" +if [[ ${PV} != *9999 ]]; then + SRC_URI="https://github.com/smtpd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +else + # This is a spotted development fork with many improvements + EGIT_REPO_URI="https://github.com/smtpd/${PN}.git" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="postfix ipv6 syslog" + +RDEPEND=" + acct-group/smtpd + acct-user/smtpd + dev-lang/perl + dev-perl/Danga-Socket + dev-perl/IPC-Shareable + dev-perl/MailTools + dev-perl/Net-DNS + dev-perl/ParaDNS + dev-perl/Socket6 + dev-perl/UNIVERSAL-isa + postfix? ( acct-group/postdrop ) + virtual/inetd + virtual/perl-MIME-Base64 + ipv6? ( dev-perl/IO-Socket-INET6 ) + syslog? ( virtual/perl-Sys-Syslog ) +" + +src_unpack() { + if [[ ${PV} != *9999 ]]; then + unpack ${A} + cd "${S}" + else + git-r3_src_unpack + cd "${S}" + fi +} + +src_install() { + perl-module_src_install + + insinto /etc/xinetd.d + newins "${FILESDIR}"/qpsmtpd.xinetd qpsmtpd + + dodir /usr/share/qpsmtpd + cp -Rf plugins "${ED}"/usr/share/qpsmtpd/ || die + + diropts -m 0755 -o smtpd -g smtpd + keepdir /var/spool/qpsmtpd + + insinto /etc/qpsmtpd + doins config.sample/* + + echo "/usr/share/qpsmtpd/plugins" > "${ED}"/etc/qpsmtpd/plugin_dirs || die + echo "/var/spool/qpsmtpd" > "${ED}"/etc/qpsmtpd/spool_dir || die + if use syslog; then + echo "logging/syslog loglevel LOGINFO priority LOG_NOTICE" > "${ED}"/etc/qpsmtpd/logging + else + diropts -m 0755 -o smtpd -g smtpd + dodir /var/log/qpsmtpd + keepdir /var/log/qpsmtpd + echo "logging/file loglevel LOGINFO /var/log/qpsmtpd/%Y-%m-%d" > "${ED}"/etc/qpsmtpd/logging + fi + + newenvd "${FILESDIR}"/qpsmtpd.envd 99qpsmtpd + + newconfd "${FILESDIR}"/qpsmtpd.confd qpsmtpd + newinitd "${FILESDIR}"/qpsmtpd.initd-r1 qpsmtpd + + dodoc CREDITS Changes README.md README.plugins.md STATUS UPGRADING.md +} diff --git a/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild b/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild index 2964681181e3..334237eed909 100644 --- a/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild +++ b/mail-mta/qpsmtpd/qpsmtpd-9999.ebuild @@ -4,7 +4,7 @@ EAPI=7 [[ ${PV} == *9999 ]] && SCM="git-r3" -inherit perl-module user ${SCM} +inherit perl-module ${SCM} DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl" HOMEPAGE="https://smtpd.github.io/qpsmtpd/" @@ -20,27 +20,23 @@ LICENSE="MIT" SLOT="0" IUSE="postfix ipv6 syslog" -RDEPEND=">=dev-lang/perl-5.8.0 - >=dev-perl/Net-DNS-0.690.0 - virtual/perl-MIME-Base64 - dev-perl/MailTools - dev-perl/IPC-Shareable - dev-perl/Socket6 +RDEPEND=" + acct-group/smtpd + acct-user/smtpd + dev-lang/perl dev-perl/Danga-Socket + dev-perl/IPC-Shareable + dev-perl/MailTools + dev-perl/Net-DNS dev-perl/ParaDNS + dev-perl/Socket6 dev-perl/UNIVERSAL-isa + postfix? ( acct-group/postdrop ) + virtual/inetd + virtual/perl-MIME-Base64 ipv6? ( dev-perl/IO-Socket-INET6 ) syslog? ( virtual/perl-Sys-Syslog ) - virtual/inetd" - -pkg_setup() { - enewgroup smtpd - local additional_groups - if use postfix; then - additional_groups="${additional_groups},postdrop" - fi - enewuser smtpd -1 -1 /var/spool/qpsmtpd smtpd${additional_groups} -} +" src_unpack() { if [[ ${PV} != *9999 ]]; then |