debian: rework packaging
- use the rebar3' debian/rules as template - use override targets instead of the exact targets - only install the escriptize osmo_dia2gsup file Related: SYS#6006 Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
This commit is contained in:
parent
a9faa72537
commit
700979a5b1
|
@ -7,7 +7,7 @@ Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
Environment="HOME=/var/lib/osmo_dia2gsup"
|
Environment="HOME=/var/lib/osmo_dia2gsup"
|
||||||
ExecStartPre=/usr/bin/mkdir -p /var/lib/osmo_dia2gsup
|
ExecStartPre=/usr/bin/mkdir -p /var/lib/osmo_dia2gsup
|
||||||
ExecStart=/usr/bin/erl -noshell -sname osmo_dia2gsup -eval "osmo_dia2gsup:start()."
|
ExecStart=/usr/bin/osmo-dia2gsup
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/contrib/systemd/osmo_dia2gsup.service /lib/systemd/system/
|
/contrib/systemd/osmo_dia2gsup.service /lib/systemd/system/
|
||||||
/_lib/* /usr/lib/erlang/lib/
|
/_build/default/bin/osmo-dia2gsup /usr/bin/
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
export DH_VERBOSE=1
|
||||||
build:
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
rebar3 compile
|
include /usr/share/dpkg/default.mk
|
||||||
rebar3 escriptize
|
export ERL_COMPILER_OPTIONS=deterministic
|
||||||
rebar3 eunit
|
|
||||||
for i in _build/default/lib/*; do \
|
|
||||||
libdir=_lib/"$$(basename "$$i")"; \
|
|
||||||
mkdir -pv "$$libdir"; \
|
|
||||||
cp -rv "$$i/ebin" "$$libdir"; \
|
|
||||||
done
|
|
||||||
find _lib -name .empty -delete
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf _build _lib
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
dh_auto_build
|
||||||
|
rebar3 compile
|
||||||
|
rebar3 escriptize
|
||||||
|
rebar3 eunit
|
||||||
|
|
||||||
|
override_dh_clean:
|
||||||
|
dh_clean
|
||||||
|
rm -rf _build
|
||||||
|
|
Loading…
Reference in New Issue