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

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


    Date: Monday, May 13, 2013 @ 16:35:39
  Author: spupykin
Revision: 90712

upgpkg: pymsnt 0.11.3-9

upd

Modified:
  pymsnt/trunk/PKGBUILD
Deleted:
  pymsnt/trunk/pymsn.rc

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:35:35 UTC (rev 90711)
+++ PKGBUILD	2013-05-13 14:35:39 UTC (rev 90712)
@@ -4,7 +4,7 @@
 
 pkgname=pymsnt
 pkgver=0.11.3
-pkgrel=8
+pkgrel=9
 pkgdesc="jabber msn transport"
 arch=(any)
 url="http://delx.net.au/projects/pymsnt/"
@@ -12,12 +12,10 @@
 backup=(etc/ejabberd/pymsn.xml)
 depends=('python2' 'twisted' 'python2-pyopenssl')
 source=(http://delx.net.au/projects/pymsnt/tarballs/pymsnt-$pkgver.tar.gz
-	pymsn.rc
 	pymsnt.service
 	config.xml
 	pymsnt-version.patch)
 md5sums=('e74049fb1bfae59846b1be3d4ef80299'
-         '40627f2cb05618771728d29d7c3a6999'
          'ecf20ab8360211436f7c9d149b6a3420'
          '4c07c88403515f1da61974b57acf8db7'
          '50c03d89ca1f682ebffcfacb70d1ba00')
@@ -39,7 +37,6 @@
   install -D -m0644 ./config.xml $pkgdir/etc/ejabberd/pymsn.xml
   mv $pkgdir/usr/lib/$pkgname/config-example.xml $pkgdir/etc/ejabberd/pymsn_example.xml
   ln -s ../../../etc/ejabberd/pymsn.xml $pkgdir/usr/lib/$pkgname/config.xml
-  install -D -m0755 pymsn.rc $pkgdir/etc/rc.d/pymsnt
 
   install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
 }

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