aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElias Werberich <elias@werberich.de>2017-07-30 21:18:45 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-20 08:58:09 +0000
commitba013bb188ce088b03a708fdcc7e2226c36fd29f (patch)
treecb7718d6625b6955300a0ede36b5ffd2717174f4
parent8819810f3e403062bd6a1943fb6a64a825ed802d (diff)
downloadaports-ba013bb188ce088b03a708fdcc7e2226c36fd29f.tar.bz2
aports-ba013bb188ce088b03a708fdcc7e2226c36fd29f.tar.xz
testing/amavisd-milter: new aport
URL: http://amavisd-milter.sourceforge.net/ Desc: sendmail milter for amavisd-new using the AM.PDP protocol
-rw-r--r--testing/amavisd-milter/APKBUILD47
-rw-r--r--testing/amavisd-milter/amavisd-milter.confd10
-rw-r--r--testing/amavisd-milter/amavisd-milter.initd20
3 files changed, 77 insertions, 0 deletions
diff --git a/testing/amavisd-milter/APKBUILD b/testing/amavisd-milter/APKBUILD
new file mode 100644
index 0000000000..bb8638e377
--- /dev/null
+++ b/testing/amavisd-milter/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Elias Werberich <elias@werberich.de>
+# Maintainer: Elias Werberich <elias@werberich.de>
+pkgname=amavisd-milter
+pkgver=1.6.1
+pkgrel=0
+pkgdesc="sendmail milter for amavisd-new using the AM.PDP protocol"
+url="http://amavisd-milter.sourceforge.net/"
+arch="all"
+license="BSD"
+depends="amavisd-new libmilter"
+makedepends="libmilter-dev"
+subpackages="$pkgname-doc"
+source="
+ https://downloads.sourceforge.net/amavisd-milter/amavisd-milter/amavisd-milter-1.6.1/amavisd-milter-1.6.1.tar.gz
+ amavisd-milter.initd
+ amavisd-milter.confd
+ "
+builddir="$srcdir/${pkgname}-${pkgver}"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --target="" \
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="28f505a8e130e67decc6c6ff8526f82db24b1b27a11e69f1a112e3e6103f303d333743c2ceaf12bad86979c987cde64f41afb4794c1ca1222cf11a2c3b03c8a5 amavisd-milter-1.6.1.tar.gz
+3e45a8766f6b5bbb089bcb508efe99d17f107d544b2d50d12437a6b7103e2ce143eef9c6ecc0e2a9ced37b153d122e1eb8f171e4000e4e56a7f2a210587c2d68 amavisd-milter.initd
+f44ab528c65050e23a2e78dafd937dae5bc73bd83ff780d7a193d47744674f3991c9d1ae99c4fb8ce1762c50ed6ca5fb604eb2c4cf69fe2e27e8a4076b6f2eec amavisd-milter.confd"
diff --git a/testing/amavisd-milter/amavisd-milter.confd b/testing/amavisd-milter/amavisd-milter.confd
new file mode 100644
index 0000000000..053d53b5ab
--- /dev/null
+++ b/testing/amavisd-milter/amavisd-milter.confd
@@ -0,0 +1,10 @@
+# amavisd-milter conf.d
+
+user="amavis"
+group="amavis"
+
+socket_amavis="/var/amavis/amavisd.sock"
+socket_milter="/var/amavis/amavisd-milter.sock"
+
+workdir="/var/amavis/tmp"
+connections=2
diff --git a/testing/amavisd-milter/amavisd-milter.initd b/testing/amavisd-milter/amavisd-milter.initd
new file mode 100644
index 0000000000..c76cd259ef
--- /dev/null
+++ b/testing/amavisd-milter/amavisd-milter.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+
+pidfile="/var/amavis/amavisd-milter.pid"
+
+name=amavisd-milter
+command="/usr/sbin/$name"
+command_args="-f -B -w $workdir -s $socket_milter -S $socket_amavis -m $connections"
+command_background="yes"
+
+start_stop_daemon_args="--user $user:$group"
+
+depend() {
+ need amavisd
+ need net
+ after firewall
+}
+
+start_post() {
+ chmod 0770 "$socket_milter"
+}