summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2009-04-28 07:11:19 +0000
committerMarkus Ullmann <jokey@gentoo.org>2009-04-28 07:11:19 +0000
commit62cdfc52a7644a62cff506f8afd7c24f6f049049 (patch)
tree7fa443683a7955a20c003116f5a36a9784c5d8fc /mail-mta/qpsmtpd
parent28 Apr 2009; Zac Medico <zmedico@gentoo.org> calibre-0.5.9.ebuild: (diff)
downloadgentoo-2-62cdfc52a7644a62cff506f8afd7c24f6f049049.tar.gz
gentoo-2-62cdfc52a7644a62cff506f8afd7c24f6f049049.tar.bz2
gentoo-2-62cdfc52a7644a62cff506f8afd7c24f6f049049.zip
Version bump, valid_auth hook dropped as not used by upstream plugins anymore
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'mail-mta/qpsmtpd')
-rw-r--r--mail-mta/qpsmtpd/ChangeLog10
-rw-r--r--mail-mta/qpsmtpd/qpsmtpd-0.81.ebuild85
2 files changed, 93 insertions, 2 deletions
diff --git a/mail-mta/qpsmtpd/ChangeLog b/mail-mta/qpsmtpd/ChangeLog
index 410389212c60..a53d12f8dcc3 100644
--- a/mail-mta/qpsmtpd/ChangeLog
+++ b/mail-mta/qpsmtpd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-mta/qpsmtpd
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/qpsmtpd/ChangeLog,v 1.2 2008/10/27 18:51:55 jokey Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/qpsmtpd/ChangeLog,v 1.3 2009/04/28 07:11:19 jokey Exp $
+
+*qpsmtpd-0.81 (28 Apr 2009)
+
+ 28 Apr 2009; Markus Ullmann <jokey@gentoo.org> +qpsmtpd-0.81.ebuild:
+ Version bump, valid_auth hook dropped as not used by upstream plugins
+ anymore
*qpsmtpd-0.43_rc2_pre955 (27 Oct 2008)
diff --git a/mail-mta/qpsmtpd/qpsmtpd-0.81.ebuild b/mail-mta/qpsmtpd/qpsmtpd-0.81.ebuild
new file mode 100644
index 000000000000..c040ae01d44a
--- /dev/null
+++ b/mail-mta/qpsmtpd/qpsmtpd-0.81.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/qpsmtpd/qpsmtpd-0.81.ebuild,v 1.1 2009/04/28 07:11:19 jokey Exp $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl"
+HOMEPAGE="http://smtpd.develooper.com"
+SRC_URI="http://smtpd.develooper.com/files/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS=""
+IUSE="postfix async ipv6 syslog"
+
+RDEPEND=">=dev-lang/perl-5.8.0
+ dev-perl/Net-DNS
+ virtual/perl-MIME-Base64
+ dev-perl/MailTools
+ async? ( dev-perl/IPC-Shareable
+ dev-perl/Socket6
+ dev-perl/Danga-Socket
+ dev-perl/ParaDNS
+ )
+ 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_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.40-badhelo_disconnect.patch
+ epatch "${FILESDIR}"/${PN}-0.40-badrcptto_allowrelay.patch
+ epatch "${FILESDIR}"/${PN}-0.40-clamd_conf.patch
+}
+
+src_compile() {
+ perl Makefile.PL PREFIX=/usr || die "Running Makefile.PL failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/qpsmtpd.xinetd qpsmtpd
+
+ dodir /usr/share/qpsmtpd
+ cp -Rf plugins "${D}"/usr/share/qpsmtpd/
+
+ diropts -m 0755 -o smtpd -g smtpd
+ dodir /var/spool/qpsmtpd
+ keepdir /var/spool/qpsmtpd
+
+ dodir /etc/qpsmtpd
+ insinto /etc/qpsmtpd
+ doins config.sample/*
+
+ echo "/usr/share/qpsmtpd/plugins" > "${D}"/etc/qpsmtpd/plugin_dirs
+ echo "/var/spool/qpsmtpd" > "${D}"/etc/qpsmtpd/spool_dir
+ if use syslog; then
+ echo "logging/syslog loglevel LOGINFO priority LOG_NOTICE" > "${D}"/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" > "${D}"/etc/qpsmtpd/logging
+ fi
+
+ newenvd "${FILESDIR}"/qpsmtpd.envd 99qpsmtpd
+
+ newconfd "${FILESDIR}"/qpsmtpd.confd qpsmtpd || die "Installing conf.d file"
+ newinitd "${FILESDIR}"/qpsmtpd.initd qpsmtpd || die "Installing init.d file"
+
+ dodoc CREDITS Changes README README.plugins STATUS
+}