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
commite9ab7cf25d3c128512c5d18abe882502e5deb391 (patch)
tree55b4aef565a8b7c25f9c069b7ac1debb49aee1e3 /net-mail
parentcleanup, add config info, lower deps (diff)
downloadgentoo-2-e9ab7cf25d3c128512c5d18abe882502e5deb391.tar.gz
gentoo-2-e9ab7cf25d3c128512c5d18abe882502e5deb391.tar.bz2
gentoo-2-e9ab7cf25d3c128512c5d18abe882502e5deb391.zip
cleanup, add config info, lower deps
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/relay-ctrl/ChangeLog5
-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
4 files changed, 63 insertions, 5 deletions
diff --git a/net-mail/relay-ctrl/ChangeLog b/net-mail/relay-ctrl/ChangeLog
index 8dfe400b7e7c..1dee0a5f8747 100644
--- a/net-mail/relay-ctrl/ChangeLog
+++ b/net-mail/relay-ctrl/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-mail/relay-ctrl
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/relay-ctrl/ChangeLog,v 1.6 2003/02/12 08:16:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/relay-ctrl/ChangeLog,v 1.7 2003/08/01 04:21:47 robbat2 Exp $
+
+ 31 Jul 2003; RObin H. Johnson <robbat2@gentoo.org> relay-ctrl-3.1.1-r1.ebuild:
+ Add in config info, and reduce dependancies (you don't need qmail really)
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
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"
+}