diff options
author | 2010-10-07 18:16:52 +0200 | |
---|---|---|
committer | 2010-10-07 18:16:52 +0200 | |
commit | 378efbce9f2ee0b955012e2c0d85676cac293625 (patch) | |
tree | 9544350ba98366f376ec1f0557b1aaa6c274df08 /mail-filter | |
parent | [sys-fs/ocfs2-tools] Add cpg patch thanks to Joerg Neikes for it. (diff) | |
download | scarabeus-378efbce9f2ee0b955012e2c0d85676cac293625.tar.gz scarabeus-378efbce9f2ee0b955012e2c0d85676cac293625.tar.bz2 scarabeus-378efbce9f2ee0b955012e2c0d85676cac293625.zip |
Proposed ebuild for DKIMproxy
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/dkimproxy/Manifest | 6 | ||||
-rw-r--r-- | mail-filter/dkimproxy/dkimproxy-1.2.ebuild | 49 | ||||
-rw-r--r-- | mail-filter/dkimproxy/files/dkimproxy.in-initd | 33 | ||||
-rw-r--r-- | mail-filter/dkimproxy/files/dkimproxy.out-initd | 33 | ||||
-rw-r--r-- | mail-filter/dkimproxy/files/dkimproxy_in.conf.gentoo | 11 | ||||
-rw-r--r-- | mail-filter/dkimproxy/files/dkimproxy_out.conf.gentoo | 24 |
6 files changed, 156 insertions, 0 deletions
diff --git a/mail-filter/dkimproxy/Manifest b/mail-filter/dkimproxy/Manifest new file mode 100644 index 0000000..90bb784 --- /dev/null +++ b/mail-filter/dkimproxy/Manifest @@ -0,0 +1,6 @@ +AUX dkimproxy.in-initd 692 RMD160 5e5179facb0781e684ed81c6339de5f9f3a71516 SHA1 6efd0dd8c2759e7cf0536be59df9942651b0159b SHA256 a8ae13a458e375a10cb2612dafb6d6bc011e6aeb1f487dcc58ba6038b7c2fba9 +AUX dkimproxy.out-initd 696 RMD160 373f7a7a668871898378b2ebbbe75715023409e9 SHA1 6e98b6a6af5df32d62bcc4855290164083ce5eca SHA256 291ad31798889e8bf90ab90f7b050a4a32f201bd14142bfffdfafaaf094c30e4 +AUX dkimproxy_in.conf.gentoo 256 RMD160 74a36587c20a5e3e32a57c89d11c9441b72d6044 SHA1 f53f6ba805499fdd7e22cc96e2aa5ca5763798b8 SHA256 3b1668d76b5e0d623bfd803d86b0a3f042d51b365c7355ff082502ce537ad07c +AUX dkimproxy_out.conf.gentoo 616 RMD160 d9a1afe3bf01ccd0e5b7df4163b89780c1b4d252 SHA1 a54d04c037a89707957797bb99810b3ea752c1ac SHA256 538b95ce7584d83bf2a39bf9a6b4e7755ed04bd6664c94945bdde7e628cc58b7 +DIST dkimproxy-1.2.tar.gz 96971 RMD160 4e4f2ec6f350186000c06d302867626e91c7d0a8 SHA1 470a6cd1f12213f10a6db86ae5340b72940a47f8 SHA256 4ae76367e2cecc85c3bce15513bf110b96251acd3d5e4278fbf6c9c5f9d3b7be +EBUILD dkimproxy-1.2.ebuild 1304 RMD160 9685b3e9ecd67facc5e1fa7040056c587866d32c SHA1 785f5220fbe0309ccc2a003daf17aa127d76d969 SHA256 b44a2f5dbaf6f2b1f639a058dfbbe103b08ccac59ecaa6ff1f63972dea327a2e diff --git a/mail-filter/dkimproxy/dkimproxy-1.2.ebuild b/mail-filter/dkimproxy/dkimproxy-1.2.ebuild new file mode 100644 index 0000000..b6da1b4 --- /dev/null +++ b/mail-filter/dkimproxy/dkimproxy-1.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit base + +DESCRIPTION="SMTP proxy for signing/verifying DKIM and Domainkey signatures" +HOMEPAGE="http://dkimproxy.sourceforge.net/" +SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-perl/Mail-DKIM + dev-perl/net-server + dev-perl/Error +" +DEPEND="${RDEPEND}" + +src_configure() { + econf \ + --sysconfdir=/etc/${PN} +} + +src_install() { + base_src_install + + dodoc AUTHORS README || die + newinitd ${FILESDIR}/dkimproxy.out-initd dkimproxy.out || die + newinitd ${FILESDIR}/dkimproxy.in-initd dkimproxy.in || die + + insinto /etc/${PN} + newins ${FILESDIR}/dkimproxy_in.conf.gentoo dkimproxy_in.conf.example || die + newins ${FILESDIR}/dkimproxy_out.conf.gentoo dkimproxy_out.conf.example || die +} + +pkg_postinst() { + CONFDIR=/etc/${PN}/ + if [[ ! -f ${CONFDIR}/sample.private.key ]]; then + openssl genrsa -out ${CONFDIR}/sample.private.key 1024 &>/dev/null + openssl rsa -in ${CONFDIR}/sample.private.key -out ${CONFDIR}/sample.public.key -pubout -outform PEM + elog "Autogenerated sample signing keys in ${CONFDIR}." + fi + ewarn "You should edit your config files in ${CONFDIR} before starting ${PN} !" +} diff --git a/mail-filter/dkimproxy/files/dkimproxy.in-initd b/mail-filter/dkimproxy/files/dkimproxy.in-initd new file mode 100644 index 0000000..47ae522 --- /dev/null +++ b/mail-filter/dkimproxy/files/dkimproxy.in-initd @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +PIDFILE=/var/run/dkimproxy_in.pid +CONFIGFILE=/etc/dkimproxy/dkimproxy_in.conf + +depend() { + need net +} + +checkconfig() { + if [ ! -f ${CONFIGFILE} ]; then + eerror "Missing configuration file ${CONFIGFILE}" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting dkimproxy.in" + start-stop-daemon --start -q --exec /usr/bin/dkimproxy.out \ + --pidfile "${PIDFILE}" --make-pidfile --background \ + -- --conf_file=${CONFIGFILE} + eend $? +} + +stop() { + ebegin "Stopping dkimproxy.in" + start-stop-daemon --stop -q --pidfile "${PIDFILE}" + eend $? +} diff --git a/mail-filter/dkimproxy/files/dkimproxy.out-initd b/mail-filter/dkimproxy/files/dkimproxy.out-initd new file mode 100644 index 0000000..4701fef --- /dev/null +++ b/mail-filter/dkimproxy/files/dkimproxy.out-initd @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +PIDFILE=/var/run/dkimproxy_out.pid +CONFIGFILE=/etc/dkimproxy/dkimproxy_out.conf + +depend() { + need net +} + +checkconfig() { + if [ ! -f ${CONFIGFILE} ]; then + eerror "Missing configuration file ${CONFIGFILE}" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting dkimproxy.out" + start-stop-daemon --start -q --exec /usr/bin/dkimproxy.out \ + --pidfile "${PIDFILE}" --make-pidfile --background \ + -- --conf_file=${CONFIGFILE} + eend $? +} + +stop() { + ebegin "Stopping dkimproxy.out" + start-stop-daemon --stop -q --pidfile "${PIDFILE}" + eend $? +} diff --git a/mail-filter/dkimproxy/files/dkimproxy_in.conf.gentoo b/mail-filter/dkimproxy/files/dkimproxy_in.conf.gentoo new file mode 100644 index 0000000..a24ab2f --- /dev/null +++ b/mail-filter/dkimproxy/files/dkimproxy_in.conf.gentoo @@ -0,0 +1,11 @@ +# specify what address/port DKIMproxy should listen on +listen 127.0.0.1:10025 + +# specify what address/port DKIMproxy forwards mail to +relay 127.0.0.1:10026 + +# performance tuning +min_servers 10 +min_spare_servers 5 +max_spare_servers 20 +max_servers 50 diff --git a/mail-filter/dkimproxy/files/dkimproxy_out.conf.gentoo b/mail-filter/dkimproxy/files/dkimproxy_out.conf.gentoo new file mode 100644 index 0000000..6f14175 --- /dev/null +++ b/mail-filter/dkimproxy/files/dkimproxy_out.conf.gentoo @@ -0,0 +1,24 @@ +# specify what address/port DKIMproxy should listen on +listen 127.0.0.1:10027 + +# specify what address/port DKIMproxy forwards mail to +relay 127.0.0.1:10028 + +# specify what domains DKIMproxy can sign for (comma-separated, no spaces) +domain example.org + +# specify what signatures to add +signature dkim(c=relaxed) +signature domainkeys(c=nofws) + +# specify location of the private key +keyfile /etc/dkimproxy/sample.private.key + +# specify the selector (i.e. the name of the key record put in DNS) +selector selector1 + +# performance tuning +min_servers 10 +min_spare_servers 5 +max_spare_servers 20 +max_servers 50 |