summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn-Michael Mulesa2016-06-05 17:57:52 -0700
committerJohn-Michael Mulesa2016-06-05 17:57:52 -0700
commitf814e46454aaed3fbf02b40c662a3b5d65b87ed2 (patch)
tree332cf0596236639f20c7f943a83641dadfb375f6
downloadaur-f814e46454aaed3fbf02b40c662a3b5d65b87ed2.tar.gz
Initial import of updated forked-daapd package into the new AUR.
-rw-r--r--.SRCINFO56
-rw-r--r--PKGBUILD68
-rw-r--r--forked-daapd.avahi36
-rw-r--r--forked-daapd.install30
-rw-r--r--forked-daapd.service14
5 files changed, 204 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..084e5f6c69d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,56 @@
+pkgbase = forked-daapd
+ pkgdesc = iTunes-compatible media server, originally intended as a rewrite of Firefly Media Server (mt-daapd).
+ pkgver = 24.1
+ pkgrel = 1
+ url = https://github.com/ejurgensen/forked-daapd
+ install = forked-daapd.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = gperf
+ makedepends = java-runtime
+ depends = avahi
+ depends = sqlite3
+ depends = ffmpeg
+ depends = confuse
+ depends = libevent
+ depends = mxml
+ depends = libunistring
+ depends = libplist
+ depends = libantlr3c
+ depends = protobuf-c
+ backup = etc/forked-daapd.conf
+ backup = etc/avahi/services/forked-daapd.service
+ source = https://github.com/ejurgensen/forked-daapd/archive/24.1.tar.gz
+ source = forked-daapd.install
+ source = forked-daapd.avahi
+ source = forked-daapd.service
+ source = http://www.antlr3.org/download/antlr-3.4-complete.jar
+ md5sums = d825719acc6b5d0eb5e910e2ac6d985d
+ md5sums = bad1372140c914d1c312a186087fe375
+ md5sums = c01fde6f40880fed6092c0830a5f232e
+ md5sums = 5047515b396f37a9030a003f12eaaafa
+ md5sums = 1b91dea1c7d480b3223f7c8a9aa0e172
+ sha1sums = 262080a72a437546a3e24763f6a0057eb3a2861b
+ sha1sums = 90a796470231ae7c22635c3fbbb47f9d8a61ebd6
+ sha1sums = a6f3c5ee05365481caaa569fe15ca34ffe4dc847
+ sha1sums = 76623036d11d411cb438f9ac8f9cdf21f12b305f
+ sha1sums = 5cab59d859caa6598e28131d30dd2e89806db57f
+ sha256sums = 2d0353b318c10dc53928b40010ffeaca1264c8219dff15d715953ded2c3ba73d
+ sha256sums = 19b394a38ac88247d6b7d939e648ac53e8f08bef852e76c79355d1231bffad3d
+ sha256sums = 0efc8aac56d2b3a70d74c90a72595f3b685a30ee94a278880cd0cc4db35fa113
+ sha256sums = f623bfe983e65bd5c658bb456b775c62812e3daf8a5f27d154cf70c48c1e51bf
+ sha256sums = 9d3e866b610460664522520f73b81777b5626fb0a282a5952b9800b751550bf7
+ sha384sums = f7c5ffd18e0a657425cd915d968819575aa0e3fd5602088cc007f7a5c0e7346f02527dcc346c7958bd4b22a81fe134f9
+ sha384sums = b536551061e8404f0128e9313411c9f2419d7bf4c982c8d9f32300727c873219d90c90bda32256fb9d3bd560c0be2704
+ sha384sums = 36bdb6cfc389572f7f34658307b68f31d79ba9a5827eeee60c43f042f3d75d90c9d76e90840258e57e59c5c4d8d47d52
+ sha384sums = a4dc8c4a504496a624e210ac668e5190eb6756a4f7f2825c42624f424723ddfd0c0338fa753ad1d61944d3bdf08451a7
+ sha384sums = a2fbecb5fae6af12adcfb3801624d4941e25e4b526794f7b9a713ae8b6873962ca36a74f9220d7e0057aaa89d5ca6d68
+ sha512sums = d8c72b5b37cfb14276530428048362be577d940ab511f46a8727e2b4afb5179a8dc5b0b0ca8cfc33fbd2809fc8563d21dccbfe833d85428f5f1c01a7bb9af49f
+ sha512sums = f82c8b73b39e6b8e83b09953d187b98b9fb856914a0a231b6758701f4f383b5dd5368ec468011b78402fd9850662b61b48e6198336ed4049cfd1ed7cb8659e9b
+ sha512sums = 70da9a199ac821736ea6cd33455c14cf32ab5bc4b401dc31179dc6029c36fcb543810d0041f309fdcfd7be84d7d1f921b63a70993ad89b6f0c1ea06e51859dfb
+ sha512sums = bc32f4cb705bf3890e85a51530818a1d86b260c1f6c1203b0f07757a8ab23b7654a357bc9c7ab10b370f4714f26b60368c1910c7efe9197041015183518a40d6
+ sha512sums = 04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2
+
+pkgname = forked-daapd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c09834c8fe7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: John-Michael Mulesa <jmulesa@gmail.com>
+pkgname=forked-daapd
+pkgver=24.1
+pkgrel=1
+pkgdesc="iTunes-compatible media server, originally intended as a rewrite of Firefly Media Server (mt-daapd)."
+arch=('i686' 'x86_64')
+url="https://github.com/ejurgensen/forked-daapd"
+license=('GPL')
+groups=()
+depends=(avahi sqlite3 ffmpeg confuse libevent mxml libunistring libplist libantlr3c protobuf-c)
+makedepends=(gperf java-runtime)
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=(etc/forked-daapd.conf etc/avahi/services/forked-daapd.service)
+options=()
+install=forked-daapd.install
+changelog=
+source=(https://github.com/ejurgensen/forked-daapd/archive/$pkgver.tar.gz forked-daapd.install forked-daapd.avahi forked-daapd.service http://www.antlr3.org/download/antlr-3.4-complete.jar)
+noextract=()
+md5sums=('d825719acc6b5d0eb5e910e2ac6d985d'
+ 'bad1372140c914d1c312a186087fe375'
+ 'c01fde6f40880fed6092c0830a5f232e'
+ '5047515b396f37a9030a003f12eaaafa'
+ '1b91dea1c7d480b3223f7c8a9aa0e172')
+sha1sums=('262080a72a437546a3e24763f6a0057eb3a2861b'
+ '90a796470231ae7c22635c3fbbb47f9d8a61ebd6'
+ 'a6f3c5ee05365481caaa569fe15ca34ffe4dc847'
+ '76623036d11d411cb438f9ac8f9cdf21f12b305f'
+ '5cab59d859caa6598e28131d30dd2e89806db57f')
+sha256sums=('2d0353b318c10dc53928b40010ffeaca1264c8219dff15d715953ded2c3ba73d'
+ '19b394a38ac88247d6b7d939e648ac53e8f08bef852e76c79355d1231bffad3d'
+ '0efc8aac56d2b3a70d74c90a72595f3b685a30ee94a278880cd0cc4db35fa113'
+ 'f623bfe983e65bd5c658bb456b775c62812e3daf8a5f27d154cf70c48c1e51bf'
+ '9d3e866b610460664522520f73b81777b5626fb0a282a5952b9800b751550bf7')
+sha384sums=('f7c5ffd18e0a657425cd915d968819575aa0e3fd5602088cc007f7a5c0e7346f02527dcc346c7958bd4b22a81fe134f9'
+ 'b536551061e8404f0128e9313411c9f2419d7bf4c982c8d9f32300727c873219d90c90bda32256fb9d3bd560c0be2704'
+ '36bdb6cfc389572f7f34658307b68f31d79ba9a5827eeee60c43f042f3d75d90c9d76e90840258e57e59c5c4d8d47d52'
+ 'a4dc8c4a504496a624e210ac668e5190eb6756a4f7f2825c42624f424723ddfd0c0338fa753ad1d61944d3bdf08451a7'
+ 'a2fbecb5fae6af12adcfb3801624d4941e25e4b526794f7b9a713ae8b6873962ca36a74f9220d7e0057aaa89d5ca6d68')
+sha512sums=('d8c72b5b37cfb14276530428048362be577d940ab511f46a8727e2b4afb5179a8dc5b0b0ca8cfc33fbd2809fc8563d21dccbfe833d85428f5f1c01a7bb9af49f'
+ 'f82c8b73b39e6b8e83b09953d187b98b9fb856914a0a231b6758701f4f383b5dd5368ec468011b78402fd9850662b61b48e6198336ed4049cfd1ed7cb8659e9b'
+ '70da9a199ac821736ea6cd33455c14cf32ab5bc4b401dc31179dc6029c36fcb543810d0041f309fdcfd7be84d7d1f921b63a70993ad89b6f0c1ea06e51859dfb'
+ 'bc32f4cb705bf3890e85a51530818a1d86b260c1f6c1203b0f07757a8ab23b7654a357bc9c7ab10b370f4714f26b60368c1910c7efe9197041015183518a40d6'
+ '04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2')
+
+build() {
+ OLD_PATH=$PATH
+ export PATH="$srcdir:$PATH"
+ echo "#!/bin/bash" > antlr3
+ echo "exec java -cp $srcdir/antlr-3.4-complete.jar org.antlr.Tool \"\$@\"" >> antlr3
+ chmod a+x ./antlr3
+ cd "$srcdir/$pkgname-$pkgver"
+ echo $PATH
+ autoreconf -i
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-itunes --enable-chromecast --enable-lastfm --sbindir=/usr/bin
+ make
+ export PATH=$OLD_PATH
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ install -D -m644 $srcdir/forked-daapd.service $pkgdir/usr/lib/systemd/system/forked-daapd.service
+ install -D -m644 $srcdir/forked-daapd.avahi $pkgdir/etc/avahi/services/forked-daapd.service
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/forked-daapd.avahi b/forked-daapd.avahi
new file mode 100644
index 00000000000..479e54f0217
--- /dev/null
+++ b/forked-daapd.avahi
@@ -0,0 +1,36 @@
+<!--
+ This file is part of avahi.
+
+ avahi is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ avahi is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with avahi; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA.
+-->
+
+<!-- See avahi.service(5) for more information about this configuration file -->
+
+<service-group>
+
+ <name replace-wildcards="yes">%h</name>
+
+ <service>
+ <type>_daap._tcp</type>
+ <port>3689</port>
+ </service>
+
+ <service>
+ <type>_rsp._tcp</type>
+ <port>3689</port>
+ </service>
+
+</service-group>
diff --git a/forked-daapd.install b/forked-daapd.install
new file mode 100644
index 00000000000..6d8e8045183
--- /dev/null
+++ b/forked-daapd.install
@@ -0,0 +1,30 @@
+post_install() {
+ mkdir -p /var/lib/forked-daapd
+ getent group daapd &>/dev/null || groupadd -r daapd >/dev/null
+ getent passwd daapd &>/dev/null || useradd -r -g daapd -d /var/lib/forked-daapd -s /bin/false -c forked-daapd daapd >/dev/null
+ mkdir -p $pkgdir/var/cache/forked-daapd
+ chown daapd:daapd $pkgdir/var/cache/forked-daapd
+
+ cat <<EOF
+==> forked-daapd can be started via systemctl:
+==> systemctl start forked-daapd
+
+==> forked-daapd can be autostart via systemctl:
+==> systemctl enable forked-daapd
+
+==> forked-daapd.service has been added to your /etc/avahi/services
+
+==> Please edit /etc/forked-daapd.conf to suit your needs
+==> (point it to your music library)
+EOF
+}
+
+pre_remove() {
+ systemctl stop forked-daapd || true
+ systemctl disable forked-daapd || true
+}
+
+post_remove() {
+ getent passwd forked-daapd &>/dev/null && userdel forked-daapd >/dev/null
+ getent group forked-daapd &>/dev/null && groupdel forked-daapd >/dev/null
+}
diff --git a/forked-daapd.service b/forked-daapd.service
new file mode 100644
index 00000000000..1379328e7eb
--- /dev/null
+++ b/forked-daapd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=forked-daapd - multi-threaded DAAP server for iTunes
+ConditionPathExists=/etc/forked-daapd.conf
+Requires=network.target local-fs.target
+Wants=avahi-daemon.service
+After=avahi-daemon.service remote-fs.target zfs.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/forked-daapd
+Restart=always
+
+[Install]
+WantedBy=multi-user.target