From 9e77f4bea01cc826132a5fbc6ca412cce5327e97 Mon Sep 17 00:00:00 2001 From: Jacek Szafarkiewicz Date: Tue, 26 May 2015 12:57:40 +0200 Subject: [PATCH] Add systemd files to deb packate --- build.go | 2 ++ build.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/build.go b/build.go index 1c70306b7..cf0815461 100644 --- a/build.go +++ b/build.go @@ -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") { diff --git a/build.sh b/build.sh index 1f3f826a1..f4bebdfbb 100755 --- a/build.sh +++ b/build.sh @@ -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 ;;