Portage is a package management system used by Gentoo Linux
# ChangeLog for net-mail/qpopper
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/ChangeLog,v 1.25 2008/06/04 04:46:21 darkside Exp $
04 Jun 2008; Jeremy Olexa
break out --enable-apop into a USE flag. Closes bug #106367, thanks to
Christian Heutger for reporting
14 May 2008; Diego Pettenò
qpopper-4.0.5-r3.ebuild:
Depend on virtual/pam as the code builds fine with OpenPAM.
12 Jun 2007; Marius Mauch
Replacing einfo with elog
09 Feb 2007; Diego Pettenò
Regenerate digest in Manifest2 format.
05 Jun 2005; Tuấn Văn
Comment HAVE_GDBM_H in config.h if USE=-gdbm. Resolve bug #95054.
*qpopper-4.0.5-r3 (23 May 2005)
23 May 2005; Fernando J. Pereda
+files/qpopper-CAN-2005-1151.patch, +files/qpopper-CAN-2005-1152.patch,
-qpopper-4.0.5.ebuild, -qpopper-4.0.5-r1.ebuild, -qpopper-4.0.5-r2.ebuild,
+qpopper-4.0.5-r3.ebuild:
security bump, wrt #90622
14 Feb 2005;
qpopper-4.0.5-r2.ebuild:
Add sys-libs/db DEPEND if we're not using gdbm.
*qpopper-4.0.5-r2 (13 Feb 2005)
13 Feb 2005; Fernando J. Pereda
+qpopper-4.0.5-r2.ebuild:
Remove pam.d stuff and make it depend on at least mailbase-0.00-r8 (#79240)
07 Feb 2005; Simon Stelling
added ~amd64
01 Nov 2004; Gustavo Zacarias
qpopper-4.0.5.ebuild:
Stable on sparc and LICENSE QA fix
29 Sep 2004; Tuan Van
stable on x86.
*qpopper-4.0.5-r1 (23 Jul 2004)
23 Jul 2004; Tuan Van
Add local use flags:
xinetd, resolve bug #17800
mailbox, resolve bug #42289
gdbm, optional gdbm support.
debug, optional debugging support
Fixed bug #34017.
26 Apr 2004; Aron Griffis
Add die following econf for bug 48950
20 Jan 2004; Martin Holzer
fowner syntax. Closes 38037
20 Jan 2004; Martin Holzer
fowner syntax. Closes 38037
20 Jan 2004; Martin Holzer
fowner syntax. Closes 38037
14 Jun 2003;
Removed installation of poppassd man page becuse binary isn't installed. Made configuration cleaner.
12 Jun 2003;
add Header
*qpopper-4.0.5 (14 Mar 2003)
29 Mar 2003; Martin Holzer
added einfo for using qpopper with netkit-inetd.
14 Mar 2003; Daniel Ahlberg
Security update.
06 Dec 2002; Rodney Rees
*qpopper-4.0.4 (20 Jun 2002)
24 Aug 2002; J.Alberto S.L.
fix some bugs #6864 (thanks Pau Oliva)
20 Jun 2002; J.Alberto S.L.
First relase.
AUX qpopper-CAN-2005-1151.patch 4628 RMD160 952a4dfc535d2b02fab10e8c760a764ce0e6b0ff SHA1 992b84fe1413638b5d01cf1e9d465a9a92e14a84 SHA256 0141a199029245e8e08277ae1ea53e6c7eb681cbb4e4aca2428b1b8e88b97451
AUX qpopper-CAN-2005-1152.patch 429 RMD160 6d13c9453ef334f4eeadc3b0808d3a3de6b50551 SHA1 da120a5c7cb822b2a07d23a9510aedfcc045917c SHA256 c2ab4c613ea259550c6b52d1a40d2f6cdf3edb21ec4a46fdefa3c31f142224e5
DIST qpopper-files.tar.bz2 269722 RMD160 38df1dfb02f10fca2759a93fe141faf39c176fa6 SHA1 2ee9b2c0a224e314a0c2c0bfabe1174ce193ac91 SHA256 48b66460285bacc1d497e466fe74650a0a956ece000eb9d05cec54b9296d38c2
DIST qpopper4.0.5.tar.gz 2281284 RMD160 e05c1b0823c8942d791c7b48af82e278a51591d2 SHA1 726d40da2210bf4b82541a28971986e6a3d9e1a5 SHA256 03560b6c36695364b84313d213be2dab4462ddcf11be3b6314966131bd9ba183
EBUILD qpopper-4.0.5-r3.ebuild 3860 RMD160 d6273dd9832738569b24b923a8c654f8e6352258 SHA1 fb9405314e52e4150ae03b18174ab43eadaa5f7c SHA256 3178bf79fe806951269174c4ae60f149b5210a538a78f81a0647a49b96414bc3
MISC ChangeLog 3288 RMD160 0d7ef52dabbdedd084290193be3136a14c4b443b SHA1 479a4cf496ce12cf890059f93f93bc22f298711a SHA256 b2df472772912e55ca80673536d2d929dc4f6049ce3cc628c67e58ede3329481
MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/qpopper-4.0.5-r3.ebuild,v 1.5 2008/06/04 04:46:21 darkside Exp $
inherit eutils
IUSE="apop debug gdbm mailbox pam ssl xinetd"
S=${WORKDIR}/${PN}${PV}
DESCRIPTION="A POP3 Server"
SRC_URI="ftp://ftp.qualcomm.com/eudora/servers/unix/popper/${PN}${PV}.tar.gz
http://www.ibiblio.org/gentoo/distfiles/qpopper-files.tar.bz2"
HOMEPAGE="http://www.eudora.com/products/unsupported/qpopper/index.html"
DEPEND="virtual/mta
xinetd? ( virtual/inetd )
gdbm? ( sys-libs/gdbm )
!gdbm? ( ~sys-libs/db-1.85 )
pam? (
virtual/pam
>=net-mail/mailbase-0.00-r8
)
ssl? ( dev-libs/openssl )"
SLOT="0"
LICENSE="qpopper"
KEYWORDS="~amd64 sparc x86"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-CAN-2005-1151.patch" || die "first patch failed"
epatch "${FILESDIR}/${PN}-CAN-2005-1152.patch" || die "second patch failed"
}
src_compile() {
local myconf
use pam && myconf="${myconf} --with-pam=pop3"
use mailbox && myconf="${myconf} --enable-home-dir-mail=Mailbox"
use xinetd && myconf="${myconf} --disable-standalone" || \
myconf="${myconf} --enable-standalone"
use apop && myconf="${myconf} --enable-apop=/etc/pop.auth"
myconf="${myconf} $(use_enable debug debugging)"
myconf="${myconf} $(use_with ssl openssl)"
myconf="${myconf} $(use_with gdbm)"
econf --enable-popuid=pop \
--enable-log-login \
--enable-specialauth \
--enable-log-facility=LOG_MAIL \
--enable-uw-kludge-flag \
${myconf} || die "econf failed"
if use ssl; then
umask 077
PEM1=`/bin/mktemp ${T}/openssl.XXXXXX`
PEM2=`/bin/mktemp ${T}/openssl.XXXXXX`
/usr/bin/openssl req -newkey rsa:1024 -keyout $$PEM1 \
-nodes -x509 -days 365 -out $$PEM2 << EOF
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
localhost.localdomain
root@localhost.localdomain
EOF
cat $$PEM1 > cert.pem
echo "" >> cert.pem
cat $$PEM2 >> cert.pem
#make || die
rm $$PEM1 $$PEM2
umask 022
fi
if ! use gdbm; then
sed -i -e 's|#define HAVE_GDBM_H|//#define HAVE_GDBM_H|g' "${S}"/config.h || \
die "sed failed"
fi
emake -j1 || die
}
src_install() {
into /usr
dosbin popper/popper popper/popauth
if use ssl; then
dodir /etc/mail/certs
fowners root:mail /etc/mail/certs
fperms 660 /etc/mail/certs
mv cert.pem "${D}"/etc/mail/certs
fperms 600 /etc/mail/certs/cert.pem
fowners root:0 /etc/mail/certs/cert.pem
fi
doman man/popauth.8 man/popper.8
dodoc "${WORKDIR}"/GUIDE.pdf
docinto rfc
dodoc doc/rfc*.txt
# pam.d stuff is provided by >=mailbase-0.00-r8. Bug #79240
# if use pam; then
# insinto /etc/pam.d
# newins ${WORKDIR}/pop3.pam-system-auth pop3
# fi
insinto /etc/xinetd.d
newins "${WORKDIR}"/pop3.xinetd pop-3
}
pkg_postinst () {
elog "PS. If you use APOP service to authenticate "
elog "the users you have to follow these steps: "
elog ""
elog "1) create a new account named pop"
elog "2) change the owner and permissions of"
elog " /usr/sbin/popauth:"
elog " # chown pop /usr/sbin/popauth"
elog " # chmod u+s /usr/sbin/popauth"
elog "3) initialize the authentication database:"
elog " # popauth -init"
elog "4) new users can be added by root:"
elog " # popauth -user
elog " or removed:"
elog " # popauth -delete
elog " Other users can add themeselves or change their"
elog " password with the command popauth"
elog "5) scripts or other non-interactive processes can add or change"
elog " the passwords with the following command:"
elog " # popauth -user
elog ""
elog "to enable qpopper in netkit-inetd just add this in one line"
elog "pop-3 stream tcp nowait root /usr/sbin/tcpd
/usr/sbin/in.qpopper -f /etc/qpopper.conf"
elog "into your /etc/inetd.conf"
}