[arch-commits] Commit in p3scan/trunk (PKGBUILD rc.p3scan)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:32:38 EDT 2013


    Date: Monday, May 13, 2013 @ 16:32:37
  Author: spupykin
Revision: 90698

upgpkg: p3scan 2.3.2-8

upd

Modified:
  p3scan/trunk/PKGBUILD
Deleted:
  p3scan/trunk/rc.p3scan

-----------+
 PKGBUILD  |    9 +++------
 rc.p3scan |   39 ---------------------------------------
 2 files changed, 3 insertions(+), 45 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:32:32 UTC (rev 90697)
+++ PKGBUILD	2013-05-13 14:32:37 UTC (rev 90698)
@@ -4,7 +4,7 @@
 
 pkgname=p3scan
 pkgver=2.3.2
-pkgrel=7
+pkgrel=8
 pkgdesc="Fully transparent POP3/SMTP proxy with Anti-Virus and SPAM protection"
 arch=('i686' 'x86_64')
 url="http://p3scan.sourceforge.net/"
@@ -12,11 +12,9 @@
 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'
          '265a730e20e3d8aaf0cd7816dc98ca71')
 
@@ -35,14 +33,13 @@
   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/sbin $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
   (

Deleted: rc.p3scan
===================================================================
--- rc.p3scan	2013-05-13 14:32:32 UTC (rev 90697)
+++ rc.p3scan	2013-05-13 14:32:37 UTC (rev 90698)
@@ -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



More information about the arch-commits mailing list