summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-09-11 14:05:17 +0000
committerPeter Volkov <pva@gentoo.org>2011-09-11 14:05:17 +0000
commitdace2b0e79c97b4f49abfe5397c2af5e4850c0cc (patch)
treef1976bcf2b9ff03c1bc025d2de087a2f1587bdf1 /net-mail
parentRemove intermediate version. (diff)
downloadgentoo-2-dace2b0e79c97b4f49abfe5397c2af5e4850c0cc.tar.gz
gentoo-2-dace2b0e79c97b4f49abfe5397c2af5e4850c0cc.tar.bz2
gentoo-2-dace2b0e79c97b4f49abfe5397c2af5e4850c0cc.zip
Version bump.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/qpopper/ChangeLog10
-rw-r--r--net-mail/qpopper/files/qpopper-4.1-parallel-build.patch13
-rw-r--r--net-mail/qpopper/qpopper-4.1.0.ebuild125
3 files changed, 146 insertions, 2 deletions
diff --git a/net-mail/qpopper/ChangeLog b/net-mail/qpopper/ChangeLog
index dd9fda141943..53a2bc108131 100644
--- a/net-mail/qpopper/ChangeLog
+++ b/net-mail/qpopper/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-mail/qpopper
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/ChangeLog,v 1.32 2010/08/09 07:43:18 pva Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/ChangeLog,v 1.33 2011/09/11 14:05:17 pva Exp $
+
+*qpopper-4.1.0 (11 Sep 2011)
+
+ 11 Sep 2011; Peter Volkov <pva@gentoo.org> +qpopper-4.1.0.ebuild,
+ +files/qpopper-4.1-parallel-build.patch:
+ Version bump.
09 Aug 2010; Peter Volkov <pva@gentoo.org> -qpopper-4.0.5-r3.ebuild,
-qpopper-4.0.14.ebuild, qpopper-4.0.16.ebuild, metadata.xml:
diff --git a/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch b/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch
new file mode 100644
index 000000000000..23cc7c39cece
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch
@@ -0,0 +1,13 @@
+=== modified file 'popper/Makefile.in'
+--- popper/Makefile.in 2011-09-11 13:29:01 +0000
++++ popper/Makefile.in 2011-09-11 13:29:23 +0000
+@@ -212,7 +212,7 @@
+ -I${common_srcdir} ${common_dir}/libcommon.a \
+ ${LIBS} ${LDFLAGS}
+
+-popauth: ${POPAUTHOBJS} ${MISSING_OBJS}
++popauth: ${POPAUTHOBJS} ${MISSING_OBJS} common_library
+ ${CC} -o popauth ${POPAUTHOBJS} ${NETWORK_LIBS} \
+ ${DBM_LIBS} ${MISSING_OBJS} \
+ ${common_dir}/libcommon.a
+
diff --git a/net-mail/qpopper/qpopper-4.1.0.ebuild b/net-mail/qpopper/qpopper-4.1.0.ebuild
new file mode 100644
index 000000000000..676ed090c486
--- /dev/null
+++ b/net-mail/qpopper/qpopper-4.1.0.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/qpopper-4.1.0.ebuild,v 1.1 2011/09/11 14:05:17 pva Exp $
+
+EAPI="4"
+#inherit eutils flag-o-matic ssl-cert
+inherit eutils ssl-cert
+
+MY_P=${PN}${PV}
+
+DESCRIPTION="A POP3 Server"
+HOMEPAGE="http://www.eudora.com/products/unsupported/qpopper/index.html"
+SRC_URI="ftp://ftp.qualcomm.com/eudora/servers/unix/popper/${MY_P}.tar.gz"
+
+LICENSE="qpopper ISOC-rfc"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="debug drac gdbm mailbox pam ssl xinetd apop"
+
+DEPEND="virtual/mta
+ xinetd? ( virtual/inetd )
+ gdbm? ( sys-libs/gdbm )
+ drac? ( mail-client/drac )
+ pam? (
+ >=sys-libs/pam-0.72
+ >=net-mail/mailbase-0.00-r8
+ )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ use apop && enewuser pop
+}
+
+src_prepare() {
+ # Test dirs are full of binary craft. Drop it.
+ rm -rf ./mmangle/test || die
+ epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
+ sed -i -e 's:-o popauth:& ${LDFLAGS}:' popper/Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable !xinetd standalone) \
+ $(use_enable debug debugging) \
+ $(use_with ssl openssl) \
+ $(use_with gdbm) \
+ $(use_with pam pam pop3) \
+ $(use_enable apop apop /etc/pop.auth) \
+ $(use_enable mailbox home-dir-mail Mailbox) \
+ $(use_with drac) \
+ --enable-shy \
+ --enable-popuid=pop \
+ --enable-log-login \
+ --enable-specialauth \
+ --enable-log-facility=LOG_MAIL
+
+ if ! use gdbm; then
+ sed -i -e 's|#define HAVE_GDBM_H|//#define HAVE_GDBM_H|g' config.h || die "sed failed"
+ fi
+}
+
+src_install() {
+ if use apop; then
+ dosbin popper/popauth
+ fowners pop:root /usr/sbin/popauth
+ fperms 4110 /usr/sbin/popauth
+ doman man/popauth.8
+ fi
+
+ dosbin popper/popper
+ doman man/popper.8
+
+ insinto /etc
+ doins "${FILESDIR}/qpopper.conf"
+
+ if use ssl; then
+ sed -i -e 's:^# \(set tls-server-cert-file\).*:\1 = /etc/mail/certs/cert.pem:' \
+ -e 's:^# \(set tls-support\).*$:\1 = stls:'\
+ "${D}/etc/qpopper.conf"
+ fi
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}/qpopper.xinetd" pop-3
+ else
+ newinitd "${FILESDIR}/qpopper.init.d" qpopper
+ fi
+
+ dodoc README doc/{Release.Notes,Changes}
+
+ docinto rfc
+ dodoc doc/rfc*.txt
+ dohtml doc/LMOS-FAQ.html
+
+ insinto /usr/share/doc/${PF}
+ doins GUIDE.pdf
+}
+
+pkg_postinst () {
+ if use ssl; then
+ install_cert /etc/mail/certs/cert
+ chown root:mail /etc/mail/certs
+ chmod 660 /etc/mail/certs
+ fi
+ if use apop; then
+ elog "To authenticate the users with APOP "
+ elog "you have to follow these steps:"
+ elog ""
+ elog "1) initialize the authentication database:"
+ elog " # popauth -init"
+ elog "2) new users can be added by root:"
+ elog " # popauth -user <user>"
+ elog " or removed:"
+ elog " # popauth -delete <user>"
+ elog " Other users can add themeselves or change their"
+ elog " password with the command popauth"
+ elog "3) scripts or other non-interactive processes can add or change"
+ elog " the passwords with the following command:"
+ elog " # popauth -user <user> <password>"
+ elog ""
+ fi
+}