summaryrefslogtreecommitdiff
path: root/net-mail/popa3d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-mail/popa3d
reinit the tree, so we can have metadata
Diffstat (limited to 'net-mail/popa3d')
-rw-r--r--net-mail/popa3d/Manifest8
-rw-r--r--net-mail/popa3d/files/popa3d-initrc19
-rw-r--r--net-mail/popa3d/metadata.xml11
-rw-r--r--net-mail/popa3d/popa3d-1.0.2-r1.ebuild180
4 files changed, 218 insertions, 0 deletions
diff --git a/net-mail/popa3d/Manifest b/net-mail/popa3d/Manifest
new file mode 100644
index 000000000000..cb9d273195c1
--- /dev/null
+++ b/net-mail/popa3d/Manifest
@@ -0,0 +1,8 @@
+AUX popa3d-initrc 368 SHA256 d054e4ac8e36d1df1167fd43e3dd16044928117344575d42e80d00fcc339694b SHA512 92ec9786bf8aa5f82c248283b1451c8293f68a3f58b71b3c4b7c249a0c0207a5f25e399276a9bf6c362735334259f0c8baaea1467226b66c270d24617cc9f567 WHIRLPOOL efb71f3e7a6d49caa8ebc623446b22dfb793864b434fe2c789c08035b310e91035306c05e2809867ad1e731d68a97f5f02a3fea40e45afbae6278e4203a2801b
+DIST popa3d-0.5.9-maildir-2.diff.gz 3227 SHA256 f3402a4dd462b8564456c65582dc10cbe620f112f11936a88b978696f35b73e1 SHA512 7d2ab786e6249acfaadaa544adf49dca42b5628f50aa9f52fd1caa80127adc83afa4623824170c9f3b761a39949fcf3c90edbdbb9fdfbf4e06afaa67cdfbaac3 WHIRLPOOL e3b99f33bda8b0b631fa49e9cd3f78e2d55ca61d4c80596db2192efaad937b51c59475d5940db9484fd2439d3a41a077f42e38a532bcb2a9de26dab07fc5cd8f
+DIST popa3d-0.6.3-vname-2.diff.gz 947 SHA256 12c157142650801cf4ca534350b332eeb5d16ca329bce06f3fca5b5f0e13d7c2 SHA512 eba7df6d03d2745272505b62053d0db56ea326a716e43a9133257465f78fc5030cb09b48d79e86f6a982f7d8e9d18ee64aadf261e60a4f0a56357a4a2517a30a WHIRLPOOL ce3e458a60a97b34b94a40d105f7b278151e386d65f9f188e64053a7476f90e6413cd4c5f4c62dcae9541e4d5867f93be935acef6a57572c115c9595dd39fa24
+DIST popa3d-1.0.2.tar.gz 32848 SHA256 e7034336c1e4b6ed1ddff7c92851292d396d011237acb2268492f44cedbb7a7f SHA512 e577297b4dafb4091110886a5db07184707475651a8ee3b6369f4cab5676852d7286a3729da46fff9161bc3cd46bdc0d032205dc5609bfb38be69eaeab068906 WHIRLPOOL e27820a951261170afe514d63e9860bd267d3c123710e6bb2d72fdc3ef6285a22534a4d42d197fe502db2d9e575970aa03bd3902746accbdea172d8edb524bd0
+EBUILD popa3d-1.0.2-r1.ebuild 4985 SHA256 db11914a44cdfc44d5f66f69ca4aca1d1d224703a655ed9aafc278d52ee50ab4 SHA512 b760666182894426255af5f097741e5f65be9c5f84f1713c3f5d6c4510a8f4c45093c8e4fe1f1f457d1db29d9dd28635c7574168fc7e91ff7b40e0319c476d3c WHIRLPOOL 09417cb02ae80383d24102d8da1badb7bf6f2050033dda297f8765a58555a1a7830c1a93324ef0334016b51986e25be1176322375596a32cc281233e40e0fd9d
+MISC ChangeLog 2811 SHA256 25292092fb49f9c6022082da0c8255d4a44450a3dc9272c752051f7e429c7bf0 SHA512 d347dcd10536524ff4195017c2a91259eec09a788348e86dfba41b14af32d37af761714d5c51ae8e96ddd134dfe09a1aa360c853d91444f41be0e34a1b576e5b WHIRLPOOL 7172366a736612ca32a2d1082005c3b3d64ad95789ed4c5a7f6677084faf6ea3c9aa841afe65acd9472014c65f43d3dba8aa7710141f5525c97d7f7ccec7d399
+MISC ChangeLog-2015 5850 SHA256 d8b2948f27c51e0f3ad1dd37986f5694ff34aa44b74969907a26d189918c4842 SHA512 6a334bd7f8842761354b8d7fcfeeb286c5cec10e8075ae22b999e6c410da6bc4e7a7b69cf80eb33c81cf2deb7f9dcfb74c25650bc3b9536f7a756c4db9dea21c WHIRLPOOL 4a15a89007e8c8f2743ae2f897411a5c3df1aa536266f6e22a7f749532824a3c80cad6740f7045eef543c2d139c5c368a2cbe1a2260bc74acb8daf3269ef23d3
+MISC metadata.xml 314 SHA256 490b031c733a1ca1d886d1e6ae95e6d5d5f7477e5079b1c3ac4d0c2daf00077d SHA512 aa6c3bfc333c8d2c9d47e250881264348b5ae5b903c1645ef90f9bf6dda0bb95fad589b463a7db4eb18f21a3cfdb8e84805e1939e88241429f92ebb42483a32c WHIRLPOOL a1babf9e8dcb1fa2fe0f21b951c96e06d671c3e4d1fac54e8d2a01d638288c1a72be9ad1536d01e27fc732a19403d9d23eb0b9099e61352bda0b9c41f62dcde5
diff --git a/net-mail/popa3d/files/popa3d-initrc b/net-mail/popa3d/files/popa3d-initrc
new file mode 100644
index 000000000000..7405bdef2266
--- /dev/null
+++ b/net-mail/popa3d/files/popa3d-initrc
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting popa3d"
+ start-stop-daemon --start --quiet --exec /usr/sbin/popa3d -- -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping popa3d"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/popa3d
+ eend $?
+}
diff --git a/net-mail/popa3d/metadata.xml b/net-mail/popa3d/metadata.xml
new file mode 100644
index 000000000000..e58671dbb55a
--- /dev/null
+++ b/net-mail/popa3d/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+</maintainer>
+<longdescription>
+ A security oriented POP3 server.
+</longdescription>
+</pkgmetadata>
diff --git a/net-mail/popa3d/popa3d-1.0.2-r1.ebuild b/net-mail/popa3d/popa3d-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..6ef18a842976
--- /dev/null
+++ b/net-mail/popa3d/popa3d-1.0.2-r1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs user
+
+#
+# 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: https://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="Openwall"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+
+DEPEND=">=sys-apps/sed-4
+ pam? ( >=sys-libs/pam-0.72
+ >=net-mail/mailbase-0.00-r8[pam] )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="^^ ( maildir mbox )"
+
+pkg_setup() {
+ 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
+
+ enewgroup popa3d
+ enewuser popa3d -1 -1 -1 popa3d
+}
+
+src_prepare(){
+ epatch "${DISTDIR}"/popa3d-0.6.3-vname-2.diff.gz
+ use maildir && epatch "${DISTDIR}"/popa3d-0.5.9-maildir-2.diff.gz
+}
+
+src_compile() {
+ 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}"
+ 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 || die "sed on param.h failed (2.5)"
+ 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)
+}
+
+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
+}