diff options
author | Ian Leitch <port001@gentoo.org> | 2005-08-12 16:22:41 +0000 |
---|---|---|
committer | Ian Leitch <port001@gentoo.org> | 2005-08-12 16:22:41 +0000 |
commit | b63be84737f1a744ecf53da33c5dc2d833070f25 (patch) | |
tree | c5cc2d1f7d8cb7f8138c98c88adb14818203e937 /net-mail | |
parent | Stable on AMD64. Fix bug #100265. (diff) | |
download | gentoo-2-b63be84737f1a744ecf53da33c5dc2d833070f25.tar.gz gentoo-2-b63be84737f1a744ecf53da33c5dc2d833070f25.tar.bz2 gentoo-2-b63be84737f1a744ecf53da33c5dc2d833070f25.zip |
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.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/popa3d/ChangeLog | 9 | ||||
-rw-r--r-- | net-mail/popa3d/Manifest | 2 | ||||
-rw-r--r-- | net-mail/popa3d/files/digest-popa3d-1.0 | 3 | ||||
-rw-r--r-- | net-mail/popa3d/popa3d-1.0.ebuild | 185 |
4 files changed, 198 insertions, 1 deletions
diff --git a/net-mail/popa3d/ChangeLog b/net-mail/popa3d/ChangeLog index f08baf901de7..a1d81b340be0 100644 --- a/net-mail/popa3d/ChangeLog +++ b/net-mail/popa3d/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-mail/popa3d # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/popa3d/ChangeLog,v 1.17 2005/05/23 18:26:08 port001 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/popa3d/ChangeLog,v 1.18 2005/08/12 16:22:40 port001 Exp $ + +*popa3d-1.0 (12 Aug 2005) + + 12 Aug 2005; Ian Leitch <port001@gentoo.org> +popa3d-1.0.ebuild: + 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 <port001@gentoo.org> -popa3d-0.6.4.1-r1.ebuild, popa3d-0.6.4.1-r2.ebuild: diff --git a/net-mail/popa3d/Manifest b/net-mail/popa3d/Manifest index c642036df6c0..eff147042c0d 100644 --- a/net-mail/popa3d/Manifest +++ b/net-mail/popa3d/Manifest @@ -1,5 +1,7 @@ +MD5 d63d9337056034ca3df9755d3fe35fea popa3d-1.0.ebuild 5466 MD5 0328bbe5c989b571523cfad64e76d23e popa3d-0.6.4.1-r2.ebuild 4481 MD5 aee5e57379d06aa42a768a601b7bb633 ChangeLog 3077 MD5 dbb40cd6b37794fccc9251f434aa99ce metadata.xml 425 MD5 d5e922ceb0a1fbe958b60cefb5029e1b files/digest-popa3d-0.6.4.1-r2 208 MD5 d7e80b35c6a318d497f9fc4e538e0429 files/popa3d-initrc 479 +MD5 dee8b084da796b89e89fe964cb3103b8 files/digest-popa3d-1.0 204 diff --git a/net-mail/popa3d/files/digest-popa3d-1.0 b/net-mail/popa3d/files/digest-popa3d-1.0 new file mode 100644 index 000000000000..8f96e52181b4 --- /dev/null +++ b/net-mail/popa3d/files/digest-popa3d-1.0 @@ -0,0 +1,3 @@ +MD5 2e0f91765ff5935bbc24626f02a69ada popa3d-1.0.tar.gz 32586 +MD5 568acb623180cbdbfcd286a037688bcf popa3d-0.6.3-vname-2.diff.gz 947 +MD5 ec478faa35cc2ee4f06f77eb9c236070 popa3d-0.5.9-maildir-2.diff.gz 3227 diff --git a/net-mail/popa3d/popa3d-1.0.ebuild b/net-mail/popa3d/popa3d-1.0.ebuild new file mode 100644 index 000000000000..db854313ece2 --- /dev/null +++ b/net-mail/popa3d/popa3d-1.0.ebuild @@ -0,0 +1,185 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/popa3d/popa3d-1.0.ebuild,v 1.1 2005/08/12 16:22:41 port001 Exp $ + +inherit eutils + +# +# 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="~x86 ~ppc ~sparc" + +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 /bin/false /nonexistent 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\t\t\t.*$:#define MAX_SESSIONS ${MAX_SESSIONS}:" params.h + sed -i -e "s:^#define MAX_SESSIONS_PER_SOURCE.*$:#define MAX_SESSIONS_PER_SOURCE ${MAX_SESSIONS_PER_SOURCE}:" params.h + sed -i -e "s:^#define MAX_MAILBOX_MESSAGES.*$:#define MAX_MAILBOX_MESSAGES ${MAX_MAILBOX_MESSAGES}:" params.h + sed -i -e "s:^#define MAX_MAILBOX_OPEN_BYTES.*$:#define MAX_MAILBOX_OPEN_BYTES ${MAX_MAILBOX_OPEN_BYTES}:" params.h + sed -i -e "s:^#define MAX_MAILBOX_WORK_BYTES.*$:#define MAX_MAILBOX_WORK_BYTES ${MAX_MAILBOX_WORK_BYTES}:" params.h + + if use maildir ; then + einfo "Mailbox format is: MAILDIR." + if [ "${POPA3D_HOME_MAILBOX}" = "" ] ; then + POPA3D_HOME_MAILBOX=".maildir" + fi + else + einfo "Mailbox format is: MAILBOX." + fi + + if [ "${POPA3D_HOME_MAILBOX}" != "" ] ; then + einfo "Mailbox path: ~/$POPA3D_HOME_MAILBOX" + epause 2 + sed -i -e "s:^\(#define MAIL_SPOOL_PATH.*\)$://\1:" params.h + sed -i -e "s:^#define HOME_MAILBOX_NAME.*$:#define HOME_MAILBOX_NAME \"${POPA3D_HOME_MAILBOX}\":" params.h + 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.*$:#define VIRTUAL_ONLY 1:" params.h + fi + + if [ "${POPA3D_VIRTUAL_HOME_PATH}" != "" ] ; then + einfo "Virtual home path set to: $POPA3D_VIRTUAL_HOME_PATH" + sed -i -e "s:^#define VIRTUAL_HOME_PATH.*$:#define VIRTUAL_HOME_PATH \"$POPA3D_VIRTUAL_HOME_PATH\":" params.h + 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\t\t\t1$:#define AUTH_SHADOW\t\t\t0:" params.h + sed -i -e "s:^#define AUTH_PAM\t\t\t0$:#define AUTH_PAM\t\t\t1:" params.h + else + einfo "Authentication method: Shadow." + fi + + sed -i -e "s:^#define POP_STANDALONE.*$:#define POP_STANDALONE 1:" params.h + sed -i -e "s:^#define POP_VIRTUAL.*$:#define POP_VIRTUAL 1:" params.h + sed -i -e "s:^#define VIRTUAL_VNAME.*$:#define VIRTUAL_VNAME 1:" params.h + + emake LIBS="${LIBS} -lcrypt" || 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 + + exeinto /etc/init.d + newexe ${FILESDIR}/popa3d-initrc popa3d + + if use pam ; then + dodir /etc/pam.d/ + dosym /etc/pam.d/pop /etc/pam.d/popa3d + fi +} |