[arch-commits] Commit in shairport-sync/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Apr 14 20:11:06 UTC 2020
Date: Tuesday, April 14, 2020 @ 20:11:05
Author: anatolik
Revision: 614175
archrelease: copy trunk to community-testing-x86_64
Added:
shairport-sync/repos/community-testing-x86_64/
shairport-sync/repos/community-testing-x86_64/PKGBUILD
(from rev 614174, shairport-sync/trunk/PKGBUILD)
shairport-sync/repos/community-testing-x86_64/remove_useradd.patch
(from rev 614174, shairport-sync/trunk/remove_useradd.patch)
shairport-sync/repos/community-testing-x86_64/shairport-sync.sysusers
(from rev 614174, shairport-sync/trunk/shairport-sync.sysusers)
-------------------------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
remove_useradd.patch | 27 +++++++++++++++++++++++++++
shairport-sync.sysusers | 3 +++
3 files changed, 72 insertions(+)
Copied: shairport-sync/repos/community-testing-x86_64/PKGBUILD (from rev 614174, shairport-sync/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-04-14 20:11:05 UTC (rev 614175)
@@ -0,0 +1,42 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=shairport-sync
+pkgver=3.3.6
+pkgrel=1
+pkgdesc='Emulates an AirPort Express for the purpose of streaming music from iTunes and compatible iPods and iPhones'
+url='https://github.com/mikebrady/shairport-sync'
+arch=(x86_64)
+license=(GPL)
+backup=(etc/shairport-sync.conf)
+depends=(openssl avahi libsoxr popt alsa-lib libconfig libpulse)
+makedepends=(xmltoman)
+source=(shairport-sync-$pkgver.zip::https://github.com/mikebrady/shairport-sync/archive/$pkgver.zip
+ shairport-sync.sysusers
+ remove_useradd.patch)
+sha1sums=('75d40e937c2cac9d30a49f195217da4f65e492f8'
+ 'b806f9cd3eeaf8585a51d79c7b5681e3d3e4748a'
+ '2cdd711a21a74748137d2e3894fb0fcb189c41e2')
+
+prepare() {
+ cd shairport-sync-$pkgver
+
+ patch -p1 < ../remove_useradd.patch
+}
+
+build() {
+ cd shairport-sync-$pkgver
+
+ autoreconf -i -f
+ ./configure --prefix=/usr --sysconfdir=/etc --with-alsa --with-pa --with-avahi --with-stdout --with-pipe --with-ssl=openssl --with-soxr --with-dns_sd --with-pkg-config --with-systemd --with-configfiles --with-metadata
+ make
+
+ sed 's|/usr/local/bin/|/usr/bin/|' -i scripts/shairport-sync.service
+}
+
+package() {
+ cd shairport-sync-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -D -m644 "$srcdir"/shairport-sync.sysusers "$pkgdir"/usr/lib/sysusers.d/shairport-sync.conf
+ install -D -m664 LICENSES "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm "$pkgdir"/etc/shairport-sync.conf.sample
+}
Copied: shairport-sync/repos/community-testing-x86_64/remove_useradd.patch (from rev 614174, shairport-sync/trunk/remove_useradd.patch)
===================================================================
--- community-testing-x86_64/remove_useradd.patch (rev 0)
+++ community-testing-x86_64/remove_useradd.patch 2020-04-14 20:11:05 UTC (rev 614175)
@@ -0,0 +1,27 @@
+commit 48eb4034563e29dd3fba7310106d929811da32eb
+Author: Anatol Pomozov <anatol.pomozov at gmail.com>
+Date: Tue Jun 11 21:30:13 2019 -0700
+
+ Revert "Update System V and System D installers to define user, group and runtime directory as necessary"
+
+ This reverts commit 15c376ad57629dad16f1120dbf4c080f7de48475.
+
+diff --git a/Makefile.am b/Makefile.am
+index 2bbc387..99db873 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -185,14 +185,10 @@ endif
+ endif
+ endif
+ if INSTALL_SYSTEMV
+- getent group shairport-sync &>/dev/null || groupadd -r shairport-sync >/dev/null
+- getent passwd shairport-sync &> /dev/null || useradd -r -M -g shairport-sync -s /usr/bin/nologin -G audio shairport-sync >/dev/null
+ [ -e $(DESTDIR)$(sysconfdir)/init.d ] || mkdir -p $(DESTDIR)$(sysconfdir)/init.d
+ [ -f $(DESTDIR)$(sysconfdir)/init.d/shairport-sync ] || cp scripts/shairport-sync $(DESTDIR)$(sysconfdir)/init.d/
+ endif
+ if INSTALL_SYSTEMD
+- getent group shairport-sync &>/dev/null || groupadd -r shairport-sync >/dev/null
+- getent passwd shairport-sync &> /dev/null || useradd -r -M -g shairport-sync -s /usr/bin/nologin -G audio shairport-sync >/dev/null
+ [ -e $(DESTDIR)$(systemdsystemunitdir) ] || mkdir -p $(DESTDIR)$(systemdsystemunitdir)
+ [ -f $(DESTDIR)$(systemdsystemunitdir)/shairport-sync.service ] || cp scripts/shairport-sync.service $(DESTDIR)$(systemdsystemunitdir)
+ endif
Copied: shairport-sync/repos/community-testing-x86_64/shairport-sync.sysusers (from rev 614174, shairport-sync/trunk/shairport-sync.sysusers)
===================================================================
--- community-testing-x86_64/shairport-sync.sysusers (rev 0)
+++ community-testing-x86_64/shairport-sync.sysusers 2020-04-14 20:11:05 UTC (rev 614175)
@@ -0,0 +1,3 @@
+u shairport-sync - "ShairportSync AirPort receiver" /var/lib/shairport-sync
+g shairport-sync
+m shairport-sync audio
More information about the arch-commits
mailing list