Add systemd files to deb packate

This commit is contained in:
Jacek Szafarkiewicz
2015-05-26 12:57:40 +02:00
parent 5417fb7287
commit 9e77f4bea0
2 changed files with 6 additions and 0 deletions

View File

@@ -304,6 +304,8 @@ func buildDeb() {
{src: "LICENSE", dst: "deb/usr/share/doc/syncthing/LICENSE.txt", perm: 0644},
{src: "AUTHORS", dst: "deb/usr/share/doc/syncthing/AUTHORS.txt", perm: 0644},
{src: "syncthing", dst: "deb/usr/bin/syncthing", perm: 0755},
{src: "etc/linux-systemd/system/syncthing@.service", dst:"deb/lib/systemd/system/syncthing@.service", perm: 0644},
{src: "etc/linux-systemd/user/syncthing.service", dst:"deb/usr/lib/systemd/user/syncthing.service", perm: 0644},
}
for _, file := range listFiles("extra") {

View File

@@ -48,6 +48,10 @@ case "${1:-default}" in
go run build.go "$1"
;;
deb)
go run build.go "$1"
;;
noupgrade)
go run build.go -no-upgrade tar
;;