-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nqptp: copy systemd service and add capability
The binary has its capability to listen on ports removed, and upstream has already moved to AmbientCapabilities in the systemd service instead of using setcap. Copying the systemd service allows using the package with `systemd.packages`. The patch should be removed after version 1.2.4, along with the other patch. The patch is taken from [commit 050a8c2][1] in the upstream repository. [1]: mikebrady/nqptp@050a8c2
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
pkgs/tools/networking/nqptp/systemd-service-capability.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/nqptp.service.in b/nqptp.service.in | ||
index 6f1eb0c..53e6a2e 100644 | ||
--- a/nqptp.service.in | ||
+++ b/nqptp.service.in | ||
@@ -8,6 +8,7 @@ Before=shairport-sync.service | ||
ExecStart=@prefix@/bin/nqptp | ||
User=nqptp | ||
Group=nqptp | ||
+AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
|
||
[Install] | ||
WantedBy=multi-user.target |