[arch-commits] Commit in deluge/repos/extra-any (16 files)
Jan Steffens
heftig at archlinux.org
Sat Mar 10 10:45:36 UTC 2012
Date: Saturday, March 10, 2012 @ 05:45:36
Author: heftig
Revision: 152858
archrelease: copy trunk to extra-any
Added:
deluge/repos/extra-any/PKGBUILD
(from rev 152857, deluge/trunk/PKGBUILD)
deluge/repos/extra-any/deluge-web
(from rev 152857, deluge/trunk/deluge-web)
deluge/repos/extra-any/deluge-web.service
(from rev 152857, deluge/trunk/deluge-web.service)
deluge/repos/extra-any/deluge.install
(from rev 152857, deluge/trunk/deluge.install)
deluge/repos/extra-any/deluge.tmpfiles.conf
(from rev 152857, deluge/trunk/deluge.tmpfiles.conf)
deluge/repos/extra-any/deluged
(from rev 152857, deluge/trunk/deluged)
deluge/repos/extra-any/deluged.conf
(from rev 152857, deluge/trunk/deluged.conf)
deluge/repos/extra-any/deluged.service
(from rev 152857, deluge/trunk/deluged.service)
Deleted:
deluge/repos/extra-any/PKGBUILD
deluge/repos/extra-any/deluge-web
deluge/repos/extra-any/deluge-web.service
deluge/repos/extra-any/deluge.install
deluge/repos/extra-any/deluge.tmpfiles.conf
deluge/repos/extra-any/deluged
deluge/repos/extra-any/deluged.conf
deluge/repos/extra-any/deluged.service
----------------------+
PKGBUILD | 114 ++++++++++++++++++++++++-------------------------
deluge-web | 90 +++++++++++++++++++-------------------
deluge-web.service | 16 +++---
deluge.install | 59 ++++++++++++-------------
deluge.tmpfiles.conf | 2
deluged | 84 ++++++++++++++++++------------------
deluged.conf | 4 -
deluged.service | 18 +++----
8 files changed, 195 insertions(+), 192 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2012-03-10 10:43:17 UTC (rev 152857)
+++ PKGBUILD 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-# Contributor: Hugo Doria <hugo at archlinux.org>
-
-pkgname=deluge
-pkgver=1.3.4
-pkgrel=1
-pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
-arch=('any')
-url="http://deluge-torrent.org/"
-license=('GPL3')
-depends=('pyxdg' 'libtorrent-rasterbar>=0.15.0' 'twisted' 'python2-pyopenssl'
- 'xdg-utils' 'python2-chardet' 'desktop-file-utils' 'hicolor-icon-theme'
- 'python2-distribute')
-makedepends=('intltool' 'pygtk' 'librsvg' 'python2-mako')
-optdepends=('python-notify: libnotify notifications'
- 'pygtk: needed for gtk ui'
- 'librsvg: needed for gtk ui'
- 'python2-mako: needed for web ui')
-backup=(etc/conf.d/deluged)
-install=deluge.install
-source=(http://download.deluge-torrent.org/source/$pkgname-$pkgver.tar.bz2
- deluge.tmpfiles.conf deluged deluge-web deluged.service deluge-web.service deluged.conf)
-md5sums=('44166604853180bb44de2d86b3705bf7'
- 'c50385d32a2db0ef3f46b8caadb0e988'
- 'd58897b9deab9c46c1cff24c30e0f92a'
- '358dcf943f2251abee6caac62cb10f40'
- '496f1709ca609e65b8bd592c3705f596'
- '6a30f7a98ee234b08e255e81f08a65d8'
- '71d556cf7ce3bb59391797827347e80c')
-
-build() {
- cd $pkgname-$pkgver
- python2 setup.py build
-}
-
-package() {
- cd $pkgname-$pkgver
- python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
- install -Dm644 deluge/data/pixmaps/deluge.svg "$pkgdir/usr/share/pixmaps/deluge.svg"
-
- _dir="$pkgdir/usr/lib/python2.7/site-packages/deluge/ui"
- sed -e '1s/python$/&2/' \
- -i "$_dir/Win32IconImagePlugin.py" \
- -i "$_dir/web/gen_gettext.py"
-
- cd ..
- install -d "$pkgdir/srv/deluge"
- install -Dm644 deluge.tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/deluge.conf"
- install -D deluged "$pkgdir/etc/rc.d/deluged"
- install -D deluge-web "$pkgdir/etc/rc.d/deluge-web"
- install -Dm644 deluged.service "$pkgdir/lib/systemd/system/deluged.service"
- install -Dm644 deluge-web.service "$pkgdir/lib/systemd/system/deluge-web.service"
- install -Dm644 deluged.conf "$pkgdir/etc/conf.d/deluged"
-}
Copied: deluge/repos/extra-any/PKGBUILD (from rev 152857, deluge/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=deluge
+pkgver=1.3.4
+pkgrel=2
+pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
+arch=('any')
+url="http://deluge-torrent.org/"
+license=('GPL3')
+depends=('pyxdg' 'libtorrent-rasterbar>=0.15.0' 'twisted' 'python2-pyopenssl'
+ 'xdg-utils' 'python2-chardet' 'desktop-file-utils' 'hicolor-icon-theme'
+ 'python2-distribute')
+makedepends=('intltool' 'pygtk' 'librsvg' 'python2-mako')
+optdepends=('python-notify: libnotify notifications'
+ 'pygtk: needed for gtk ui'
+ 'librsvg: needed for gtk ui'
+ 'python2-mako: needed for web ui')
+backup=(etc/conf.d/deluged)
+install=deluge.install
+source=(http://download.deluge-torrent.org/source/$pkgname-$pkgver.tar.bz2
+ deluge.tmpfiles.conf deluged deluge-web deluged.service deluge-web.service deluged.conf)
+md5sums=('44166604853180bb44de2d86b3705bf7'
+ 'c50385d32a2db0ef3f46b8caadb0e988'
+ 'd58897b9deab9c46c1cff24c30e0f92a'
+ '358dcf943f2251abee6caac62cb10f40'
+ '496f1709ca609e65b8bd592c3705f596'
+ '6a30f7a98ee234b08e255e81f08a65d8'
+ '71d556cf7ce3bb59391797827347e80c')
+
+build() {
+ cd $pkgname-$pkgver
+ python2 setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 deluge/data/pixmaps/deluge.svg "$pkgdir/usr/share/pixmaps/deluge.svg"
+
+ _dir="$pkgdir/usr/lib/python2.7/site-packages/deluge/ui"
+ sed -e '1s/python$/&2/' \
+ -i "$_dir/Win32IconImagePlugin.py" \
+ -i "$_dir/web/gen_gettext.py"
+
+ cd ..
+ install -Dm644 deluge.tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/deluge.conf"
+ install -D deluged "$pkgdir/etc/rc.d/deluged"
+ install -D deluge-web "$pkgdir/etc/rc.d/deluge-web"
+ install -Dm644 deluged.service "$pkgdir/lib/systemd/system/deluged.service"
+ install -Dm644 deluge-web.service "$pkgdir/lib/systemd/system/deluge-web.service"
+ install -Dm644 deluged.conf "$pkgdir/etc/conf.d/deluged"
+
+ install -d "$pkgdir/srv"
+ install -d -o 125 -g 125 "$pkgdir/srv/deluge"
+}
Deleted: deluge-web
===================================================================
--- deluge-web 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluge-web 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/deluged
-
-PIDFILE=/run/deluge/deluge-web.pid
-WEB_OPTIONS="-f $WEB_OPTIONS"
-
-[[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
-kill -0 $PID || PID=
-
-case "$1" in
- start)
- stat_busy "Starting Deluge WebUI"
- [[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluge-web $WEB_OPTIONS >/dev/null" deluge
- if [ $? -gt 0 ]; then
- stat_fail
- else
- sleep 1
- echo $(pgrep -u deluge deluge-web) > $PIDFILE
- add_daemon deluge-web
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Deluge WebUI"
- [[ ! -z $PID ]] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm $PIDFILE
- rm_daemon deluge-web
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
Copied: deluge/repos/extra-any/deluge-web (from rev 152857, deluge/trunk/deluge-web)
===================================================================
--- deluge-web (rev 0)
+++ deluge-web 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/deluged
+
+PIDFILE=/run/deluge/deluge-web.pid
+WEB_OPTIONS="-f $WEB_OPTIONS"
+
+[[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
+kill -0 $PID || PID=
+
+case "$1" in
+ start)
+ stat_busy "Starting Deluge WebUI"
+ [[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluge-web $WEB_OPTIONS >/dev/null" deluge
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ sleep 1
+ echo $(pgrep -u deluge deluge-web) > $PIDFILE
+ add_daemon deluge-web
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Deluge WebUI"
+ [[ ! -z $PID ]] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm $PIDFILE
+ rm_daemon deluge-web
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
Deleted: deluge-web.service
===================================================================
--- deluge-web.service 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluge-web.service 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,8 +0,0 @@
-[Unit]
-Description=Deluge WebUI
-After=deluged.service
-
-[Service]
-User=deluge
-EnvironmentFile=/etc/conf.d/deluged
-ExecStart=/usr/bin/deluge-web $WEB_OPTIONS
Copied: deluge/repos/extra-any/deluge-web.service (from rev 152857, deluge/trunk/deluge-web.service)
===================================================================
--- deluge-web.service (rev 0)
+++ deluge-web.service 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Deluge WebUI
+After=deluged.service
+
+[Service]
+User=deluge
+EnvironmentFile=/etc/conf.d/deluged
+ExecStart=/usr/bin/deluge-web $WEB_OPTIONS
Deleted: deluge.install
===================================================================
--- deluge.install 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluge.install 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,29 +0,0 @@
-post_install() {
- getent group deluge &>/dev/null || groupadd -g 125 deluge
- if ! getent passwd deluge &>/dev/null; then
- useradd -c 'Deluge user' -u 125 -g deluge -d /srv/deluge -s /bin/false deluge
- passwd -l deluge &>/dev/null
- fi
-
- mkdir -p run/deluge
- chown deluge:deluge srv/deluge run/deluge
-
- post_upgrade
-
-cat <<EOF
->>> The optional headless daemon started using /etc/rc.d/deluged uses the "deluge" user.
- Its default download directory is /srv/deluge.
-EOF
-}
-
-post_upgrade() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
- update-desktop-database -q
-}
-
-post_remove() {
- getent passwd deluge &>/dev/null && userdel deluge
- getent group deluge &>/dev/null && groupdel deluge
-
- post_upgrade
-}
Copied: deluge/repos/extra-any/deluge.install (from rev 152857, deluge/trunk/deluge.install)
===================================================================
--- deluge.install (rev 0)
+++ deluge.install 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,30 @@
+post_install() {
+ getent group deluge &>/dev/null || groupadd -g 125 deluge
+ if ! getent passwd deluge &>/dev/null; then
+ useradd -c 'Deluge user' -u 125 -g deluge -d /srv/deluge -s /bin/false deluge
+ passwd -l deluge &>/dev/null
+ fi
+
+ post_upgrade
+
+cat <<EOF
+>>> The optional headless daemon started using /etc/rc.d/deluged uses the "deluge" user.
+ Its default download directory is /srv/deluge.
+EOF
+}
+
+post_upgrade() {
+ mkdir -p run/deluge
+ chown deluge:deluge run/deluge
+
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_remove() {
+ getent passwd deluge &>/dev/null && userdel deluge
+ getent group deluge &>/dev/null && groupdel deluge
+
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
Deleted: deluge.tmpfiles.conf
===================================================================
--- deluge.tmpfiles.conf 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluge.tmpfiles.conf 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1 +0,0 @@
-d /run/deluge 0755 deluge deluge -
Copied: deluge/repos/extra-any/deluge.tmpfiles.conf (from rev 152857, deluge/trunk/deluge.tmpfiles.conf)
===================================================================
--- deluge.tmpfiles.conf (rev 0)
+++ deluge.tmpfiles.conf 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1 @@
+d /run/deluge 0755 deluge deluge -
Deleted: deluged
===================================================================
--- deluged 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluged 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/deluged
-
-PIDFILE=/run/deluge/deluged.pid
-OPTIONS="-P $PIDFILE $OPTIONS"
-
-[[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
-kill -0 $PID || PID=
-
-case "$1" in
- start)
- stat_busy "Starting Deluge Daemon"
- [[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluged $OPTIONS >/dev/null" deluge
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon deluged
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Deluge Daemon"
- [[ ! -z $PID ]] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon deluged
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
Copied: deluge/repos/extra-any/deluged (from rev 152857, deluge/trunk/deluged)
===================================================================
--- deluged (rev 0)
+++ deluged 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/deluged
+
+PIDFILE=/run/deluge/deluged.pid
+OPTIONS="-P $PIDFILE $OPTIONS"
+
+[[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
+kill -0 $PID || PID=
+
+case "$1" in
+ start)
+ stat_busy "Starting Deluge Daemon"
+ [[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluged $OPTIONS >/dev/null" deluge
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon deluged
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Deluge Daemon"
+ [[ ! -z $PID ]] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon deluged
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
Deleted: deluged.conf
===================================================================
--- deluged.conf 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluged.conf 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,2 +0,0 @@
-OPTIONS=""
-WEB_OPTIONS=""
Copied: deluge/repos/extra-any/deluged.conf (from rev 152857, deluge/trunk/deluged.conf)
===================================================================
--- deluged.conf (rev 0)
+++ deluged.conf 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,2 @@
+OPTIONS=""
+WEB_OPTIONS=""
Deleted: deluged.service
===================================================================
--- deluged.service 2012-03-10 10:43:17 UTC (rev 152857)
+++ deluged.service 2012-03-10 10:45:36 UTC (rev 152858)
@@ -1,9 +0,0 @@
-[Unit]
-Description=Deluge Daemon
-
-[Service]
-User=deluge
-EnvironmentFile=/etc/conf.d/deluged
-ExecStart=/usr/bin/deluged -P /run/deluge/deluged.pid $OPTIONS
-Type=forking
-PIDFile=/run/deluge/deluged.pid
Copied: deluge/repos/extra-any/deluged.service (from rev 152857, deluge/trunk/deluged.service)
===================================================================
--- deluged.service (rev 0)
+++ deluged.service 2012-03-10 10:45:36 UTC (rev 152858)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Deluge Daemon
+
+[Service]
+User=deluge
+EnvironmentFile=/etc/conf.d/deluged
+ExecStart=/usr/bin/deluged -P /run/deluge/deluged.pid $OPTIONS
+Type=forking
+PIDFile=/run/deluge/deluged.pid
More information about the arch-commits
mailing list