summaryrefslogtreecommitdiff
path: root/community/p3scan
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-18 01:24:49 -0700
committerroot <root@rshg054.dnsready.net>2012-10-18 01:24:49 -0700
commit9e3985ed7c9851da65023a0ab3d0739cce1858e2 (patch)
tree817050bac0aea21506bd81fde0bd6a07d7e2d3e4 /community/p3scan
parentc84b2cd310f86dc50c4f52a5907cb17652e8c87c (diff)
Thu Oct 18 01:23:58 PDT 2012
Diffstat (limited to 'community/p3scan')
-rw-r--r--community/p3scan/PKGBUILD17
-rw-r--r--community/p3scan/p3scan.service10
-rw-r--r--community/p3scan/p3scan.tmpfiles1
3 files changed, 23 insertions, 5 deletions
diff --git a/community/p3scan/PKGBUILD b/community/p3scan/PKGBUILD
index c2dd1382b..7312974e8 100644
--- a/community/p3scan/PKGBUILD
+++ b/community/p3scan/PKGBUILD
@@ -1,20 +1,24 @@
-# $Id: PKGBUILD 64345 2012-02-11 23:22:52Z allan $
+# $Id: PKGBUILD 78346 2012-10-17 14:53:26Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: v01d <phreakuencies@gmail.com>
pkgname=p3scan
pkgver=2.3.2
-pkgrel=6
+pkgrel=7
pkgdesc="Fully transparent POP3/SMTP proxy with Anti-Virus and SPAM protection"
arch=('i686' 'x86_64')
url="http://p3scan.sourceforge.net/"
depends=('pcre' 'openssl')
license=('GPL')
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" "rc.p3scan")
-md5sums=('9f8decc7d4701228788e3c8717096ca0' 'f6e3450c3a932477c49082559b7abef8')
install=p3scan.install
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+ "rc.p3scan"
+ "p3scan.service"
+ "p3scan.tmpfiles")
md5sums=('9f8decc7d4701228788e3c8717096ca0'
- '482a783e699b6532cbc478977f429eb5')
+ '482a783e699b6532cbc478977f429eb5'
+ 'dc724b50963d80be7924fc4d9d4856f0'
+ '265a730e20e3d8aaf0cd7816dc98ca71')
build() {
cd $srcdir/$pkgname-$pkgver
@@ -52,4 +56,7 @@ package() {
mv $pkgdir/usr/man $pkgdir/usr/share/
mv $pkgdir/usr/doc $pkgdir/usr/share/
rm -rf $pkgdir/var/run
+
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+ install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
}
diff --git a/community/p3scan/p3scan.service b/community/p3scan/p3scan.service
new file mode 100644
index 000000000..0bab3e7ec
--- /dev/null
+++ b/community/p3scan/p3scan.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=p3scan proxy
+
+[Service]
+Type=forking
+PIDFile=/var/run/p3scan/p3scan.pid
+ExecStart=/usr/sbin/p3scan
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/p3scan/p3scan.tmpfiles b/community/p3scan/p3scan.tmpfiles
new file mode 100644
index 000000000..17f0a4c22
--- /dev/null
+++ b/community/p3scan/p3scan.tmpfiles
@@ -0,0 +1 @@
+d /run/p3scan 0755 root root -