aboutsummaryrefslogtreecommitdiffstats
path: root/main/dkimproxy
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2014-05-22 14:18:02 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-05-22 14:18:52 +0000
commitf5bcaef23b255239cc7f888e8f2ebb7196c5c26d (patch)
treedb5b7aecad2bdca2dcd83f2dab9066380bcf369c /main/dkimproxy
parent2a2a8dd7d9a65f82b81909d5d97aa2dc515fcd88 (diff)
downloadaports-f5bcaef23b255239cc7f888e8f2ebb7196c5c26d.tar.bz2
aports-f5bcaef23b255239cc7f888e8f2ebb7196c5c26d.tar.xz
testing/dkimproxy: move to main
Diffstat (limited to 'main/dkimproxy')
-rw-r--r--main/dkimproxy/APKBUILD64
-rw-r--r--main/dkimproxy/dkimproxy.in.confd3
-rw-r--r--main/dkimproxy/dkimproxy.in.initd31
-rw-r--r--main/dkimproxy/dkimproxy.out.confd3
-rw-r--r--main/dkimproxy/dkimproxy.out.initd31
5 files changed, 132 insertions, 0 deletions
diff --git a/main/dkimproxy/APKBUILD b/main/dkimproxy/APKBUILD
new file mode 100644
index 0000000000..324c442492
--- /dev/null
+++ b/main/dkimproxy/APKBUILD
@@ -0,0 +1,64 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=dkimproxy
+pkgver=1.4.1
+pkgrel=3
+pkgdesc="SMTP-proxy that signs and/or verifies emails, using the Mail::DKIM module"
+url="http://dkimproxy.sourceforge.net/"
+arch="noarch"
+license="GPL"
+depends="perl-mail-dkim perl-net-server perl-error"
+depends_dev=
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ dkimproxy.in.initd
+ dkimproxy.out.initd
+ dkimproxy.in.confd
+ dkimproxy.out.confd
+ "
+
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ eval local $(perl -V:vendorlib)
+ perllibdir="$vendorlib" ./configure --prefix=/usr \
+ --sysconfdir=/etc/dkimproxy \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --bindir=/usr/bin
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ #FIXME
+ mkdir -p "$pkgdir"/usr/sbin
+ mv "$pkgdir"/usr/bin/$pkgname.* "$pkgdir"/usr/sbin/
+
+ install -D -m755 "$srcdir"/$pkgname.in.initd \
+ "$pkgdir"/etc/init.d/$pkgname.in
+ install -D -m755 "$srcdir"/$pkgname.out.initd \
+ "$pkgdir"/etc/init.d/$pkgname.out
+ install -D -m755 "$srcdir"/$pkgname.in.confd \
+ "$pkgdir"/etc/conf.d/$pkgname.in
+ install -D -m755 "$srcdir"/$pkgname.out.confd \
+ "$pkgdir"/etc/conf.d/$pkgname.out
+
+}
+
+md5sums="3ecaa38a8c865a5b7682f7f261354218 dkimproxy-1.4.1.tar.gz
+825ed04082c623be6b53933424534d88 dkimproxy.in.initd
+7d5bdc03360a9845eb0324f974e07e8d dkimproxy.out.initd
+ed0a3b96bfa39456b8c140bb7299590e dkimproxy.in.confd
+29bd82752fb872abcd7711244de6bc09 dkimproxy.out.confd"
diff --git a/main/dkimproxy/dkimproxy.in.confd b/main/dkimproxy/dkimproxy.in.confd
new file mode 100644
index 0000000000..e10508a436
--- /dev/null
+++ b/main/dkimproxy/dkimproxy.in.confd
@@ -0,0 +1,3 @@
+#OPTS=""
+CONFIGFILE="/etc/dkimproxy/dkimproxy_in.conf"
+PIDFILE="/var/run/dkimproxy_in.pid"
diff --git a/main/dkimproxy/dkimproxy.in.initd b/main/dkimproxy/dkimproxy.in.initd
new file mode 100644
index 0000000000..0eb5a9b89e
--- /dev/null
+++ b/main/dkimproxy/dkimproxy.in.initd
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+
+description="SMTP proxy that verifies signature on incoming messages"
+
+depend() {
+ need net
+ after firewall
+}
+
+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/sbin/dkimproxy.in \
+ --pidfile "${PIDFILE}" --make-pidfile --background \
+ -- --conf_file=${CONFIGFILE} ${OPTS}
+ eend $?
+}
+
+
+stop() {
+ ebegin "Stopping dkimproxy.in"
+ start-stop-daemon --stop -q --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/main/dkimproxy/dkimproxy.out.confd b/main/dkimproxy/dkimproxy.out.confd
new file mode 100644
index 0000000000..570b0bc078
--- /dev/null
+++ b/main/dkimproxy/dkimproxy.out.confd
@@ -0,0 +1,3 @@
+#OPTS=""
+CONFIGFILE="/etc/dkimproxy/dkimproxy_out.conf"
+PIDFILE="/var/run/dkimproxy_out.pid"
diff --git a/main/dkimproxy/dkimproxy.out.initd b/main/dkimproxy/dkimproxy.out.initd
new file mode 100644
index 0000000000..ec1fba8869
--- /dev/null
+++ b/main/dkimproxy/dkimproxy.out.initd
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+
+description="SMTP proxy that verifies signature on outgoing messages"
+
+depend() {
+ need net
+ after firewall
+}
+
+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/sbin/dkimproxy.out \
+ --pidfile "${PIDFILE}" --make-pidfile --background \
+ -- --conf_file=${CONFIGFILE} ${OPTS}
+ eend $?
+}
+
+
+stop() {
+ ebegin "Stopping dkimproxy.out"
+ start-stop-daemon --stop -q --pidfile "${PIDFILE}"
+ eend $?
+}