[arch-commits] Commit in pyrss/repos/community-any (5 files)

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


    Date: Monday, May 13, 2013 @ 16:36:10
  Author: spupykin
Revision: 90715

archrelease: copy trunk to community-any

Added:
  pyrss/repos/community-any/PKGBUILD
    (from rev 90714, pyrss/trunk/PKGBUILD)
  pyrss/repos/community-any/pyrss.service
    (from rev 90714, pyrss/trunk/pyrss.service)
Deleted:
  pyrss/repos/community-any/PKGBUILD
  pyrss/repos/community-any/pyrss.rc
  pyrss/repos/community-any/pyrss.service

---------------+
 PKGBUILD      |  113 +++++++++++++++++++++++++++-----------------------------
 pyrss.rc      |   53 --------------------------
 pyrss.service |   24 +++++------
 3 files changed, 67 insertions(+), 123 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:35:59 UTC (rev 90714)
+++ PKGBUILD	2013-05-13 14:36:10 UTC (rev 90715)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=pyrss
-pkgver=0.9.9.1
-pkgrel=12
-pkgdesc="jabber rss transport"
-arch=(any)
-url="http://code.google.com/p/pyrss/"
-license=("GPL")
-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() {
-    cd $srcdir
-
-    # python2 fix
-    for file in $(find . -name '*.py' -print); do
-        sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
-        sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
-    done
-    sed -i 's|python pyrss.py|python2 pyrss.py|g' $pkgname-$pkgver/start.py
-    patch $pkgname-$pkgver/pyrss.py <<EOF
---- pyrss.py.org	2005-08-30 23:54:40.000000000 +0400
-+++ pyrss.py	2012-05-03 17:08:39.000000000 +0400
-@@ -10,11 +10,6 @@
- 
- # Added by St. Hermann <sh at sourcecode.de>
- 
--try: 
--    import psyco
--    psyco.full()
--finally:
--    pass
- from optparse import OptionParser
- import sys
- import logging
-EOF
-
-    install -d -m0755 $pkgdir/usr/lib
-    cp -r $pkgname-$pkgver $pkgdir/usr/lib
-    mv $pkgdir/usr/lib/$pkgname-$pkgver $pkgdir/usr/lib/$pkgname
-
-    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
-
-    install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
-}

Copied: pyrss/repos/community-any/PKGBUILD (from rev 90714, pyrss/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-05-13 14:36:10 UTC (rev 90715)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=pyrss
+pkgver=0.9.9.1
+pkgrel=13
+pkgdesc="jabber rss transport"
+arch=(any)
+url="http://code.google.com/p/pyrss/"
+license=("GPL")
+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.service)
+md5sums=('3f48f3b7f36c2c588b8d55a5841482ab'
+         '1fbbcc50f4b8ca5d8db1d3adffb5e42e')
+
+package() {
+    cd $srcdir
+
+    # python2 fix
+    for file in $(find . -name '*.py' -print); do
+        sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+        sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+    done
+    sed -i 's|python pyrss.py|python2 pyrss.py|g' $pkgname-$pkgver/start.py
+    patch $pkgname-$pkgver/pyrss.py <<EOF
+--- pyrss.py.org	2005-08-30 23:54:40.000000000 +0400
++++ pyrss.py	2012-05-03 17:08:39.000000000 +0400
+@@ -10,11 +10,6 @@
+ 
+ # Added by St. Hermann <sh at sourcecode.de>
+ 
+-try: 
+-    import psyco
+-    psyco.full()
+-finally:
+-    pass
+ from optparse import OptionParser
+ import sys
+ import logging
+EOF
+
+    install -d -m0755 $pkgdir/usr/lib
+    cp -r $pkgname-$pkgver $pkgdir/usr/lib
+    mv $pkgdir/usr/lib/$pkgname-$pkgver $pkgdir/usr/lib/$pkgname
+
+    install -d -m0755 $pkgdir/etc/ejabberd
+    mv $pkgdir/usr/lib/$pkgname/pyrss.xml $pkgdir/etc/ejabberd/pyrss.xml
+    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
+
+    install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+}

Deleted: pyrss.rc
===================================================================
--- pyrss.rc	2013-05-13 14:35:59 UTC (rev 90714)
+++ pyrss.rc	2013-05-13 14:36:10 UTC (rev 90715)
@@ -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

Deleted: pyrss.service
===================================================================
--- pyrss.service	2013-05-13 14:35:59 UTC (rev 90714)
+++ pyrss.service	2013-05-13 14:36:10 UTC (rev 90715)
@@ -1,12 +0,0 @@
-[Unit]
-Description=RSS jabber service
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=simple
-PIDFile=/var/run/pyrss.pid
-ExecStart=/usr/bin/python2 start.py
-WorkingDirectory=/usr/lib/pyrss
-
-[Install]
-WantedBy=multi-user.target

Copied: pyrss/repos/community-any/pyrss.service (from rev 90714, pyrss/trunk/pyrss.service)
===================================================================
--- pyrss.service	                        (rev 0)
+++ pyrss.service	2013-05-13 14:36:10 UTC (rev 90715)
@@ -0,0 +1,12 @@
+[Unit]
+Description=RSS jabber service
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=simple
+PIDFile=/var/run/pyrss.pid
+ExecStart=/usr/bin/python2 start.py
+WorkingDirectory=/usr/lib/pyrss
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list