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

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:35:59 EDT 2013


    Date: Monday, May 13, 2013 @ 16:35:59
  Author: spupykin
Revision: 90714

upgpkg: pyrss 0.9.9.1-13

upd

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

----------+
 PKGBUILD |    5 +----
 pyrss.rc |   53 -----------------------------------------------------
 2 files changed, 1 insertion(+), 57 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:35:54 UTC (rev 90713)
+++ PKGBUILD	2013-05-13 14:35:59 UTC (rev 90714)
@@ -4,7 +4,7 @@
 
 pkgname=pyrss
 pkgver=0.9.9.1
-pkgrel=12
+pkgrel=13
 pkgdesc="jabber rss transport"
 arch=(any)
 url="http://code.google.com/p/pyrss/"
@@ -12,10 +12,8 @@
 depends=(python2 python2-pyxmpp python2-feedparser mysql-python)
 backup=(etc/ejabberd/pyrss.xml)
 source=(http://archlinux-stuff.googlecode.com/files/pyrss-$pkgver.tar.bz2
-	pyrss.rc
 	pyrss.service)
 md5sums=('3f48f3b7f36c2c588b8d55a5841482ab'
-         '67e9a1de034bc55397d635d1072b0a03'
          '1fbbcc50f4b8ca5d8db1d3adffb5e42e')
 
 package() {
@@ -50,7 +48,6 @@
 
     install -d -m0755 $pkgdir/etc/ejabberd
     mv $pkgdir/usr/lib/$pkgname/pyrss.xml $pkgdir/etc/ejabberd/pyrss.xml
-    install -D -m0755 pyrss.rc $pkgdir/etc/rc.d/pyrss
     sed -i 's#/etc/jabber/pyrss.xml#/etc/ejabberd/pyrss.xml#' $pkgdir/usr/lib/$pkgname/contrib/auth.py
     sed -i 's#/etc/jabber/pyrss.xml#/etc/ejabberd/pyrss.xml#' $pkgdir/usr/lib/$pkgname/pyrss.py
 

Deleted: pyrss.rc
===================================================================
--- pyrss.rc	2013-05-13 14:35:54 UTC (rev 90713)
+++ pyrss.rc	2013-05-13 14:35:59 UTC (rev 90714)
@@ -1,53 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	ps fax|grep -E 'python2 pyrss|python2 ./start' | grep -v grep | cut -f1 -d' '
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting jabber RSS transport daemon"
-
-    [ -f /var/run/pyrss.pid ] && rm -f /var/run/pyrss.pid
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      cd /usr/lib/pyrss && exec python2 ./start.py 1>/dev/null 2>/dev/null &
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        add_daemon pyrss
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping jabber RSS transport daemon"
-    PID=`get_pid`
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-      exit 1
-    else
-      rm -f /var/run/pyrss.pid &> /dev/null
-      rm_daemon pyrss
-      stat_done
-    fi
-    ;;
-
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0



More information about the arch-commits mailing list