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

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:34:53 EDT 2013


    Date: Monday, May 13, 2013 @ 16:34:53
  Author: spupykin
Revision: 90708

upgpkg: pyaimt 0.8.0.1-7

upd

Modified:
  pyaimt/trunk/PKGBUILD
Deleted:
  pyaimt/trunk/pyaim.rc

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:34:48 UTC (rev 90707)
+++ PKGBUILD	2013-05-13 14:34:53 UTC (rev 90708)
@@ -4,7 +4,7 @@
 
 pkgname=pyaimt
 pkgver=0.8.0.1
-pkgrel=6
+pkgrel=7
 pkgdesc="jabber aim transport"
 arch=('any')
 url="http://code.google.com/p/pyaimt/"
@@ -14,11 +14,9 @@
 replaces=(pyaim)
 depends=('python2' 'twisted')
 source=(http://pyaimt.googlecode.com/files/pyaimt-$pkgver.tar.gz
-	pyaim.rc
 	pyaimt.service
 	config.xml)
 md5sums=('121b59a5a3dd3b7c1e30475b0cb7730c'
-         '0dae61f803e19db8be6d5481b26dda04'
          'fc0f33f7f32fb9500fbee3b22fbd9a10'
          'bf89b68fe527764cc9e6a059dc36ef2b')
 
@@ -38,6 +36,5 @@
   install -D -m0644 ./config.xml $pkgdir/etc/ejabberd/pyaimt.xml
   mv $pkgdir/usr/lib/$pkgname/config_example.xml $pkgdir/etc/ejabberd/pyaim_example.xml
   ln -s ../../../etc/ejabberd/pyaimt.xml $pkgdir/usr/lib/$pkgname/config.xml
-  install -D -m0755 pyaim.rc $pkgdir/etc/rc.d/pyaimt
   install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
 }

Deleted: pyaim.rc
===================================================================
--- pyaim.rc	2013-05-13 14:34:48 UTC (rev 90707)
+++ pyaim.rc	2013-05-13 14:34:53 UTC (rev 90708)
@@ -1,53 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	[ -f /var/run/pyaimt.pid ] && echo `cat /var/run/pyaimt.pid`
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting jabber AIM transport daemon"
-
-    [ -f /var/run/pyaimt.pid ] && rm -f /var/run/pyaimt.pid
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      cd /usr/lib/pyaimt && exec python2 ./PyAIMt.py 1>/dev/null 2>/dev/null &
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        add_daemon pyaimt
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping jabber AIM transport daemon"
-    PID=`get_pid`
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-      exit 1
-    else
-      rm -f /var/run/pyaimt.pid &> /dev/null
-      rm_daemon pyaimt
-      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