summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-filter/dkimproxy/dkimproxy-1.4.1.ebuild')
-rw-r--r--mail-filter/dkimproxy/dkimproxy-1.4.1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/mail-filter/dkimproxy/dkimproxy-1.4.1.ebuild b/mail-filter/dkimproxy/dkimproxy-1.4.1.ebuild
new file mode 100644
index 0000000..68b20a5
--- /dev/null
+++ b/mail-filter/dkimproxy/dkimproxy-1.4.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils perl-functions user
+
+DESCRIPTION="An SMTP proxy that signs and/or verifies emails using the Mail::DKIM module"
+HOMEPAGE="http://dkimproxy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=dev-perl/Mail-DKIM-0.34
+ dev-perl/Error
+ >=dev-perl/net-server-0.91"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup dkim
+ enewuser dkim -1 -1 -1 dkim
+}
+
+src_configure() {
+ perl_set_version
+ export perllibdir=${VENDOR_LIB}
+ default_src_configure
+}
+
+src_install() {
+ default_src_install
+ sed -i -e '1s:^\(#!/usr/bin/perl\).*$:\1:' "${D}"/usr/bin/dkimproxy.{in,out}
+ for i in in out; do
+ newinitd "${FILESDIR}"/dkimproxy.init dkimproxy_${i}
+ done
+ diropts -odkim -gdkim -m0750
+ dodir /etc/dkimproxy
+}
+
+pkg_postinst() {
+ einfo
+ einfo "If you want to sign outgoing mail using DKIM, you might want"
+ einfo "to generate an RSA keypair now:"
+ einfo
+ einfo "umask 0027"
+ einfo "openssl genrsa -out /etc/dkimproxy/privkey.pem 1024"
+ einfo "openssl rsa -in /etc/dkimproxy/privkey.pem -pubout -out /etc/dkimproxy/pubkey.pem"
+ einfo "chgrp dkim /etc/dkimproxy/*.pem"
+ einfo
+}