summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-05-24 09:40:01 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-05-24 09:40:01 +0000
commit4279d63ec9c5804c5b2bc79a13b2a4de02661d91 (patch)
tree362dd85fa4b3af87b0a6e979c982031e203fc73a /net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild
parentMarked ppc (Manifest recommit) (diff)
downloadgentoo-2-4279d63ec9c5804c5b2bc79a13b2a4de02661d91.tar.gz
gentoo-2-4279d63ec9c5804c5b2bc79a13b2a4de02661d91.tar.bz2
gentoo-2-4279d63ec9c5804c5b2bc79a13b2a4de02661d91.zip
bug #51869, make relaying behave properly.
Diffstat (limited to 'net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild')
-rw-r--r--net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild
new file mode 100644
index 000000000000..89f1a107552d
--- /dev/null
+++ b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 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-r2.ebuild,v 1.1 2004/05/24 09:40:01 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"
+
+inherit fixheadtails
+
+src_unpack() {
+ unpack ${A}
+ ht_fix_file ${S}/Makefile
+ epatch ${FILESDIR}/authenticated.c-relayfixup.diff
+}
+
+src_compile() {
+ echo "${CC} ${CFLAGS}" > conf-cc
+ echo "${CC} ${LDFLAGS}" > 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"
+}