summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-mail/relay-ctrl
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-mail/relay-ctrl')
-rw-r--r--net-mail/relay-ctrl/Manifest1
-rw-r--r--net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff28
-rw-r--r--net-mail/relay-ctrl/metadata.xml9
-rw-r--r--net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild66
4 files changed, 104 insertions, 0 deletions
diff --git a/net-mail/relay-ctrl/Manifest b/net-mail/relay-ctrl/Manifest
new file mode 100644
index 000000000000..46cbdab005ef
--- /dev/null
+++ b/net-mail/relay-ctrl/Manifest
@@ -0,0 +1 @@
+DIST relay-ctrl-3.1.1.tar.gz 35046 SHA256 de9101e0cf92232b3aca8696dccf1e91d5c98f53504d35bd350f7cd2a24f206f
diff --git a/net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff b/net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff
new file mode 100644
index 000000000000..72bb5a27aa47
--- /dev/null
+++ b/net-mail/relay-ctrl/files/authenticated.c-relayfixup.diff
@@ -0,0 +1,28 @@
+diff -ur relay-ctrl-3.1.1/authenticated.c relay-ctrl-3.1.1-r2/authenticated.c
+--- relay-ctrl-3.1.1/authenticated.c 2002-04-26 09:07:38.000000000 -0700
++++ relay-ctrl-3.1.1-r2/authenticated.c 2004-05-24 02:31:47.000000000 -0700
+@@ -1,14 +1,20 @@
+ #include <stdlib.h>
++#include <string.h>
+ #include "relay-ctrl.h"
+
+ int is_authenticated(void)
+ {
+ if (getenv("AUTHUSER") && getenv("AUTHARGV0")) {
+ /* Courier IMAP or POP3 */
+- if (getenv("AUTHENTICATED"))
+- return 1;
+- }
+- else
++ char *authenticated = getenv("AUTHENTICATED");
++ if (authenticated && strlen(authenticated)) {
++ return 1;
++ } else {
++ return 0;
++ }
++ } else {
+ return 1;
++ }
++ // unreachable code
+ return 0;
+ }
diff --git a/net-mail/relay-ctrl/metadata.xml b/net-mail/relay-ctrl/metadata.xml
new file mode 100644
index 000000000000..89dcd746873c
--- /dev/null
+++ b/net-mail/relay-ctrl/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
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..dc56d2427211
--- /dev/null
+++ b/net-mail/relay-ctrl/relay-ctrl-3.1.1-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs fixheadtails
+
+DESCRIPTION="SMTP Relaying Control designed for qmail & tcpserver"
+HOMEPAGE="http://untroubled.org/relay-ctrl/"
+SRC_URI="http://untroubled.org/relay-ctrl/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="sys-apps/ucspi-tcp
+ virtual/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_unpack() {
+ unpack ${A}
+ ht_fix_file "${S}"/Makefile
+ epatch "${FILESDIR}"/authenticated.c-relayfixup.diff
+}
+
+src_compile() {
+ myCC="$(tc-getCC)"
+ echo "${myCC} ${CFLAGS}" > conf-cc
+ echo "${myCC} ${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
+
+ dodir /etc/cron.hourly
+ echo "/usr/bin/envdir ${RELAYCTRL_CONFDIR} ${RELAYCTRL_BINDIR}/relay-ctrl-age" >${D}/etc/cron.hourly/relay-ctrl-age
+ fperms 755 /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
+ elog "Please see the instructions in /usr/share/doc/${PF}/README for setup instructions with Courier-IMAP and Qmail"
+}