Portage is a package management system used by Gentoo Linux
# ChangeLog for net-mail/popa3d
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/popa3d/ChangeLog,v 1.33 2007/09/23 16:50:47 philantrop Exp $
23 Sep 2007; Wulf C. Krueger
Keyworded ~amd64 as per bug 190075.
14 Apr 2007; Torsten Veller
Use newinitd.
22 Feb 2007; Piotr Jaroszyński
Transition to Manifest2.
06 Jan 2007; Fernando J. Pereda
-popa3d-0.6.4.1-r2.ebuild, -popa3d-1.0.ebuild:
QA: Clean unused versions.
01 Jan 2007; Andrej Kacian
Stable on x86, bug #152498.
23 Dec 2006; Tobias Scherbaum
Stable on ppc wrt bug #152498.
20 Dec 2006; Gustavo Zacarias
Stable on sparc wrt #152498
26 Aug 2006; Fernando J. Pereda
popa3d-0.6.4.1-r2.ebuild, popa3d-1.0.ebuild, popa3d-1.0.2.ebuild:
Fix enewuser calls wrt bug #145153. Spotted by James Rowe
*popa3d-1.0.2 (23 May 2006)
23 May 2006; Fernando J. Pereda
Version bump + cleanups and QA fixes. Closes bug #125814
23 May 2006; Bryan Østergaard
Remove port001 from metadata, bug 26349.
01 Dec 2005; Jason Wever
Stable on SPARC.
16 Nov 2005; Ian Leitch
Stable on x86.
23 Aug 2005; Andrej Kacian
popa3d-1.0.ebuild:
Use -1 for shell argument to enewuser. Bug #103421.
*popa3d-1.0 (12 Aug 2005)
12 Aug 2005; Ian Leitch
Version bump. This version uses some silly default values which are way too
high for most systems, these have been replaced by some more sensible
values.
23 May 2005; Ian Leitch
popa3d-0.6.4.1-r2.ebuild:
Patches pushed to the mirrors, SRC_URI updated - #93647. keepdir on
/var/empty - #93659. Removed stale revision.
21 May 2005; Ian Leitch
Stable on x86
*popa3d-0.6.4.1-r2 (26 Apr 2005)
26 Apr 2005; Ian Leitch
Ebuild cleanups, thanks to Diego Pettenò
*popa3d-0.6.4.1-r1 (24 Feb 2005)
24 Feb 2005;
+popa3d-0.6.4.1-r1.ebuild, -popa3d-0.6.4.1.ebuild, -popa3d-0.6.4.ebuild:
Fixed up to comply with bug #79240. Stable on x86. Cleaned out old versions.
06 Nov 2004; Jason Wever
Added ~sparc keyword to 0.6.4.1 as it wasn't carried over in the version bump.
06 Sep 2004; Ciaran McCreesh
popa3d-0.6.4.1.ebuild, popa3d-0.6.4.ebuild:
Switch to use epause and ebeep, bug #62950
03 Aug 2004; David Holm
Added to ~ppc.
*popa3d-0.6.4.1 (28 Jul 2004)
28 Jul 2004; Ian Leitch
Version bumped
14 Jul 2004; Jason Wever
Added ~sparc keyword, resolves bug #57102.
27 Apr 2004; Aron Griffis
popa3d-0.6.4.ebuild:
Add inherit eutils
18 Feb 2004; Hallgrimur H. Gunnarsson
Maildir support was chosen as the default when neither the mbox nor the
maildir USE flags were set. This caused the build to fail, since maildir
support requires a patch which is only downloaded when the maildir USE flag is
set. Now, mailbox support is chosen as the default. This was reported in bug
#41710 by Skyler McCurdy
16 Dec 2003; Ian Leitch
popa3d-0.6.4.ebuild:
No need to run depscan.sh in pkgpostinst
*popa3d-0.6.4 (19 Nov 2003)
19 Nov 2003; Hallgrimur H. Gunnarsson
version bump to 0.6.4
26 Oct 2003; Ian Leitch
Fixed USE=-maildir -mbox bug #32042, thanks to Cameron MacFarland for
reporting.
22 Oct 2003; Ian Leitch
PAM support now works like it should have done from the start, thanks to
Robert Kerr
#31506. Also fixed a few grammatical errors.
*popa3d-0.6.3 (11 Sep 2003)
11 Sep 2003; Ian Leitch
New package, thanks to Hallgrimur H. Gunnarsson
ebuild modified by Hallgrimur and myself. metadata.xml supplied.
AUX popa3d-initrc 479 RMD160 7a10b05009d7930d5edf7d37bb633a7eb490baf0 SHA1 f9904d3ce4b893a7da64718f0bb9f879a747a7a0 SHA256 2fc9aeeb1818d7a5fca2f72212767118c6b23d432d1d2550b82cc99b5ada3711
DIST popa3d-0.5.9-maildir-2.diff.gz 3227 RMD160 25a34fe3580bf8256f468d3f1b1d93d5d8b7e16a SHA1 33865c3a75af5449f7be0f2bb67a5c0b7b19969b SHA256 f3402a4dd462b8564456c65582dc10cbe620f112f11936a88b978696f35b73e1
DIST popa3d-0.6.3-vname-2.diff.gz 947 RMD160 c29c88357694b9243964b8eca32ce0cd49db5be2 SHA1 109dddd64653edd5e3b05229ff55b643040e645e SHA256 12c157142650801cf4ca534350b332eeb5d16ca329bce06f3fca5b5f0e13d7c2
DIST popa3d-1.0.2.tar.gz 32848 RMD160 7cde1e5876b44644ded3ff2287c19ae7520ba409 SHA1 85779cfc657050352b3bcda5ca7f1dfe7ac4e92b SHA256 e7034336c1e4b6ed1ddff7c92851292d396d011237acb2268492f44cedbb7a7f
EBUILD popa3d-1.0.2.ebuild 5538 RMD160 96f2883e26108e46a491502c424c1f0778ea420f SHA1 5275c34793b706c3d6817fdfa721b53ac22bee10 SHA256 6463747ff5e3a0e477115137316900155444b9e56e8af414e01c665177dd87af
MISC ChangeLog 4863 RMD160 68dfa324f71992b868372af472e3ce2aef9538fa SHA1 380475185629a3d1f9ff0cd8033307222ebad24c SHA256 0b03343c68139c5a7912a6e40d8a26864d5940835079cd36f8a322dbdb24d7b6
MISC metadata.xml 235 RMD160 9902228719750c3aa42965b67d3e5fe7354f217f SHA1 cb097e246c97c9d57cbfb5fc1850a6e294509b14 SHA256 67771a4ca51a3c324056aa0ab9ee0040646c12c548b86a478be4b8280af63235
A security oriented POP3 server.
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/popa3d/popa3d-1.0.2.ebuild,v 1.7 2007/09/23 16:50:47 philantrop Exp $
inherit eutils toolchain-funcs
#
# Mailbox format is determined by the 'mbox' and 'maildir'
# system USE flags.
#
# Mailbox path configuration denoted by the system USE
# flags.
#
# USE flag 'maildir' denotes ~/.maildir
# USE flag 'mbox' denotes /var/mail/username
#
# You can overwrite this by setting the POPA3D_HOME_MAILBOX
# environmental variable (see below) before emerge.
#
# Environmental variables.
#
# POPA3D_HOME_MAILBOX
#
# Overwrite the local user mailbox path. For example
# if you want qmail-styled ~/Mailbox you can set it
# to "Mailbox". For the traditional (although not in
# gentoo Maildir) set it to "Maildir".
#
# POPA3D_VIRTUAL_ONLY
#
# Set this field to "YES" if you dont want local users
# to have POP access. Setting this makes the POPA3D_HOME_MAILBOX
# variable effectively useless.
#
# POPA3D_VIRTUAL_HOME_PATH
#
# Set this field to the base virtual home path. For more information
# read the virtual guide here: http://forums.gentoo.org/viewtopic.php?t=82386
#
######
# 12/07/2005 - port001
# Version 1.0 introduced some increased default values for a number of
# configuration paramaters. These values are way too high for most systems.
MAX_SESSIONS=100 # Default is 500
MAX_SESSIONS_PER_SOURCE=10 # Default is 50
MAX_MAILBOX_MESSAGES=100000 # Default is 2097152
MAX_MAILBOX_OPEN_BYTES=100000000 # Default is 2147483647
MAX_MAILBOX_WORK_BYTES=150000000 # Default is 2147483647
######
IUSE="pam mbox maildir"
DESCRIPTION="A security oriented POP3 server."
HOMEPAGE="http://www.openwall.com/popa3d/"
SRC_URI="http://www.openwall.com/popa3d/${P}.tar.gz
mirror://gentoo/popa3d-0.6.3-vname-2.diff.gz
maildir? ( mirror://gentoo/popa3d-0.5.9-maildir-2.diff.gz )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ppc sparc x86"
DEPEND=">=sys-apps/sed-4
pam? ( >=sys-libs/pam-0.72
>=net-mail/mailbase-0.00-r8 )"
pkg_setup() {
if use pam && ! built_with_use net-mail/mailbase pam ; then
echo
eerror
eerror "${PN} needs net-mail/mailbase to be built with the pam USE flag"
eerror "activated. Please rebuild net-mail/mailbase with pam"
eerror
die "mailbase has to be built with pam flag"
fi
if use mbox && use maildir ; then
echo
eerror
eerror "You must choose between mbox or maildir,"
eerror "both cannot be used together."
eerror
die "Both mbox and maildir specified."
fi
echo
ewarn
ewarn "You can customize this ebuild with environmental variables."
ewarn "If you don't set any I'll assume sensible defaults."
ewarn
ewarn "See inside this ebuild for details."
ewarn
echo
epause 5
enewgroup popa3d
enewuser popa3d -1 -1 -1 popa3d
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${DISTDIR}"/popa3d-0.6.3-vname-2.diff.gz
use maildir && epatch "${DISTDIR}"/popa3d-0.5.9-maildir-2.diff.gz
}
src_compile() {
cd "${S}"
sed -i \
-e "s:^\(#define MAX_SESSIONS\) .*$:\1 ${MAX_SESSIONS}:" \
-e "s:^\(#define MAX_SESSIONS_PER_SOURCE\).*$:\1 ${MAX_SESSIONS_PER_SOURCE}:" \
-e "s:^\(#define MAX_MAILBOX_MESSAGES\).*$:\1 ${MAX_MAILBOX_MESSAGES}:" \
-e "s:^\(#define MAX_MAILBOX_OPEN_BYTES\).*$:\1 ${MAX_MAILBOX_OPEN_BYTES}:" \
-e "s:^\(#define MAX_MAILBOX_WORK_BYTES\).*$:\1 ${MAX_MAILBOX_WORK_BYTES}:" \
params.h || die "sed on params.h failed (1)"
if use maildir ; then
einfo "Mailbox format is: MAILDIR."
if [[ -z ${POPA3D_HOME_MAILBOX} ]] ; then
POPA3D_HOME_MAILBOX=".maildir"
fi
else
einfo "Mailbox format is: MAILBOX."
fi
if [[ -n ${POPA3D_HOME_MAILBOX} ]] ; then
einfo "Mailbox path: ~/${POPA3D_HOME_MAILBOX}"
epause 2
sed -i \
-e "s:^\(#define MAIL_SPOOL_PATH.*\)$://\1:" \
-e "s:^\(#define HOME_MAILBOX_NAME\).*$:\1 \"${POPA3D_HOME_MAILBOX}\":" \
params.h || die "sed on params.h failed (2)"
else
einfo "Mailbox path: /var/mail/username"
fi
if [[ ${POPA3D_VIRTUAL_ONLY} = "YES" ]] ; then
einfo "Virtual only, no local system users"
sed -i -e "s:^\(#define VIRTUAL_ONLY\).*$:\1 1:" params.h
fi
if [[ -n ${POPA3D_VIRTUAL_HOME_PATH} ]] ; then
einfo "Virtual home path set to: ${POPA3D_VIRTUAL_HOME_PATH}"
sed -i \
-e "s:^\(#define VIRTUAL_HOME_PATH\).*$:\1 \"$POPA3D_VIRTUAL_HOME_PATH\":" \
params.h || die "sed on params.h failed (3)"
fi
if [[ ${POPA3D_VIRTUAL_ONLY} = "YES" ]] ; then
einfo "Authentication method: Virtual."
elif use pam ; then
einfo "Authentication method: PAM."
LIBS="${LIBS} -lpam"
sed -i \
-e "s:^\(#define AUTH_SHADOW\)[[:blank:]].*$:\1 0:" \
-e "s:^\(#define AUTH_PAM\)[[:blank:]].*$:\1 1:" \
params.h || die "sed on params.h failed (4)"
else
einfo "Authentication method: Shadow."
fi
sed -i \
-e "s:^\(#define POP_STANDALONE\).*$:\1 1:" \
-e "s:^\(#define POP_VIRTUAL\).*$:\1 1:" \
-e "s:^\(#define VIRTUAL_VNAME\).*$:\1 1:" \
params.h || die "sed on params.h failed (5)"
sed -i \
-e '/^CC =/d' \
-e '/^CFLAGS =/d' \
-e '/^LDFLAGS =/d' \
Makefile || die "Makefile cleaning failed"
emake LIBS="${LIBS} -lcrypt" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
CC=$(tc-getCC) || die "emake failed"
}
src_install() {
into /usr
dosbin popa3d
doman popa3d.8
dodoc DESIGN INSTALL CHANGES VIRTUAL CONTACT
diropts -m 755
dodir /var/empty
keepdir /var/empty
newinitd "${FILESDIR}"/popa3d-initrc popa3d
if use pam ; then
dodir /etc/pam.d/
dosym /etc/pam.d/pop /etc/pam.d/popa3d
fi
}