diff options
author | root <root@rshg054.dnsready.net> | 2011-08-30 23:14:43 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-30 23:14:43 +0000 |
commit | b82f11fd76e83d60504649838e60a235b394160f (patch) | |
tree | 4914b89dc1dbc3ea44ae87c567ac7e9fc821c529 /community/minidlna | |
parent | e13fbaf2cbb72b7e8c8278ea94b70dd4a8ce48b2 (diff) |
Tue Aug 30 23:14:43 UTC 2011
Diffstat (limited to 'community/minidlna')
-rw-r--r-- | community/minidlna/PKGBUILD | 16 | ||||
-rw-r--r-- | community/minidlna/changelog | 4 | ||||
-rwxr-xr-x | community/minidlna/minidlna.rc | 3 |
3 files changed, 16 insertions, 7 deletions
diff --git a/community/minidlna/PKGBUILD b/community/minidlna/PKGBUILD index 3519f0e90..fb3f6e59e 100644 --- a/community/minidlna/PKGBUILD +++ b/community/minidlna/PKGBUILD @@ -1,23 +1,25 @@ -# $Id: PKGBUILD 52058 2011-07-19 20:43:20Z spupykin $ +# $Id: PKGBUILD 54993 2011-08-29 20:53:40Z 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> pkgname=minidlna -pkgver=1.0.21 -pkgrel=1 +pkgver=1.0.22 +pkgrel=3 pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)" arch=('i686' 'x86_64') url="http://sourceforge.net/projects/minidlna/" license=('GPL') depends=('libexif' 'libjpeg' 'libid3tag' 'flac' 'libvorbis' 'ffmpeg' 'sqlite3') conflicts=('minidlna-cvs') -backup=('etc/minidlna.conf') +backup=('etc/minidlna.conf' + 'etc/conf.d/minidlna') +changelog=changelog source=(http://downloads.sourceforge.net/minidlna/minidlna_${pkgver}_src.tar.gz minidlna.rc) -md5sums=('a53e0008ad225843a1782e4af6e5bf0b' - '80c423f003894ad15d7de41f3ed342c0') +md5sums=('3de2f6b54f43bb998dfad3c8fa75cef3' + '8b064a6c344a3ad8029e2619dfe07b77') build() { cd "$srcdir/$pkgname-$pkgver" @@ -28,4 +30,6 @@ package() { cd "$srcdir/$pkgname-$pkgver" DESTDIR=$pkgdir make install install -D -m755 ${srcdir}/minidlna.rc ${pkgdir}/etc/rc.d/minidlna + mkdir -p $pkgdir/etc/conf.d + echo 'MINIDLNA_USER=nobody' >$pkgdir/etc/conf.d/minidlna } diff --git a/community/minidlna/changelog b/community/minidlna/changelog new file mode 100644 index 000000000..35bf6239c --- /dev/null +++ b/community/minidlna/changelog @@ -0,0 +1,4 @@ +2011-08-29 Sergej Pupykin <sergej@p5n.pp.ru> + + * 1.0.22-3 : + add user configuration to /etc/conf.d/minidlna diff --git a/community/minidlna/minidlna.rc b/community/minidlna/minidlna.rc index e4ca0969f..df44a549f 100755 --- a/community/minidlna/minidlna.rc +++ b/community/minidlna/minidlna.rc @@ -3,13 +3,14 @@ . /etc/rc.conf . /etc/rc.d/functions . /etc/minidlna.conf +. /etc/conf.d/minidlna PID=`pidof -o %PPID /usr/sbin/minidlna` case "$1" in start) stat_busy "Starting minidlna" - [ -z "$PID" ] && /usr/sbin/minidlna + [ -z "$PID" ] && su -s /bin/sh -l -c /usr/sbin/minidlna - $MINIDLNA_USER if [ $? -gt 0 ]; then stat_fail else |