[ARVADOS] created: 902e38e8489642d581b6157837fd24fcb57a14f0
Git user
git at public.curoverse.com
Wed Aug 3 17:06:59 EDT 2016
at 902e38e8489642d581b6157837fd24fcb57a14f0 (commit)
commit 902e38e8489642d581b6157837fd24fcb57a14f0
Author: Tom Clegg <tom at curoverse.com>
Date: Wed Aug 3 17:06:55 2016 -0400
9706: If "foo.service" exists in the source dir for a Go program, package it so it installs to /lib/systemd/system/.
diff --git a/build/run-library.sh b/build/run-library.sh
index 32cf205..aee579c 100755
--- a/build/run-library.sh
+++ b/build/run-library.sh
@@ -100,7 +100,15 @@ package_go_binary() {
cd $WORKSPACE/packages/$TARGET
go get "git.curoverse.com/arvados.git/$src_path"
- fpm_build "$GOPATH/bin/$basename=/usr/bin/$prog" "$prog" 'Curoverse, Inc.' dir "$version" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=$description" "$WORKSPACE/$license_file=/usr/share/doc/$prog/$license_file"
+
+ declare -a addfiles=()
+ systemd_unit="$WORKSPACE/${src_path}/${prog}.service"
+ if [[ -e "${systemd_unit}" ]]; then
+ addfiles+=("${systemd_unit}=/lib/systemd/system/${prog}.service")
+ fi
+ addfiles+=("$WORKSPACE/$license_file=/usr/share/doc/$prog/$license_file")
+
+ fpm_build "$GOPATH/bin/$basename=/usr/bin/$prog" "$prog" 'Curoverse, Inc.' dir "$version" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=$description" "${addfiles[@]}"
}
default_iteration() {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list