[arch-commits] Commit in ushare/trunk (PKGBUILD ushare)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon May 13 14:40:30 UTC 2013
Date: Monday, May 13, 2013 @ 16:40:30
Author: spupykin
Revision: 90734
upgpkg: ushare 1.1a-19
upd
Modified:
ushare/trunk/PKGBUILD
Deleted:
ushare/trunk/ushare
----------+
PKGBUILD | 5 +----
ushare | 56 --------------------------------------------------------
2 files changed, 1 insertion(+), 60 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-13 14:40:26 UTC (rev 90733)
+++ PKGBUILD 2013-05-13 14:40:30 UTC (rev 90734)
@@ -5,7 +5,7 @@
pkgname=ushare
pkgver=1.1a
-pkgrel=18
+pkgrel=19
pkgdesc="A free UPnP A/V Media Server for Linux"
url="http://ushare.geexbox.org"
license=('GPL2')
@@ -15,13 +15,11 @@
'etc/conf.d/ushare')
install=ushare.install
source=("http://ushare.geexbox.org/releases/${pkgname}-${pkgver}.tar.bz2"
- "ushare"
"upnp-build-fix.patch"
"ushare-config.patch"
"segfault.patch"
"ushare.service")
md5sums=('5bbcdbf1ff85a9710fa3d4e82ccaa251'
- 'e3cf0a44b0280da4966177c21e49361c'
'32c29f9f673e8b3a3d9e7bf5e60febbc'
'5243475c0cebc5db49296b2f3691085b'
'0b0fbf5d103f0ebb72716cbad0b28ffa'
@@ -44,7 +42,6 @@
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
rm -rf ${pkgdir}/etc/${pkgname}/init.d
- install -Dm0755 ${srcdir}/ushare ${pkgdir}/etc/rc.d/ushare
install -dm0755 ${pkgdir}/etc/conf.d/
cat >${pkgdir}/etc/conf.d/ushare <<EOF
#PARAMS="-c /tmp -i eth0"
Deleted: ushare
===================================================================
--- ushare 2013-05-13 14:40:26 UTC (rev 90733)
+++ ushare 2013-05-13 14:40:30 UTC (rev 90734)
@@ -1,56 +0,0 @@
-#!/bin/bash
-
-DESC="uShare UPnP A/V Media Server"
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-[ -r "/etc/ushare/ushare.conf" ] && . /etc/ushare/ushare.conf
-[ -r "/etc/conf.d/ushare" ] && . /etc/conf.d/ushare
-
-[ -z $USHARE_USER ] && USHARE_USER=ushare
-
-# abort if no executable exists
-#[ -x $DAEMON ] || stat_fail
-
-# abort if no shared directory is defined
-#[ -z "$USHARE_DIR" ] && stat_fail
-
-#set -e
-
-#checkpid() {
-# [ -e $PIDFILE ] || touch $PIDFILE
-#}
-
-PID=`pidof -o %PPID /usr/bin/ushare`
-case "$1" in
- start)
- stat_busy "Starting $DESC"
- [ -z "$PID" ] && sudo -u $USHARE_USER /usr/bin/ushare -D -x $PARAMS
- if [ $? -gt 0 ]; then
- stat_fail
- else
- PID=`pidof -o %PPID /usr/bin/ushare`
- echo $PID > /var/run/ushare.pid
- add_daemon ushare
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping $DESC"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm /var/run/ushare.pid
- rm_daemon ushare
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
More information about the arch-commits
mailing list