summaryrefslogtreecommitdiff
path: root/community/ushare
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-24 10:38:51 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-24 10:38:51 -0500
commit525f7394f309fe74d74764b604fa886e88d3c102 (patch)
tree146ee8a84acbe0011c247b0278bf286af37d61b9 /community/ushare
parent89a9382e3851a12a973da2d255ebfbf654b6125e (diff)
parent7347bb994a41d021c83e97b503f577f2399302e7 (diff)
Merge branch 'master' of vparabola:~/abslibre-pre-mips64el
Conflicts: community-testing/collectd/PKGBUILD community/ascii/PKGBUILD extra/gnome-utils/PKGBUILD extra/gtk2/PKGBUILD extra/libmodplug/PKGBUILD extra/mkvtoolnix/PKGBUILD extra/rox/PKGBUILD extra/totem/PKGBUILD extra/xulrunner/PKGBUILD kde-unstable/calligra/PKGBUILD kde-unstable/soprano/PKGBUILD multilib/lib32-gtk2/PKGBUILD multilib/lib32-libcups/PKGBUILD multilib/zsnes/PKGBUILD testing/imagemagick/PKGBUILD testing/perl-compress-bzip2/PKGBUILD
Diffstat (limited to 'community/ushare')
-rw-r--r--community/ushare/PKGBUILD23
-rwxr-xr-xcommunity/ushare/ushare2
-rw-r--r--community/ushare/ushare.install16
3 files changed, 31 insertions, 10 deletions
diff --git a/community/ushare/PKGBUILD b/community/ushare/PKGBUILD
index f790de240..c8df085e1 100644
--- a/community/ushare/PKGBUILD
+++ b/community/ushare/PKGBUILD
@@ -1,27 +1,25 @@
-# $Id: PKGBUILD 41581 2011-03-08 01:32:14Z giovanni $
+# $Id: PKGBUILD 49823 2011-06-21 09:38:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
# Contributor: kastor <kastor@fobos.org.ar>
pkgname=ushare
pkgver=1.1a
-pkgrel=10
+pkgrel=12
pkgdesc="A free UPnP A/V Media Server for Linux"
url="http://ushare.geexbox.org"
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
depends=('libupnp' 'libdlna')
-backup=(etc/ushare/ushare.conf)
+backup=('etc/ushare/ushare.conf'
+ '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")
md5sums=('5bbcdbf1ff85a9710fa3d4e82ccaa251'
- 'f252120bcd4362ed64111239d358851c'
- '32c29f9f673e8b3a3d9e7bf5e60febbc'
- '5243475c0cebc5db49296b2f3691085b')
-md5sums=('5bbcdbf1ff85a9710fa3d4e82ccaa251'
- 'f252120bcd4362ed64111239d358851c'
+ '5b8d5ab953dba09f05abd38abef063de'
'32c29f9f673e8b3a3d9e7bf5e60febbc'
'5243475c0cebc5db49296b2f3691085b')
@@ -38,11 +36,18 @@ build() {
--enable-dlna --with-libdlna-dir=/usr/include/libavformat
make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
rm -rf ${pkgdir}/etc/${pkgname}/init.d
install -m 0755 -D ${srcdir}/ushare ${pkgdir}/etc/rc.d/ushare
install -d -m 0755 ${pkgdir}/etc/conf.d/
- echo "PARAMS=" > ${pkgdir}/etc/conf.d/ushare
+ cat >${pkgdir}/etc/conf.d/ushare <<EOF
+#PARAMS="-c /tmp -i eth0"
+PARAMS=
+EOF
install -D -m0644 src/ushare.1 $pkgdir/usr/share/man/man1/ushare.1
}
diff --git a/community/ushare/ushare b/community/ushare/ushare
index 0e920ae0a..0770d16b9 100755
--- a/community/ushare/ushare
+++ b/community/ushare/ushare
@@ -23,7 +23,7 @@ PID=`pidof -o %PPID /usr/bin/ushare`
case "$1" in
start)
stat_busy "Starting $DESC"
- [ -z "$PID" ] && /usr/bin/ushare -D -x $PARAMS
+ [ -z "$PID" ] && sudo -u ushare /usr/bin/ushare -D -x $PARAMS
if [ $? -gt 0 ]; then
stat_fail
else
diff --git a/community/ushare/ushare.install b/community/ushare/ushare.install
new file mode 100644
index 000000000..c51ea621d
--- /dev/null
+++ b/community/ushare/ushare.install
@@ -0,0 +1,16 @@
+post_install() {
+ if [ -z "`grep '^ushare:' /etc/group`" ]; then
+ groupadd ushare
+ fi
+ if [ -z "`grep '^ushare:' /etc/passwd`" ]; then
+ useradd -d /var/empty -g ushare -s /bin/false ushare
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ userdel ushare
+}