diff options
Diffstat (limited to 'community/p3scan')
-rw-r--r-- | community/p3scan/PKGBUILD | 15 | ||||
-rw-r--r-- | community/p3scan/p3scan.service | 4 | ||||
-rw-r--r-- | community/p3scan/rc.p3scan | 39 |
3 files changed, 8 insertions, 50 deletions
diff --git a/community/p3scan/PKGBUILD b/community/p3scan/PKGBUILD index 8791c00f4..4900ee892 100644 --- a/community/p3scan/PKGBUILD +++ b/community/p3scan/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 78346 2012-10-17 14:53:26Z spupykin $ +# $Id: PKGBUILD 91863 2013-05-28 17:37:47Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: v01d <phreakuencies@gmail.com> pkgname=p3scan pkgver=2.3.2 -pkgrel=7 +pkgrel=9 pkgdesc="Fully transparent POP3/SMTP proxy with Anti-Virus and SPAM protection" arch=('i686' 'x86_64' 'mips64el') url="http://p3scan.sourceforge.net/" @@ -12,12 +12,10 @@ depends=('pcre' 'openssl') license=('GPL') install=p3scan.install source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" - "rc.p3scan" "p3scan.service" "p3scan.tmpfiles") md5sums=('9f8decc7d4701228788e3c8717096ca0' - '482a783e699b6532cbc478977f429eb5' - 'dc724b50963d80be7924fc4d9d4856f0' + '74a3a5e52e6714ac5001985061248a34' '265a730e20e3d8aaf0cd7816dc98ca71') build() { @@ -27,7 +25,7 @@ build() { unset CFLAGS sed -ri "s|^CFLAGS=-Wall( -g)? -O2|CFLAGS=-Wall $CFLAGS|" Makefile ripmime/Makefile ripmime/tnef/Makefile ripmime/ripOLE/Makefile sed -ri 's|^LOCATION=.+$|LOCATION=/usr|' ripmime/Makefile - sed -ri 's|\$\(SYSINS\) -v -m 550 --strip p3scan \$\(PREFIX\)/sbin/|$(SYSINS) -D -v -m 550 --strip p3scan $(DESTDIR)/usr/sbin/|' Makefile + sed -ri 's|\$\(SYSINS\) -v -m 550 --strip p3scan \$\(PREFIX\)/sbin/|$(SYSINS) -D -v -m 550 --strip p3scan $(DESTDIR)/usr/bin/|' Makefile make } @@ -35,14 +33,13 @@ package() { cd $srcdir/$pkgname-$pkgver # Create base dirs, the Makefile assumes they're there - install -d $pkgdir/usr/sbin $pkgdir/etc/rc.d $pkgdir/usr/man/man8 + install -d $pkgdir/usr/bin $pkgdir/usr/man/man8 $pkgdir/etc/rc.d # install with root set on $pkgdir make DESTDIR=$pkgdir install # delete init script provided and use an arch compatible one - rm -f $pkgdir/etc/rc.d/rc.p3scan - install -D -m755 -g root -o root $srcdir/rc.p3scan $pkgdir/etc/rc.d/p3scan + rm -rf $pkgdir/etc/rc.d # BUG?: make absolute link a relative one ( diff --git a/community/p3scan/p3scan.service b/community/p3scan/p3scan.service index 0bab3e7ec..bdd34b75c 100644 --- a/community/p3scan/p3scan.service +++ b/community/p3scan/p3scan.service @@ -3,8 +3,8 @@ Description=p3scan proxy [Service] Type=forking -PIDFile=/var/run/p3scan/p3scan.pid -ExecStart=/usr/sbin/p3scan +PIDFile=/run/p3scan/p3scan.pid +ExecStart=/usr/bin/p3scan [Install] WantedBy=multi-user.target diff --git a/community/p3scan/rc.p3scan b/community/p3scan/rc.p3scan deleted file mode 100644 index fc8b79b22..000000000 --- a/community/p3scan/rc.p3scan +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -case "$1" in - start) - stat_busy "Starting p3scan" - [ -d /var/run/p3scan ] || mkdir -p /var/run/p3scan - if [ -a /var/run/p3scan/p3scan.pid ]; then stat_die; fi - - # Start p3scan - /usr/sbin/p3scan - if ! [ -a /var/run/p3scan/p3scan.pid ]; then stat_die; fi - add_daemon p3scan - stat_done - ;; - stop) - stat_busy "Stopping p3scan" - - # Stop p3scan - if [ -a /var/run/p3scan/p3scan.pid ]; then - kill `cat /var/run/p3scan/p3scan.pid` &>/dev/null || stat_die - rm -f /var/run/p3scan/p3scan.pid - rm_daemon p3scan - stat_done - else - stat_fail - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "Usage: $0 { start | stop | restart }" -esac -exit 0 |