[arch-commits] Commit in pymsnt/repos/community-any (9 files)

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


    Date: Monday, May 13, 2013 @ 16:35:54
  Author: spupykin
Revision: 90713

archrelease: copy trunk to community-any

Added:
  pymsnt/repos/community-any/PKGBUILD
    (from rev 90712, pymsnt/trunk/PKGBUILD)
  pymsnt/repos/community-any/config.xml
    (from rev 90712, pymsnt/trunk/config.xml)
  pymsnt/repos/community-any/pymsnt-version.patch
    (from rev 90712, pymsnt/trunk/pymsnt-version.patch)
  pymsnt/repos/community-any/pymsnt.service
    (from rev 90712, pymsnt/trunk/pymsnt.service)
Deleted:
  pymsnt/repos/community-any/PKGBUILD
  pymsnt/repos/community-any/config.xml
  pymsnt/repos/community-any/pymsn.rc
  pymsnt/repos/community-any/pymsnt-version.patch
  pymsnt/repos/community-any/pymsnt.service

----------------------+
 PKGBUILD             |   87 +++++++++++++++++++++++--------------------------
 config.xml           |   38 ++++++++++-----------
 pymsn.rc             |   53 -----------------------------
 pymsnt-version.patch |   24 ++++++-------
 pymsnt.service       |   24 ++++++-------
 5 files changed, 85 insertions(+), 141 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:35:39 UTC (rev 90712)
+++ PKGBUILD	2013-05-13 14:35:54 UTC (rev 90713)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Moritz Rudert <helios at cyb0rg.org>
-
-pkgname=pymsnt
-pkgver=0.11.3
-pkgrel=8
-pkgdesc="jabber msn transport"
-arch=(any)
-url="http://delx.net.au/projects/pymsnt/"
-license=('GPL')
-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')
-
-build() {
-  cd $srcdir
-  patch -p0 < $srcdir/pymsnt-version.patch
-
-  # 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
-
-  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/var/spool/pymsnt
-  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
-}

Copied: pymsnt/repos/community-any/PKGBUILD (from rev 90712, pymsnt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-05-13 14:35:54 UTC (rev 90713)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Moritz Rudert <helios at cyb0rg.org>
+
+pkgname=pymsnt
+pkgver=0.11.3
+pkgrel=9
+pkgdesc="jabber msn transport"
+arch=(any)
+url="http://delx.net.au/projects/pymsnt/"
+license=('GPL')
+backup=(etc/ejabberd/pymsn.xml)
+depends=('python2' 'twisted' 'python2-pyopenssl')
+source=(http://delx.net.au/projects/pymsnt/tarballs/pymsnt-$pkgver.tar.gz
+	pymsnt.service
+	config.xml
+	pymsnt-version.patch)
+md5sums=('e74049fb1bfae59846b1be3d4ef80299'
+         'ecf20ab8360211436f7c9d149b6a3420'
+         '4c07c88403515f1da61974b57acf8db7'
+         '50c03d89ca1f682ebffcfacb70d1ba00')
+
+package() {
+  cd $srcdir
+  patch -p0 < $srcdir/pymsnt-version.patch
+
+  # 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
+
+  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/var/spool/pymsnt
+  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 -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+}

Deleted: config.xml
===================================================================
--- config.xml	2013-05-13 14:35:39 UTC (rev 90712)
+++ config.xml	2013-05-13 14:35:54 UTC (rev 90713)
@@ -1,19 +0,0 @@
-<pymsnt>
-<jid>msn</jid>
-<host>127.0.0.1</host>
-<spooldir>/var/spool/pymsnt</spooldir>
-<pid>/var/run/pymsnt.pid</pid>
-<mainServer>127.0.0.1</mainServer>
-<port>5347</port>
-<secret>secret</secret>
-<lang>en</lang>
-<website>http://host.com</website>
-<allowRegister/>
-<getAllAvatars/>
-<ftSizeLimit>524288</ftSizeLimit>
-<ftRateLimit>2048</ftRateLimit>
-<ftJabberPort>8010</ftJabberPort>
-<admins>
-<jid>admin at host.com</jid>
-</admins>
-</pymsnt>

Copied: pymsnt/repos/community-any/config.xml (from rev 90712, pymsnt/trunk/config.xml)
===================================================================
--- config.xml	                        (rev 0)
+++ config.xml	2013-05-13 14:35:54 UTC (rev 90713)
@@ -0,0 +1,19 @@
+<pymsnt>
+<jid>msn</jid>
+<host>127.0.0.1</host>
+<spooldir>/var/spool/pymsnt</spooldir>
+<pid>/var/run/pymsnt.pid</pid>
+<mainServer>127.0.0.1</mainServer>
+<port>5347</port>
+<secret>secret</secret>
+<lang>en</lang>
+<website>http://host.com</website>
+<allowRegister/>
+<getAllAvatars/>
+<ftSizeLimit>524288</ftSizeLimit>
+<ftRateLimit>2048</ftRateLimit>
+<ftJabberPort>8010</ftJabberPort>
+<admins>
+<jid>admin at host.com</jid>
+</admins>
+</pymsnt>

Deleted: pymsn.rc
===================================================================
--- pymsn.rc	2013-05-13 14:35:39 UTC (rev 90712)
+++ pymsn.rc	2013-05-13 14:35:54 UTC (rev 90713)
@@ -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

Deleted: pymsnt-version.patch
===================================================================
--- pymsnt-version.patch	2013-05-13 14:35:39 UTC (rev 90712)
+++ pymsnt-version.patch	2013-05-13 14:35:54 UTC (rev 90713)
@@ -1,12 +0,0 @@
-diff -a -u -d -r pymsnt-0.11.3/src/legacy/msn/msn.py pymsnt/src/legacy/msn/msn.py
---- pymsnt-0.11.3/src/legacy/msn/msn.py	2008-02-08 16:55:07.000000000 +0300
-+++ pymsnt-0.11.3/src/legacy/msn/msn.py	2008-08-05 20:40:46.000000000 +0400
-@@ -110,7 +110,7 @@
- from urllib import quote, unquote
- 
- 
--MSN_PROTOCOL_VERSION = "MSNP11 CVR0"      # protocol version
-+MSN_PROTOCOL_VERSION = "MSNP11"      # protocol version
- MSN_PORT             = 1863               # default dispatch server port
- MSN_MAX_MESSAGE      = 1664               # max message length
- MSN_CVR_STR          = "0x040c winnt 5.1 i386 MSNMSGR 7.0.0777 msmsgs"

Copied: pymsnt/repos/community-any/pymsnt-version.patch (from rev 90712, pymsnt/trunk/pymsnt-version.patch)
===================================================================
--- pymsnt-version.patch	                        (rev 0)
+++ pymsnt-version.patch	2013-05-13 14:35:54 UTC (rev 90713)
@@ -0,0 +1,12 @@
+diff -a -u -d -r pymsnt-0.11.3/src/legacy/msn/msn.py pymsnt/src/legacy/msn/msn.py
+--- pymsnt-0.11.3/src/legacy/msn/msn.py	2008-02-08 16:55:07.000000000 +0300
++++ pymsnt-0.11.3/src/legacy/msn/msn.py	2008-08-05 20:40:46.000000000 +0400
+@@ -110,7 +110,7 @@
+ from urllib import quote, unquote
+ 
+ 
+-MSN_PROTOCOL_VERSION = "MSNP11 CVR0"      # protocol version
++MSN_PROTOCOL_VERSION = "MSNP11"      # protocol version
+ MSN_PORT             = 1863               # default dispatch server port
+ MSN_MAX_MESSAGE      = 1664               # max message length
+ MSN_CVR_STR          = "0x040c winnt 5.1 i386 MSNMSGR 7.0.0777 msmsgs"

Deleted: pymsnt.service
===================================================================
--- pymsnt.service	2013-05-13 14:35:39 UTC (rev 90712)
+++ pymsnt.service	2013-05-13 14:35:54 UTC (rev 90713)
@@ -1,12 +0,0 @@
-[Unit]
-Description=MSN jabber service
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=simple
-PIDFile=/var/run/pymsnt.pid
-ExecStart=/usr/bin/python2 PyMSNt.py
-WorkingDirectory=/usr/lib/pymsnt
-
-[Install]
-WantedBy=multi-user.target

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



More information about the arch-commits mailing list