aboutsummaryrefslogtreecommitdiffstats
path: root/community/opendkim
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-19 13:18:19 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-19 13:18:19 +0100
commiteb58e0ff4e31d517228603dbc56780c9775cb9da (patch)
tree19024d7488809765c352c9f615bf2a3fc5702c2f /community/opendkim
parentd516c1691802f84fdb28cf7a275c218d2cb5a971 (diff)
downloadaports-eb58e0ff4e31d517228603dbc56780c9775cb9da.tar.bz2
aports-eb58e0ff4e31d517228603dbc56780c9775cb9da.tar.xz
community/opendkim: move from testing
Diffstat (limited to 'community/opendkim')
-rw-r--r--community/opendkim/APKBUILD57
-rw-r--r--community/opendkim/opendkim.conf1
-rw-r--r--community/opendkim/opendkim.initd16
-rw-r--r--community/opendkim/opendkim.pre-install7
4 files changed, 81 insertions, 0 deletions
diff --git a/community/opendkim/APKBUILD b/community/opendkim/APKBUILD
new file mode 100644
index 0000000000..f9e0874482
--- /dev/null
+++ b/community/opendkim/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=opendkim
+pkgver=2.10.3
+pkgrel=4
+pkgdesc="DKIM signing and verifying filter for MTAs"
+url="http://www.opendkim.org"
+arch="all"
+license="custom"
+makedepends="$depends_dev libressl-dev libmilter-dev"
+pkgusers=opendkim
+pkggroups=opendkim
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-dbg"
+install="$pkgname.pre-install"
+source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz
+ opendkim.conf
+ opendkim.initd"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install || return 1
+
+ install -Dm644 "$pkgdir"/usr/share/doc/opendkim/opendkim.conf.sample \
+ "$pkgdir"/etc/opendkim/opendkim.conf.sample || return 1
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
+ install -Dm644 LICENSE.Sendmail \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.Sendmail || return 1
+
+ install -m755 -D "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/$pkgname || return 1
+ install -m644 -D "$srcdir"/$pkgname.conf \
+ "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="916e691cdd16cfabd1cd6efe745323f9 opendkim-2.10.3.tar.gz
+a4fadd2a9de27bfbc83173db4db9a7f5 opendkim.conf
+72e7beb15c2dcc0fef5f06edb0f285f1 opendkim.initd"
+sha256sums="43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b opendkim-2.10.3.tar.gz
+b030ab34d324d75b353a1d3ee1483da497ad2be76dec0ddba6c25547d833dca0 opendkim.conf
+bfed96e5a9e8e68ee2c66feed9a37270967eaf62a554367658c517f3bec87b5c opendkim.initd"
+sha512sums="97923e533d072c07ae4d16a46cbed95ee799aa50f19468d8bc6d1dc534025a8616c3b4b68b5842bc899b509349a2c9a67312d574a726b048c0ea46dd4fcc45d8 opendkim-2.10.3.tar.gz
+8a9ae1d6879ee20493f1fdd69ca750ca6cca8cdecea37a4b87dd67cd843491ea9e1dc2f3a2636acd1d22e961f9f61763beb898e4c58b534e3a1c9c8b1d6a3b69 opendkim.conf
+421888b3c41e97512139d30fdb55dcfa03c3c1596c67107c7e5d5a31edafff869b774d37d40f644ed967f507f15179202fc6351df4692904f25f5ad8a955652f opendkim.initd"
diff --git a/community/opendkim/opendkim.conf b/community/opendkim/opendkim.conf
new file mode 100644
index 0000000000..9e1631c4e0
--- /dev/null
+++ b/community/opendkim/opendkim.conf
@@ -0,0 +1 @@
+EXTRA_OPTS="-x /etc/opendkim/opendkim.conf"
diff --git a/community/opendkim/opendkim.initd b/community/opendkim/opendkim.initd
new file mode 100644
index 0000000000..843798f5ad
--- /dev/null
+++ b/community/opendkim/opendkim.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+
+pidfile=/run/opendkim/opendkim.pid
+
+command=/usr/sbin/opendkim
+command_args="-f ${EXTRA_OPTS}"
+command_background=yes
+
+depend() {
+ need net
+ before mta
+}
+
+start_pre() {
+ checkpath -d -o opendkim:opendkim -m755 /run/opendkim
+}
diff --git a/community/opendkim/opendkim.pre-install b/community/opendkim/opendkim.pre-install
new file mode 100644
index 0000000000..25d3fd7538
--- /dev/null
+++ b/community/opendkim/opendkim.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+addgroup -S opendkim 2>/dev/null
+adduser -S -D -H -s /bin/false -G opendkim -g opendkim opendkim 2>/dev/null
+
+exit 0
+