summaryrefslogtreecommitdiff
path: root/community/minidlna
diff options
context:
space:
mode:
Diffstat (limited to 'community/minidlna')
-rw-r--r--community/minidlna/PKGBUILD12
-rwxr-xr-xcommunity/minidlna/minidlna.rc8
2 files changed, 14 insertions, 6 deletions
diff --git a/community/minidlna/PKGBUILD b/community/minidlna/PKGBUILD
index 77d8b7f48..c78a820a1 100644
--- a/community/minidlna/PKGBUILD
+++ b/community/minidlna/PKGBUILD
@@ -1,12 +1,13 @@
-# $Id: PKGBUILD 62999 2012-01-30 10:47:05Z spupykin $
+# $Id: PKGBUILD 65325 2012-02-21 01:35:56Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer:Biginoz < biginoz AT free point fr>
# Contributor: Ignacio Galmarino <igalmarino@gmail.com>
# Contributor: Matthias Sobczyk <matthias.sobczyk@googlemail.com>
+# Contributor: Kamil Kaminski <kyle@kkaminsk.com>
pkgname=minidlna
-pkgver=1.0.23
-pkgrel=2
+pkgver=1.0.24
+pkgrel=1
pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/minidlna/"
@@ -18,8 +19,8 @@ backup=('etc/minidlna.conf'
changelog=changelog
source=(http://downloads.sourceforge.net/minidlna/minidlna_${pkgver}_src.tar.gz
minidlna.rc)
-md5sums=('409a36830a9ac2aaddfaff4c8b90a40f'
- 'b64b8b749f1c23b3f1a2ee6d6ded07fd')
+md5sums=('be9b4c91e3fcde592dc3f9828098ca0f'
+ '246bdfb401f26d2374ba64034adb1091')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -34,4 +35,5 @@ package() {
install -Dm755 ${srcdir}/minidlna.rc ${pkgdir}/etc/rc.d/minidlna
mkdir -p $pkgdir/etc/conf.d
echo 'MINIDLNA_USER=nobody' >$pkgdir/etc/conf.d/minidlna
+ echo 'MINIDLNA_OPTS=""' >>$pkgdir/etc/conf.d/minidlna
}
diff --git a/community/minidlna/minidlna.rc b/community/minidlna/minidlna.rc
index 6e6f88f35..5a9d7b51c 100755
--- a/community/minidlna/minidlna.rc
+++ b/community/minidlna/minidlna.rc
@@ -17,7 +17,7 @@ case "$1" in
if [[ -z "$PID" ]]; then
rm -f /var/run/$daemon_name.pid
touch /var/run/$daemon_name.pid && chown $MINIDLNA_USER:$MINIDLNA_USER /var/run/$daemon_name.pid
- su -s /bin/sh -l -c /usr/sbin/minidlna - $MINIDLNA_USER
+ su -s /bin/sh -l -c "/usr/sbin/minidlna ${MINIDLNA_OPTS} $2" - $MINIDLNA_USER
if [[ $? -gt 0 ]]; then
stat_fail
exit 1
@@ -61,6 +61,12 @@ case "$1" in
$0 start
;;
+ rescan)
+ $0 stop
+ sleep 1
+ $0 start -R
+ ;;
+
*)
echo "usage: $0 {start|stop|restart|clean}"
esac