media-sound/shairport-sync: fix user install
Package-Manager: Portage-3.0.30, Repoman-3.0.3
This commit is contained in:
parent
c017f8d988
commit
d51353747e
4 changed files with 39 additions and 19 deletions
|
|
@ -0,0 +1,19 @@
|
|||
diff --git a/Makefile.am b/Makefile.am
|
||||
index c8d53440..a88a09a6 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -227,14 +227,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
|
||||
[ -e $(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)
|
||||
[ -e $(DESTDIR)$(systemdsystemunitdir)/shairport-sync.service ] || cp scripts/shairport-sync.service $(DESTDIR)$(systemdsystemunitdir)
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue