[arch-commits] Commit in minidlna/trunk (5 files)
Sergej Pupykin
spupykin at archlinux.org
Thu Feb 26 17:06:35 UTC 2015
Date: Thursday, February 26, 2015 @ 18:06:35
Author: spupykin
Revision: 128296
upgpkg: minidlna 1.1.4-5
upd
Added:
minidlna/trunk/minidlna.sysusers
Modified:
minidlna/trunk/PKGBUILD
minidlna/trunk/minidlna.install
minidlna/trunk/minidlna.service
minidlna/trunk/minidlna.tmpfiles
-------------------+
PKGBUILD | 13 ++++++++-----
minidlna.install | 6 +++++-
minidlna.service | 4 ++--
minidlna.sysusers | 1 +
minidlna.tmpfiles | 4 ++--
5 files changed, 18 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-26 17:06:32 UTC (rev 128295)
+++ PKGBUILD 2015-02-26 17:06:35 UTC (rev 128296)
@@ -7,7 +7,7 @@
pkgname=minidlna
pkgver=1.1.4
-pkgrel=4
+pkgrel=5
pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/minidlna/"
@@ -18,14 +18,16 @@
changelog=changelog
source=(http://downloads.sourceforge.net/project/minidlna/minidlna/$pkgver/minidlna-$pkgver.tar.gz
minidlna.service
- minidlna.tmpfiles)
+ minidlna.tmpfiles
+ minidlna.sysusers)
md5sums=('67c9e91285bc3801fd91a5d26ea775d7'
- 'b701740032ba0c658e4c6fe1adceb998'
- '26de27b12d6a37c47d9714107d07aac9')
+ '1f53adef7dfa12c1d4636737366b1d39'
+ 'a61f97b037ea17555f6632b3ffd761ef'
+ '5b2a57160589dfd559a23b1a7f365a23')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
- sed -i 's|#user=.*|user=nobody|g' minidlna.conf
+ sed -i 's|#user=.*|user=minidlna|g' minidlna.conf
}
build() {
@@ -39,6 +41,7 @@
DESTDIR=$pkgdir make install
install -Dm644 minidlna.conf ${pkgdir}/etc/minidlna.conf
install -Dm0644 $srcdir/minidlna.tmpfiles $pkgdir/usr/lib/tmpfiles.d/minidlna.conf
+ install -Dm0644 $srcdir/minidlna.sysusers $pkgdir/usr/lib/sysusers.d/minidlna.conf
install -Dm0644 $srcdir/minidlna.service $pkgdir/usr/lib/systemd/system/minidlna.service
install -Dm644 $srcdir/$pkgname-$pkgver/minidlna.conf.5 $pkgdir/usr/share/man/man5/minidlna.conf.5
install -Dm644 $srcdir/$pkgname-$pkgver/minidlnad.8 $pkgdir/usr/share/man/man8/minidlnad.8
Modified: minidlna.install
===================================================================
--- minidlna.install 2015-02-26 17:06:32 UTC (rev 128295)
+++ minidlna.install 2015-02-26 17:06:35 UTC (rev 128296)
@@ -1,9 +1,13 @@
post_install() {
+ systemd-sysusers minidlna.conf
systemd-tmpfiles --create minidlna.conf
touch var/log/minidlna.log
- chown nobody:nobody var/log/minidlna.log
+ chown minidlna:minidlna var/log/minidlna.log
}
post_upgrade() {
+ systemd-sysusers minidlna.conf
systemd-tmpfiles --create minidlna.conf
+ echo "-- minidlna uses minidlna/minidlna user/group now,"
+ echo "-- needs manual intervention in /var/cache/minidlna and /run/minidlna!"
}
Modified: minidlna.service
===================================================================
--- minidlna.service 2015-02-26 17:06:32 UTC (rev 128295)
+++ minidlna.service 2015-02-26 17:06:35 UTC (rev 128296)
@@ -4,8 +4,8 @@
[Service]
Type=simple
-User=nobody
-Group=nobody
+User=minidlna
+Group=minidlna
ExecStart=/usr/bin/minidlnad -S
ProtectSystem=full
ProtectHome=on
Added: minidlna.sysusers
===================================================================
--- minidlna.sysusers (rev 0)
+++ minidlna.sysusers 2015-02-26 17:06:35 UTC (rev 128296)
@@ -0,0 +1 @@
+u minidlna - "minidlna server" /var/cache/minidlna
Modified: minidlna.tmpfiles
===================================================================
--- minidlna.tmpfiles 2015-02-26 17:06:32 UTC (rev 128295)
+++ minidlna.tmpfiles 2015-02-26 17:06:35 UTC (rev 128296)
@@ -1,5 +1,5 @@
# systemd tmpfile settings for minidlna
# See tmpfiles.d(5) for details
-d /var/run/minidlna 0755 nobody nobody -
-d /var/cache/minidlna 0755 nobody nobody -
+d /var/run/minidlna 0755 minidlna minidlna -
+d /var/cache/minidlna 0755 minidlna minidlna -
More information about the arch-commits
mailing list