mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
Fix relative install paths
This commit is contained in:
parent
81fc9ba389
commit
17264a0409
2 changed files with 14 additions and 14 deletions
|
@ -132,7 +132,7 @@ install:
|
||||||
echo macOS
|
echo macOS
|
||||||
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
||||||
install -g wheel -o root $(BIN).1 $(TARGET_DIR)/local/share/man/man1/$(BIN).1
|
install -g wheel -o root $(BIN).1 $(TARGET_DIR)/local/share/man/man1/$(BIN).1
|
||||||
install -g wheel -o root debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
install -g wheel -o root ../debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
||||||
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -160,16 +160,16 @@ installfiles:
|
||||||
|
|
||||||
installsystemd:
|
installsystemd:
|
||||||
@echo using systemd; \
|
@echo using systemd; \
|
||||||
cp debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
|
cp ../debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
|
||||||
cp -n debian/$(BIN).default /etc/default/$(BIN); \
|
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
|
||||||
systemctl daemon-reload; \
|
systemctl daemon-reload; \
|
||||||
systemctl enable $(BIN); \
|
systemctl enable $(BIN); \
|
||||||
systemctl start $(BIN); \
|
systemctl start $(BIN); \
|
||||||
|
|
||||||
installsysv:
|
installsysv:
|
||||||
@echo using sysv; \
|
@echo using sysv; \
|
||||||
cp debian/$(BIN).init /etc/init.d/$(BIN); \
|
cp ../debian/$(BIN).init /etc/init.d/$(BIN); \
|
||||||
cp -n debian/$(BIN).default /etc/default/$(BIN); \
|
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
|
||||||
update-rc.d $(BIN) defaults; \
|
update-rc.d $(BIN) defaults; \
|
||||||
/etc/init.d/$(BIN) start; \
|
/etc/init.d/$(BIN) start; \
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ install:
|
||||||
echo BSD
|
echo BSD
|
||||||
install --strip -g wheel -o root -m 555 $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
install --strip -g wheel -o root -m 555 $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
||||||
install -g wheel -o root -m 555 $(BIN).1 $(TARGET_DIR)/local/man/man1/$(BIN).1
|
install -g wheel -o root -m 555 $(BIN).1 $(TARGET_DIR)/local/man/man1/$(BIN).1
|
||||||
install -g wheel -o root -m 555 debian/$(BIN).bsd $(TARGET_DIR)/local/etc/rc.d/$(BIN)
|
install -g wheel -o root -m 555 ../debian/$(BIN).bsd $(TARGET_DIR)/local/etc/rc.d/$(BIN)
|
||||||
|
|
||||||
else ifeq ($(TARGET), MACOS)
|
else ifeq ($(TARGET), MACOS)
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ install:
|
||||||
echo macOS
|
echo macOS
|
||||||
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
||||||
install -g wheel -o root $(BIN).1 $(TARGET_DIR)/local/share/man/man1/$(BIN).1
|
install -g wheel -o root $(BIN).1 $(TARGET_DIR)/local/share/man/man1/$(BIN).1
|
||||||
install -g wheel -o root debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
install -g wheel -o root ../debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
||||||
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -159,24 +159,24 @@ installfiles:
|
||||||
|
|
||||||
installsystemd:
|
installsystemd:
|
||||||
@echo using systemd; \
|
@echo using systemd; \
|
||||||
cp debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
|
cp ../debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
|
||||||
cp -n debian/$(BIN).default /etc/default/$(BIN); \
|
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
|
||||||
cp -n server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
|
cp -n ../server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
|
||||||
systemctl daemon-reload; \
|
systemctl daemon-reload; \
|
||||||
systemctl enable $(BIN); \
|
systemctl enable $(BIN); \
|
||||||
systemctl start $(BIN); \
|
systemctl start $(BIN); \
|
||||||
|
|
||||||
installsysv:
|
installsysv:
|
||||||
@echo using sysv; \
|
@echo using sysv; \
|
||||||
cp debian/$(BIN).init /etc/init.d/$(BIN); \
|
cp ../debian/$(BIN).init /etc/init.d/$(BIN); \
|
||||||
cp -n debian/$(BIN).default /etc/default/$(BIN); \
|
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
|
||||||
cp -n server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
|
cp -n ../server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
|
||||||
update-rc.d $(BIN) defaults; \
|
update-rc.d $(BIN) defaults; \
|
||||||
/etc/init.d/$(BIN) start; \
|
/etc/init.d/$(BIN) start; \
|
||||||
|
|
||||||
installbsd:
|
installbsd:
|
||||||
@echo using bsd; \
|
@echo using bsd; \
|
||||||
cp debian/$(BIN).bsd /usr/local/etc/rc.d/$(BIN); \
|
cp ../debian/$(BIN).bsd /usr/local/etc/rc.d/$(BIN); \
|
||||||
|
|
||||||
adduser:
|
adduser:
|
||||||
@if ! getent passwd snapserver >/dev/null; then \
|
@if ! getent passwd snapserver >/dev/null; then \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue