mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
Add plist files for macOS
This commit is contained in:
parent
49d5444bb3
commit
31e7375ed4
4 changed files with 46 additions and 9 deletions
|
@ -130,9 +130,9 @@ else ifeq ($(TARGET), MACOS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
echo macOS
|
echo macOS
|
||||||
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
install -s -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 etc/$(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
|
||||||
|
@ -155,7 +155,7 @@ install:
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installfiles:
|
installfiles:
|
||||||
install --strip -D -g root -o root $(BIN) $(TARGET_DIR)/bin/$(BIN)
|
install -s -D -g root -o root $(BIN) $(TARGET_DIR)/bin/$(BIN)
|
||||||
install -D -g root -o root $(BIN).1 $(TARGET_DIR)/share/man/man1/$(BIN).1
|
install -D -g root -o root $(BIN).1 $(TARGET_DIR)/share/man/man1/$(BIN).1
|
||||||
|
|
||||||
installsystemd:
|
installsystemd:
|
||||||
|
|
17
client/etc/snapclient.plist
Normal file
17
client/etc/snapclient.plist
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>de.badaix.snapcast.snapclient</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>/usr/local/bin/snapclient</string>
|
||||||
|
<!-- <string>-d</string> -->
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
<key>KeepAlive</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
|
@ -121,7 +121,7 @@ else ifeq ($(TARGET), FREEBSD)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
echo BSD
|
echo BSD
|
||||||
install --strip -g wheel -o root -m 555 $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
install -s -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)
|
||||||
|
|
||||||
|
@ -129,9 +129,10 @@ else ifeq ($(TARGET), MACOS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
echo macOS
|
echo macOS
|
||||||
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
|
install -s -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 etc/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
||||||
|
install -g wheel -o root etc/$(BIN).conf /etc/$(BIN).conf
|
||||||
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -154,14 +155,14 @@ install:
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installfiles:
|
installfiles:
|
||||||
install --strip -D -g root -o root $(BIN) $(TARGET_DIR)/bin/$(BIN)
|
install -s -D -g root -o root $(BIN) $(TARGET_DIR)/bin/$(BIN)
|
||||||
install -D -g root -o root $(BIN).1 $(TARGET_DIR)/share/man/man1/$(BIN).1
|
install -D -g root -o root $(BIN).1 $(TARGET_DIR)/share/man/man1/$(BIN).1
|
||||||
|
|
||||||
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 etc/$(BIN).conf /etc/$(BIN).conf; \
|
||||||
systemctl daemon-reload; \
|
systemctl daemon-reload; \
|
||||||
systemctl enable $(BIN); \
|
systemctl enable $(BIN); \
|
||||||
systemctl start $(BIN); \
|
systemctl start $(BIN); \
|
||||||
|
@ -170,7 +171,7 @@ 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 etc/$(BIN).conf /etc/$(BIN).conf; \
|
||||||
update-rc.d $(BIN) defaults; \
|
update-rc.d $(BIN) defaults; \
|
||||||
/etc/init.d/$(BIN) start; \
|
/etc/init.d/$(BIN) start; \
|
||||||
|
|
||||||
|
|
19
server/etc/snapserver.plist
Normal file
19
server/etc/snapserver.plist
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>de.badaix.snapcast.snapserver</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>/usr/local/bin/snapserver</string>
|
||||||
|
<!-- <string>-d</string> -->
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
<key>KeepAlive</key>
|
||||||
|
<true/>
|
||||||
|
<key>ProcessType</key>
|
||||||
|
<string>Interactive</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Loading…
Add table
Add a link
Reference in a new issue