summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Hendrickx2020-11-22 16:56:31 +0100
committerGeert Hendrickx2020-11-22 16:56:31 +0100
commit5e7a06fc05b41400ecae8e9bf664cef917fe384c (patch)
treecd7a7cbb30282361cce3cca8315734909c91bc46
downloadaur-5e7a06fc05b41400ecae8e9bf664cef917fe384c.tar.gz
OpenDKIM development branch, with ed25519 support (RFC 8463).
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD71
-rw-r--r--opendkim.conf1
-rw-r--r--opendkim.service11
-rw-r--r--opendkim.sysusers2
-rw-r--r--opendkim.tmpfiles1
6 files changed, 119 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..acdd52a4fd3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+pkgbase = opendkim-git
+ pkgdesc = An open source implementation of the DKIM sender authentication system (with ed25519 support)
+ pkgver = 2.11.beta4093.835834ea
+ pkgrel = 1
+ url = https://github.com/trusteddomainproject/OpenDKIM/blob/develop/README
+ arch = x86_64
+ license = BSD
+ license = custom:Sendmail
+ makedepends = libmilter
+ depends = db
+ depends = openssl
+ depends = libbsd
+ depends = opendbx
+ depends = libldap
+ optdepends = perl: for opendkim-genkey
+ provides = opendkim
+ conflicts = opendkim
+ options = !emptydirs
+ backup = etc/conf.d/opendkim
+ source = git://github.com/trusteddomainproject/OpenDKIM.git#branch=develop
+ source = opendkim.conf
+ source = opendkim.sysusers
+ source = opendkim.tmpfiles
+ source = opendkim.service
+ validpgpkeys = 5CDD574C22FF4D2480ACABDF5254B96BC608B511
+ sha256sums = SKIP
+ sha256sums = a3b5ecf4f4fe4a79392a75f7c4b6cc93a51ef8503215bb0f64d795f8754d4b68
+ sha256sums = 525ac5df345e753461efa8f6528f5532a00ecf2562f985a3c6c7169235170499
+ sha256sums = ab66c9fdcb8913f2a550289dd44d56d17b960cf5275839ffd03cba70a27ab6ed
+ sha256sums = 3e1cb3a3ddb794253d5a1c59673c40687bbc2b1bf878e70ccd03356f6d1e6735
+
+pkgname = opendkim-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..45d4f6c4715
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Geert Hendrickx <geert@hendrickx.be>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Thomas Jost <schnouki@schnouki.net>
+
+pkgname=opendkim-git
+_branch=develop
+pkgver=2.11.beta4093.835834ea
+pkgrel=1
+pkgdesc="An open source implementation of the DKIM sender authentication system (with ed25519 support)"
+arch=(x86_64)
+url="https://github.com/trusteddomainproject/OpenDKIM/blob/${_branch}/README"
+license=('BSD' 'custom:Sendmail')
+depends=("db" "openssl" "libbsd" "opendbx" "libldap")
+optdepends=("perl: for opendkim-genkey")
+makedepends=("libmilter")
+provides=(opendkim)
+conflicts=(opendkim)
+options=(!emptydirs)
+backup=(etc/conf.d/opendkim)
+validpgpkeys=('5CDD574C22FF4D2480ACABDF5254B96BC608B511')
+source=("git://github.com/trusteddomainproject/OpenDKIM.git#branch=${_branch}"
+ opendkim.conf
+ opendkim.sysusers
+ opendkim.tmpfiles
+ opendkim.service)
+sha256sums=('SKIP'
+ 'a3b5ecf4f4fe4a79392a75f7c4b6cc93a51ef8503215bb0f64d795f8754d4b68'
+ '525ac5df345e753461efa8f6528f5532a00ecf2562f985a3c6c7169235170499'
+ 'ab66c9fdcb8913f2a550289dd44d56d17b960cf5275839ffd03cba70a27ab6ed'
+ '3e1cb3a3ddb794253d5a1c59673c40687bbc2b1bf878e70ccd03356f6d1e6735')
+
+pkgver() {
+ cd "$srcdir/OpenDKIM"
+ printf "2.11.beta%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/OpenDKIM"
+ autoreconf -i
+}
+
+build() {
+ cd "$srcdir/OpenDKIM"
+ ./configure --prefix=/usr --sbindir=/usr/bin --with-db \
+ --with-odbx --with-sql-backend --with-openldap
+ make
+}
+
+check() {
+ cd "$srcdir/OpenDKIM"
+ make check
+}
+
+package() {
+ cd "$srcdir/OpenDKIM"
+
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 "$srcdir/opendkim.sysusers" "$pkgdir/usr/lib/sysusers.d/opendkim.conf"
+ install -Dm644 "$srcdir/opendkim.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/opendkim.conf"
+
+ # configure default configuration
+ install -Dm644 "$srcdir/opendkim.conf" "$pkgdir/etc/conf.d/opendkim"
+
+ # License
+ mkdir -p "$pkgdir/usr/share/licenses/opendkim"
+ for f in LICENSE LICENSE.Sendmail; do
+ ln -s ../../doc/opendkim/$f "$pkgdir/usr/share/licenses/opendkim/$f"
+ done
+
+ install -Dm0644 "$srcdir"/opendkim.service "$pkgdir"/usr/lib/systemd/system/opendkim.service
+}
diff --git a/opendkim.conf b/opendkim.conf
new file mode 100644
index 00000000000..ebe9024e02a
--- /dev/null
+++ b/opendkim.conf
@@ -0,0 +1 @@
+OPENDKIM_FILTER="-x /etc/opendkim/opendkim.conf"
diff --git a/opendkim.service b/opendkim.service
new file mode 100644
index 00000000000..7d2eb79aa49
--- /dev/null
+++ b/opendkim.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenDKIM daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/opendkim
+ExecStart=/usr/bin/opendkim $OPENDKIM_FILTER
+
+[Install]
+WantedBy=multi-user.target
diff --git a/opendkim.sysusers b/opendkim.sysusers
new file mode 100644
index 00000000000..c3b3e41695f
--- /dev/null
+++ b/opendkim.sysusers
@@ -0,0 +1,2 @@
+u opendkim - - -
+m opendkim mail
diff --git a/opendkim.tmpfiles b/opendkim.tmpfiles
new file mode 100644
index 00000000000..4743d28c86f
--- /dev/null
+++ b/opendkim.tmpfiles
@@ -0,0 +1 @@
+d /etc/opendkim 0700 opendkim mail - -