diff --git a/aur/mt-daapd/PKGBUILD b/aur/mt-daapd/PKGBUILD index 330ba4e26..71368e27a 100644 --- a/aur/mt-daapd/PKGBUILD +++ b/aur/mt-daapd/PKGBUILD @@ -2,20 +2,17 @@ # Contributor: Sergej Pupykin # Contributor: Jon Kristian Nilsen -plugrel=1 - pkgname=mt-daapd pkgver=0.2.4.2 -pkgrel=7 +pkgrel=8 pkgdesc="A multi-threaded DAAP server compatible with iTunes music sharing" url="http://www.mt-daapd.org/" license=("LGPL") arch=('i686' 'x86_64') backup=(etc/mt-daapd/mt-daapd.conf) -depends=('libid3tag' 'gdbm' 'avahi') -makedepends=('automake' 'autoconf' 'patch') +depends=('libid3tag' 'avahi') source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \ - mt-daapd fix-libs.patch) + mt-daapd fix-libs.patch mt-daapd.service) build() { cd "$srcdir/$pkgname-$pkgver" @@ -31,8 +28,10 @@ build() { install -D -m644 $srcdir/$pkgname-$pkgver/contrib/mt-daapd.playlist $pkgdir/etc/mt-daapd/sample.playlist && \ install -D -m644 $srcdir/$pkgname-$pkgver/contrib/mt-daapd.conf $pkgdir/etc/mt-daapd/mt-daapd.conf && \ - install -D -m755 $srcdir/mt-daapd $pkgdir/etc/rc.d/mt-daapd + install -D -m755 $srcdir/mt-daapd $pkgdir/etc/rc.d/mt-daapd && \ + install -D -m644 $srcdir/mt-daapd.service $pkgdir/usr/lib/systemd/system/mt-daapd.service } md5sums=('67bef9fb14d487693b0dfb792c3f1b05' '26cf6ff799ef06d262a8648d6890a250' - '59896e760486a51170d8b0e7ed5a2506') + '59896e760486a51170d8b0e7ed5a2506' + 'e4fe850008da5206286c3ced6384ac4c') diff --git a/aur/mt-daapd/mt-daapd.service b/aur/mt-daapd/mt-daapd.service new file mode 100755 index 000000000..96d2e414e --- /dev/null +++ b/aur/mt-daapd/mt-daapd.service @@ -0,0 +1,14 @@ +[Unit] +Description=mt-daapd - multi-threaded DAAP server +ConditionPathExists=/etc/mt-daapd/mt-daapd.conf +Requires=network.target +Wants=avahi-daemon.service +After=avahi-daemon.service + +[Service] +Type=forking +ExecStart=/usr/sbin/mt-daapd +Restart=always + +[Install] +WantedBy=multi-user.target