From 9e3985ed7c9851da65023a0ab3d0739cce1858e2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Oct 2012 01:24:49 -0700 Subject: Thu Oct 18 01:23:58 PDT 2012 --- community/p3scan/PKGBUILD | 17 ++++++++++++----- community/p3scan/p3scan.service | 10 ++++++++++ community/p3scan/p3scan.tmpfiles | 1 + 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 community/p3scan/p3scan.service create mode 100644 community/p3scan/p3scan.tmpfiles (limited to 'community/p3scan') 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 # Contributor: v01d 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 - -- cgit v1.2.3-54-g00ecf