aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dkimproxy
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-11-13 14:48:39 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-11-13 14:50:20 +0000
commit09aa027a587e88631cd9c4e1550cf5fc2f7a17ed (patch)
tree7f9994d2880dbf94c87ff1697118bb5891adf3fd /testing/dkimproxy
parent1533c539285262beb61d1f410162e55678220dfa (diff)
downloadaports-09aa027a587e88631cd9c4e1550cf5fc2f7a17ed.tar.bz2
aports-09aa027a587e88631cd9c4e1550cf5fc2f7a17ed.tar.xz
testing/dkimproxy: new aport
SMTP-proxy that signs and/or verifies emails. Fixes #1451
Diffstat (limited to 'testing/dkimproxy')
-rw-r--r--testing/dkimproxy/APKBUILD45
-rw-r--r--testing/dkimproxy/dkimproxy.initd38
2 files changed, 83 insertions, 0 deletions
diff --git a/testing/dkimproxy/APKBUILD b/testing/dkimproxy/APKBUILD
new file mode 100644
index 0000000000..bad30be30e
--- /dev/null
+++ b/testing/dkimproxy/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=dkimproxy
+pkgver=1.4.1
+pkgrel=0
+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"
+
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --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 ../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="3ecaa38a8c865a5b7682f7f261354218 dkimproxy-1.4.1.tar.gz"
diff --git a/testing/dkimproxy/dkimproxy.initd b/testing/dkimproxy/dkimproxy.initd
new file mode 100644
index 0000000000..3311f84221
--- /dev/null
+++ b/testing/dkimproxy/dkimproxy.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+
+NAME=dkimproxy
+
+depend() {
+ need net
+ after firewall
+}
+
+launch() {
+ ebegin "Starting ${DAEMON}"
+ start-stop-daemon --start --quiet --background \
+ --pidfile /var/run/${DAEMON}.pid \
+ --exec ${DAEMON} -- ${OPTS}
+ eend $?
+}
+
+terminate() {
+ ebegin "Stopping ${DAEMON}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON} \
+ --pidfile /var/run/${DAEMON}.pid \
+ eend $?
+}
+
+start() {
+ DAEMON="${NAME}.in"
+ launch
+ DAEMON="${NAME}.out"
+ launch
+}
+
+stop() {
+ DAEMON="${NAME}.in"
+ terminate
+ DAEMON="${NAME}.out"
+ terminate
+}