diff options
Diffstat (limited to 'net-mail/pop-before-smtp')
-rw-r--r-- | net-mail/pop-before-smtp/Manifest | 1 | ||||
-rw-r--r-- | net-mail/pop-before-smtp/files/pop-before-smtp.init | 29 | ||||
-rw-r--r-- | net-mail/pop-before-smtp/metadata.xml | 8 | ||||
-rw-r--r-- | net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild | 36 |
4 files changed, 74 insertions, 0 deletions
diff --git a/net-mail/pop-before-smtp/Manifest b/net-mail/pop-before-smtp/Manifest new file mode 100644 index 000000000000..d73a175b35a3 --- /dev/null +++ b/net-mail/pop-before-smtp/Manifest @@ -0,0 +1 @@ +DIST pop-before-smtp-1.42.tar.gz 40612 SHA256 cfa9e1b24b185c1f7bd9a5f076d39d9b4e50f92d68a1463ec937e7c1526aaa41 diff --git a/net-mail/pop-before-smtp/files/pop-before-smtp.init b/net-mail/pop-before-smtp/files/pop-before-smtp.init new file mode 100644 index 000000000000..52ff6a244b79 --- /dev/null +++ b/net-mail/pop-before-smtp/files/pop-before-smtp.init @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_started_commands="reload" + +depend() { + need net + use logger dns ypbind +} + +start() { + ebegin "Starting pop-before-smtp" + start-stop-daemon --start --pidfile /var/run/pop-before-smtp.pid --exec /usr/sbin/pop-before-smtp -- --daemon=/var/run/pop-before-smtp.pid + eend $? +} + +stop() { + ebegin "Stopping pop-before-smtp" + start-stop-daemon --stop --pidfile /var/run/pop-before-smtp.pid + eend $? +} + +reload() { + ebegin "Reloading postfix" + /usr/sbin/postfix reload &>/dev/null + eend $? +} diff --git a/net-mail/pop-before-smtp/metadata.xml b/net-mail/pop-before-smtp/metadata.xml new file mode 100644 index 000000000000..b3dee9a03ac9 --- /dev/null +++ b/net-mail/pop-before-smtp/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-mail</herd> + <upstream> + <remote-id type="sourceforge">popbsmtp</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild b/net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild new file mode 100644 index 000000000000..488bb005c262 --- /dev/null +++ b/net-mail/pop-before-smtp/pop-before-smtp-1.42.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="a simple daemon to allow email relay control based on successful POP or IMAP logins" +HOMEPAGE="http://popbsmtp.sourceforge.net" +SRC_URI="mirror://sourceforge/popbsmtp/${P}.tar.gz" + +LICENSE="|| ( GPL-2 BSD Artistic )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-lang/perl[berkdb] + dev-perl/Net-Netmask + dev-perl/TimeDate" + +src_prepare() { + # enable syslog + sed -i \ + -e "/^=cut #============================= syslog ===========================START=$/d" \ + -e "/^=cut #============================= syslog =============================END=$/d" \ + "${S}"/pop-before-smtp-conf.pl \ + || die "sed pop-before-smtp-conf.pl failed" +} + +src_install() { + dosbin pop-before-smtp || die "dosbin failed" + dodoc README ChangeLog TODO contrib/README.QUICKSTART + insinto /etc + doins pop-before-smtp-conf.pl || die "doins failed" + newinitd "${FILESDIR}/pop-before-smtp.init" pop-before.smtp \ + || die "newinitd failed" +} |