summaryrefslogtreecommitdiff
path: root/community/minidlna
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/minidlna
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/minidlna')
-rw-r--r--community/minidlna/PKGBUILD39
-rw-r--r--community/minidlna/changelog4
-rw-r--r--community/minidlna/minidlna.install7
-rw-r--r--community/minidlna/minidlna.service12
-rw-r--r--community/minidlna/minidlna.tmpfiles5
5 files changed, 67 insertions, 0 deletions
diff --git a/community/minidlna/PKGBUILD b/community/minidlna/PKGBUILD
new file mode 100644
index 000000000..d06bc7cc6
--- /dev/null
+++ b/community/minidlna/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 94892 2013-08-01 06:55:08Z bpiotrowski $
+# 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.1.0
+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' 'sqlite')
+backup=('etc/minidlna.conf'
+ 'etc/conf.d/minidlna')
+install=minidlna.install
+changelog=changelog
+source=(http://downloads.sourceforge.net/project/minidlna/minidlna/$pkgver/minidlna-$pkgver.tar.gz
+ minidlna.service
+ minidlna.tmpfiles)
+md5sums=('26484a84af3fceafdee26595aae097f7'
+ '7e3890ee50aa4dfa4d1754261e6cc965'
+ '26de27b12d6a37c47d9714107d07aac9')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ 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.service $pkgdir/usr/lib/systemd/system/minidlna.service
+}
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.install b/community/minidlna/minidlna.install
new file mode 100644
index 000000000..c9cdc0f13
--- /dev/null
+++ b/community/minidlna/minidlna.install
@@ -0,0 +1,7 @@
+post_install() {
+ systemd-tmpfiles --create minidlna.conf
+}
+
+post_upgrade() {
+ systemd-tmpfiles --create minidlna.conf
+}
diff --git a/community/minidlna/minidlna.service b/community/minidlna/minidlna.service
new file mode 100644
index 000000000..bc79e96ef
--- /dev/null
+++ b/community/minidlna/minidlna.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=minidlna server
+After=network.target
+
+[Service]
+Type=forking
+User=nobody
+ExecStart=/usr/bin/minidlnad -P /run/minidlna/minidlna.pid
+PIDFile=/run/minidlna/minidlna.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/minidlna/minidlna.tmpfiles b/community/minidlna/minidlna.tmpfiles
new file mode 100644
index 000000000..56e057f62
--- /dev/null
+++ b/community/minidlna/minidlna.tmpfiles
@@ -0,0 +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 -