diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-02-09 22:19:01 -0800 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-02-09 22:19:01 -0800 |
commit | 05667e53765583fc40eb2f9eedf32511fd528f8a (patch) | |
tree | 5b9d38ec1655c22ccf38e81d6a11e034b6e8ca3a /debian/rules | |
parent | 020a5f26d498aa4a1d2c892899e3802b3487700b (diff) | |
download | mavigator-05667e53765583fc40eb2f9eedf32511fd528f8a.tar.gz mavigator-05667e53765583fc40eb2f9eedf32511fd528f8a.tar.bz2 mavigator-05667e53765583fc40eb2f9eedf32511fd528f8a.zip |
Add debian packaging
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8d27048 --- /dev/null +++ b/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +override_dh_auto_build: + dh_auto_build + sbt mavigator-server/assembly + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/mavigator-bin/usr/share/mavigator/lib + cp mavigator-server/target/scala-2.12/mavigator.jar debian/mavigator-bin/usr/share/mavigator/lib/ + + mkdir -p debian/mavigator-bin/etc/mavigator + cp mavigator-server/src/main/resources/reference.conf debian/mavigator-bin/etc/mavigator/application.conf + + mkdir -p debian/mavigator-bin/usr/bin + cp debian/run debian/mavigator-bin/usr/bin/mavigator + chmod 0755 debian/mavigator-bin/usr/bin/mavigator + +override_dh_installinit: + dh_systemd_enable -pmavigator --name=mavigator mavigator.service + dh_installinit -pmavigator --no-start --noscripts + +%: + dh $@ --with=systemd + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + |