aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD35
-rw-r--r--dkimproxy.install7
-rw-r--r--dkimproxy_in.service10
-rw-r--r--dkimproxy_out.service10
5 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..7d2f9ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 14:57:38 UTC 2015
+pkgbase = dkimproxy
+ pkgdesc = An SMTP-proxy that signs and/or verifies emails, using the Mail::DKIM module.
+ pkgver = 1.4.1
+ pkgrel = 4
+ url = http://dkimproxy.sourceforge.net/
+ install = dkimproxy.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = perl-mail-dkim
+ depends = perl-net-server
+ depends = perl-error
+ options = !emptydirs
+ source = http://downloads.sourceforge.net/dkimproxy/dkimproxy-1.4.1.tar.gz
+ source = dkimproxy_in.service
+ source = dkimproxy_out.service
+ sha256sums = e5345a1d3cefd32d1fb0face9fa73490118132767253b0ce643463f1e86185bd
+ sha256sums = aee1890b21ef326ac4691a73f46508319c428f2b1f618ec64e9ccbc4b95f8844
+ sha256sums = 5ec4cd130e0cf55ae9b548f76ee7d1ca615592f651152dcfd984a7bcdbbfd7d6
+
+pkgname = dkimproxy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..ee32552
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Contributor: Pizon <pizon@pizon.org>
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+
+pkgname=dkimproxy
+pkgver=1.4.1
+pkgrel=4
+
+pkgdesc="An SMTP-proxy that signs and/or verifies emails, using the Mail::DKIM module."
+arch=('i686' 'x86_64')
+url="http://dkimproxy.sourceforge.net/"
+license=('GPL')
+
+depends=('perl-mail-dkim' 'perl-net-server' 'perl-error')
+options=('!emptydirs')
+
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+ dkimproxy_in.service dkimproxy_out.service)
+
+sha256sums=('e5345a1d3cefd32d1fb0face9fa73490118132767253b0ce643463f1e86185bd'
+ 'aee1890b21ef326ac4691a73f46508319c428f2b1f618ec64e9ccbc4b95f8844'
+ '5ec4cd130e0cf55ae9b548f76ee7d1ca615592f651152dcfd984a7bcdbbfd7d6')
+
+build() {
+ cd dkimproxy-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc/dkimproxy
+ make
+}
+
+package() {
+ cd dkimproxy-$pkgver
+ make install DESTDIR="$pkgdir"
+ install -Dm755 ../dkimproxy_in.service "$pkgdir/usr/lib/systemd/system/dkimproxy_in.service"
+ install -Dm755 ../dkimproxy_out.service "$pkgdir/usr/lib/systemd/system/dkimproxy_out.service"
+}
diff --git a/dkimproxy.install b/dkimproxy.install
new file mode 100644
index 0000000..534513b
--- /dev/null
+++ b/dkimproxy.install
@@ -0,0 +1,7 @@
+post_install() {
+ useradd -c "DKIM Proxy" -s /sbin/nologin -d /var/empty -U dkimproxy
+}
+
+post_remove() {
+ userdel dkimproxy
+}
diff --git a/dkimproxy_in.service b/dkimproxy_in.service
new file mode 100644
index 0000000..dd9ba68
--- /dev/null
+++ b/dkimproxy_in.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=DKIMproxy Incoming
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/dkimproxy.in --conf_file=/etc/dkimproxy/dkimproxy_in.conf --user=dkimproxy --group=dkimproxy --daemonize
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dkimproxy_out.service b/dkimproxy_out.service
new file mode 100644
index 0000000..f8dc27a
--- /dev/null
+++ b/dkimproxy_out.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=DKIMproxy Outgoing
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/dkimproxy.out --conf_file=/etc/dkimproxy/dkimproxy_out.conf --user=dkimproxy --group=dkimproxy --daemonize
+
+[Install]
+WantedBy=multi-user.target