summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-08-01 04:21:50 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-08-01 04:21:50 +0000
commit8164643dd159ddad82fab9a5dce4f7035e5e79ee (patch)
treec6383cf310ff93508eee30722730c358f2a1bcdf /net-mail/relay-ctrl
parentcleanup, add config info, lower deps (diff)
downloadhistorical-8164643dd159ddad82fab9a5dce4f7035e5e79ee.tar.gz
historical-8164643dd159ddad82fab9a5dce4f7035e5e79ee.tar.bz2
historical-8164643dd159ddad82fab9a5dce4f7035e5e79ee.zip
cleanup, add config info, lower deps
Diffstat (limited to 'net-mail/relay-ctrl')
-rw-r--r--net-mail/relay-ctrl/Manifest6
-rw-r--r--net-mail/relay-ctrl/files/digest-relay-ctrl-3.1.1-r11
-rw-r--r--net-mail/relay-ctrl/relay-ctrl-3.1.1-r1.ebuild56
3 files changed, 59 insertions, 4 deletions
diff --git a/net-mail/relay-ctrl/Manifest b/net-mail/relay-ctrl/Manifest
index 802cb659eb12..d8bae73d6941 100644
--- a/net-mail/relay-ctrl/Manifest
+++ b/net-mail/relay-ctrl/Manifest
@@ -1,8 +1,6 @@
-MD5 8dfa679a4995163c917ee47b47316333 relay-ctrl-3.1.1-r1.ebuild~ 1814
-MD5 8dfa679a4995163c917ee47b47316333 relay-ctrl-3.1.1.ebuild~ 1814
MD5 3f04adc6fa5e5cf37f33698572a5eb22 relay-ctrl-3.1.1.ebuild 947
-MD5 8dfa679a4995163c917ee47b47316333 relay-ctrl-3.1.1-r1.ebuild 1814
-MD5 077486cd5c1ef97a3141a034e7ce2cb8 ChangeLog 581
+MD5 ae2dcf3e5d1a1bd2ba0b7068be99728d relay-ctrl-3.1.1-r1.ebuild 1976
+MD5 df3491b35c430caced0a593cbeb4f59c ChangeLog 740
MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
MD5 f8baeb98e3343a1651c17082460b4bf3 files/digest-relay-ctrl-3.1.1-r1 67
MD5 f8baeb98e3343a1651c17082460b4bf3 files/digest-relay-ctrl-3.1.1 67
diff --git a/net-mail/relay-ctrl/files/digest-relay-ctrl-3.1.1-r1 b/net-mail/relay-ctrl/files/digest-relay-ctrl-3.1.1-r1
new file mode 100644
index 000000000000..8aa0ada56dae
--- /dev/null
+++ b/net-mail/relay-ctrl/files/digest-relay-ctrl-3.1.1-r1
@@ -0,0 +1 @@
+MD5 b35133e21bf52b532b4b839e11cb883c relay-ctrl-3.1.1.tar.gz 35046
diff --git a/net-mail/relay-ctrl/relay-ctrl-3.1.1-r1.ebuild b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r1.ebuild
new file mode 100644
index 000000000000..3eba56059c21
--- /dev/null
+++ b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/relay-ctrl/relay-ctrl-3.1.1-r1.ebuild,v 1.1 2003/08/01 04:21:47 robbat2 Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="SMTP Relaying Control designed for qmail & tcpserver."
+SRC_URI="http://untroubled.org/relay-ctrl/${P}.tar.gz"
+HOMEPAGE="http://untroubled.org/relay-ctrl/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc"
+
+DEPEND="sys-devel/gcc-config"
+RDEPEND="sys-apps/ucspi-tcp sys-apps/daemontools"
+
+RELAYCTRL_BASE="/var/spool/relay-ctrl"
+# this is relative to RELAYCTRL_BASE
+RELAYCTRL_STORAGE="allow"
+RELAYCTRL_CONFDIR="/etc/relay-ctrl"
+RELAYCTRL_BINDIR="/usr/bin"
+
+src_compile() {
+ cd ${S}
+ echo "${CC} ${CFLAGS}" > conf-cc
+ echo "${CC}" > conf-ld
+ emake || die
+}
+
+src_install () {
+ exeinto ${RELAYCTRL_BINDIR}
+ doexe relay-ctrl-age relay-ctrl-allow relay-ctrl-check relay-ctrl-send relay-ctrl-udp relay-ctrl-chdir
+
+ #NB: at some point the man page for relay-ctrl-chdir will be added!
+ doman relay-ctrl-age.8 relay-ctrl-allow.8 relay-ctrl-check.8 relay-ctrl-send.8 relay-ctrl-udp.8
+ dodoc README ANNOUNCEMENT NEWS
+
+ keepdir ${RELAYCTRL_BASE} ${RELAYCTRL_BASE}/${RELAYCTRL_STORAGE}
+ fperms 700 ${RELAYCTRL_BASE}
+ fperms 1777 ${RELAYCTRL_BASE}/${RELAYCTRL_STORAGE}
+
+ dodir ${RELAYCTRL_CONFDIR}
+
+ # tell it our storage dir
+ echo "${RELAYCTRL_BASE}/${RELAYCTRL_STORAGE}" > ${D}${RELAYCTRL_CONFDIR}/RELAY_CTRL_DIR
+ # default to 30 minutes
+ echo "1800" > ${D}${RELAYCTRL_CONFDIR}/RELAY_CTRL_EXPIRY
+
+ echo "/usr/bin/envdir ${RELAYCTRL_CONFDIR} ${RELAYCTRL_BINDIR}/relay-ctrl-age" >${D}/etc/cron.hourly/relay-ctrl-age
+ chmod +x ${D}/etc/cron.hourly/relay-ctrl-age
+}
+
+pkg_postinst() {
+ [ -d /usr/lib/courier-imap/authlib ] && ln -sf /usr/bin/relay-ctrl-allow /usr/lib/courier-imap/authlib/relay-ctrl-allow
+ einfo "Please see the instructions in /usr/share/doc/${PF}/README for setup instructions with Courier-IMAP and Qmail"
+}