diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2005-01-25 18:07:46 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2005-01-25 18:07:46 +0000 |
commit | 4d101f7b86954b731ec9764f7456a1c6ea2854c2 (patch) | |
tree | e173712c6aa7cff909acd424ccdf4bd0f2bcd51f /net-mail/perdition | |
parent | Removing USE=crypt PDEPEND for gaim-encryption. (diff) | |
download | historical-4d101f7b86954b731ec9764f7456a1c6ea2854c2.tar.gz historical-4d101f7b86954b731ec9764f7456a1c6ea2854c2.tar.bz2 historical-4d101f7b86954b731ec9764f7456a1c6ea2854c2.zip |
New package perdition, closes #18023
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-mail/perdition')
-rw-r--r-- | net-mail/perdition/ChangeLog | 10 | ||||
-rw-r--r-- | net-mail/perdition/Manifest | 16 | ||||
-rw-r--r-- | net-mail/perdition/files/digest-perdition-1.15 | 1 | ||||
-rw-r--r-- | net-mail/perdition/files/perdition.confd | 50 | ||||
-rwxr-xr-x | net-mail/perdition/files/perdition.initd | 76 | ||||
-rw-r--r-- | net-mail/perdition/metadata.xml | 14 | ||||
-rw-r--r-- | net-mail/perdition/perdition-1.15.ebuild | 60 |
7 files changed, 227 insertions, 0 deletions
diff --git a/net-mail/perdition/ChangeLog b/net-mail/perdition/ChangeLog new file mode 100644 index 000000000000..5ce0813ae022 --- /dev/null +++ b/net-mail/perdition/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-mail/perdition +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/perdition/ChangeLog,v 1.1 2005/01/25 18:07:46 ferdy Exp $ + +*perdition-1.15 (25 Jan 2005) + + 25 Jan 2005; Fernando J. Pereda <ferdy@gentoo.org> +perdition-1.15.ebuild: + New package, closes #18023. Ebuild based on one by Eric Johanson + <gentoo@vilos.com>. + diff --git a/net-mail/perdition/Manifest b/net-mail/perdition/Manifest new file mode 100644 index 000000000000..1fa49a7781dc --- /dev/null +++ b/net-mail/perdition/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 eef635d94bd2b70f60ae700dc051e561 perdition-1.15.ebuild 1518 +MD5 430e0310379308537e256035485dfba0 ChangeLog 406 +MD5 d2ad787f28f30ff5958b88a76ef96560 metadata.xml 644 +MD5 e0c3899301e1eddbef44acd4e5e18c7c files/perdition.confd 1734 +MD5 f6a22f3221ec5499cab3065e47af2248 files/perdition.initd 2438 +MD5 21c456c0fa0d465a1858b62399ebe404 files/digest-perdition-1.15 66 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) + +iD8DBQFB9or+ViELBEf1JB0RArYGAJsE8SbQ03vd3KNyT1OJw8YGegj6+QCdFn57 +5TfaHrFDqN9ls93nFhhJsBU= +=Uu7d +-----END PGP SIGNATURE----- diff --git a/net-mail/perdition/files/digest-perdition-1.15 b/net-mail/perdition/files/digest-perdition-1.15 new file mode 100644 index 000000000000..799264e9f127 --- /dev/null +++ b/net-mail/perdition/files/digest-perdition-1.15 @@ -0,0 +1 @@ +MD5 7c3aaf30198cf73191a984a76637a940 perdition-1.15.tar.gz 551692 diff --git a/net-mail/perdition/files/perdition.confd b/net-mail/perdition/files/perdition.confd new file mode 100644 index 000000000000..7b147286eb2a --- /dev/null +++ b/net-mail/perdition/files/perdition.confd @@ -0,0 +1,50 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/perdition/files/perdition.confd,v 1.1 2005/01/25 18:07:46 ferdy Exp $ + +# Run time configuration parameters for /etc/init.d/perdition + +# User to run perdition as +# ( change it only if you know what you're doing ) +PERDITION_USER=perdition + +# Where pid files will be stored +PIDDIR=/var/run/perdition + +# Command line parameters to pass to perdition when run in any mode. +# This is in addition to any mode specific flags. +# That is, it is in addtion to any command line options supplied +# by POP3_FLAGS, POP3S_FLAGS, IMAP4_FLAGS or IMAP4S_FLAGS +FLAGS="-f /etc/perdition/perdition.conf" + +# Run an instance of perdition in POP3 mode +# Set to "yes" to run this instance of perdition +# Set to any other valye to not run this instance of perdition +POP3=yes + +#Command line parameters to pass to perdition when run in POP3 mode +POP3_FLAGS= + +# Run an instance of perdition in POP3S mode +# Set to "yes" to run this instance of perdition +# Set to any other valye to not run this instance of perdition +POP3S=no + +#Command line parameters to pass to perdition when run in POP3S mode +POP3S_FLAGS= + +# Run an instance of perdition in IMAP4 mode +# Set to "yes" to run this instance of perdition +# Set to any other valye to not run this instance of perdition +IMAP4=yes + +#Command line parameters to pass to perdition when run in IMAP4 mode +IMAP4_FLAGS= + +# Run an instance of perdition in IMAP4S mode +# Set to "yes" to run this instance of perdition +# Set to any other valye to not run this instance of perdition +IMAP4S=no + +#Command line parameters to pass to perdition when run in IMAP4S mode +IMAP4S_FLAGS= diff --git a/net-mail/perdition/files/perdition.initd b/net-mail/perdition/files/perdition.initd new file mode 100755 index 000000000000..14ca8b8d792a --- /dev/null +++ b/net-mail/perdition/files/perdition.initd @@ -0,0 +1,76 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/perdition/files/perdition.initd,v 1.1 2005/01/25 18:07:46 ferdy Exp $ + +depend() { + need net +} + + +check_key() { + if [ ! -e /etc/perdition/perdition.crt.pem ] ; then + einfo "No SSL keys; see man perdition to create them. Or run: " + einfo "$ openssl req -new -x509 -nodes -out /etc/perdition/perdition.crt.pem -keyout /etc/perdition/perdition.key.pem -days 365" + return 1 + fi +} + +start() { + if [ "${POP3}" = "yes" ]; then + ebegin "Starting peridtion services (POP3)" + start-stop-daemon --quiet --start --startas /usr/sbin/perdition.pop3 -p ${PIDDIR}/pop3.pid \ + -- ${FLAGS} ${POP3_FLAGS} -u ${PERDITION_USER} --pid_file ${PIDDIR}/pop3.pid + eend $? + fi + + if [ "${POP3S}" = "yes" ]; then + check_key || return 1 + ebegin "Starting perdition services (POP3S)" + start-stop-daemon --quiet --start --startas /usr/sbin/perdition.pop3s -p ${PIDDIR}/pop3s.pid \ + -- ${FLAGS} ${POP3S_FLAGS} -u ${PERDITION_USER} --pid_file ${PIDDIR}/pop3s.pid + eend $? + fi + + if [ "${IMAP4}" = "yes" ]; then + ebegin "Starting perdition services (IMAP4)" + start-stop-daemon --quiet --start --startas /usr/sbin/perdition.imap4 -p ${PIDDIR}/imap4.pid \ + -- ${FLAGS} ${IMAP4_FLAGS} -u ${PERDITION_USER} --pid_file ${PIDDIR}/imap4.pid + eend $? + fi + + if [ "${IMAP4S}" = "yes" ]; then + check_key || return 1 + ebegin "Starting perdition services (IMAP4S)" + start-stop-daemon --quiet --start --startas /usr/sbin/perdition.imap4s -p ${PIDDIR}/imap4s.pid \ + -- ${FLAGS} ${IMAP4S_FLAGS} -u ${PERDITION_USER} --pid_file ${PIDDIR}/imap4s.pid + eend $? + fi +} + + +stop() { + if [ "${POP3}" = "yes" ]; then + ebegin "Shutting down perdition services (POP3)" + start-stop-daemon -o --quiet --stop --pidfile ${PIDDIR}/pop3.pid + eend $? + fi + + if [ "${POP3S}" = "yes" ]; then + ebegin "Shutting down perdition services (POP3S)" + start-stop-daemon -o --quiet --stop --pidfile ${PIDDIR}/pop3s.pid + eend $? + fi + + if [ "${IMAP4}" = "yes" ]; then + ebegin "Shutting down perdition services (IMAP4)" + start-stop-daemon -o --quiet --stop --pidfile ${PIDDIR}/imap4.pid + eend $? + fi + + if [ "${IMAP4S}" = "yes" ]; then + ebegin "Shutting down perdition services (IMAP4S)" + start-stop-daemon -o --quiet --stop --pidfile ${PIDDIR}/imaps.pid + eend $? + fi +} diff --git a/net-mail/perdition/metadata.xml b/net-mail/perdition/metadata.xml new file mode 100644 index 000000000000..5e1b98e0186d --- /dev/null +++ b/net-mail/perdition/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <longdescription> + Perdition is a fully featured POP3 and IMAP4 proxy server. + It is able to handle both SSL and non-SSL connections and redirect users + to a real-server based on a database lookup. Perdition supports modular + based database access. ODBC, MySQL, PostgreSQL, GDBM, POSIX Regular + Expression and NIS modules ship with the distribution. The API for + modules is open allowing abitary modules to be written to allow access + to any data store. + </longdescription> +</pkgmetadata> diff --git a/net-mail/perdition/perdition-1.15.ebuild b/net-mail/perdition/perdition-1.15.ebuild new file mode 100644 index 000000000000..799d074997e5 --- /dev/null +++ b/net-mail/perdition/perdition-1.15.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/perdition/perdition-1.15.ebuild,v 1.1 2005/01/25 18:07:46 ferdy Exp $ + +inherit eutils + +DESCRIPTION="Perdition is a modular and fully featured POP3 and IMAP4 proxy." +SRC_URI="http://www.vergenet.net/linux/${PN}/download/${PV}/${P}.tar.gz" +HOMEPAGE="http://www.vergenet.net/linux/perdition/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" +IUSE="nls pam ssl mysql odbc postgres gdbm ldap" + +DEPEND="!net-mail/mailx + !net-mail/nmh + dev-util/guile + >=dev-libs/vanessa-logger-0.0.6 + >=dev-libs/vanessa-adt-0.0.6 + >=net-libs/vanessa-socket-0.0.7 + ssl? ( dev-libs/openssl ) + odbc? ( dev-db/unixODBC ) + gdbm? ( sys-libs/gdbm ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql ) + ldap? ( net-nds/openldap ) + pam? ( sys-libs/pam ) + nls? ( sys-devel/gettext )" + +src_compile() { + econf --disable-sendmail \ + $(use_enable nls) \ + $(use_enable pam) \ + $(use_enable ssl) \ + $(use_enable mysql) \ + $(use_enable odbc) \ + $(use_enable postgres) \ + $(use_enable gdbm) \ + $(use_enable ldap) || die + + make || die +} + +src_install() { + make DESTDIR=${D} install || die + + dodoc README AUTHORS TODO + + newinitd "${FILESDIR}/perdition.initd" perdition + insinto /etc/conf.d; newins "${FILESDIR}/perdition.confd" perdition +} + +pkg_preinst() { + einfo "Checking for user perdition, creating if missing" + enewuser perdition + + keepdir /var/run/perdition + fowners perdition /var/run/perdition +} |