lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28652 )
Change subject: debian: rework packaging
......................................................................
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
Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
---
M debian/osmo-diameter2gsup.install
M debian/rules
2 files changed, 15 insertions(+), 15 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo_dia2gsup refs/changes/52/28652/1
diff --git a/debian/osmo-diameter2gsup.install b/debian/osmo-diameter2gsup.install
index 6d442ad..398a000 100644
--- a/debian/osmo-diameter2gsup.install
+++ b/debian/osmo-diameter2gsup.install
@@ -1,2 +1,2 @@
/contrib/systemd/osmo_dia2gsup.service /lib/systemd/system/
-/_lib/* /usr/lib/erlang/lib/
+/_build/default/bin/osmo-dia2gsup /usr/bin/
diff --git a/debian/rules b/debian/rules
index 607a359..557601b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,18 @@
#!/usr/bin/make -f
-
-build:
- rebar3 compile
- rebar3 escriptize
- 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
+export DH_VERBOSE=1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+include /usr/share/dpkg/default.mk
+export ERL_COMPILER_OPTIONS=deterministic
%:
dh $@
+
+override_dh_auto_build:
+ dh_auto_build
+ rebar3 compile
+ rebar3 escriptize
+ rebar3 eunit
+
+override_dh_clean:
+ dh_clean
+ rm -rf _build _lib
--
To view, visit
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28652
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
Gerrit-Change-Number: 28652
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-MessageType: newchange