WIP: packaging

Change-Id: Ic55bca1260f992d0ed8583e7c7fe948ba0160d4d
This commit is contained in:
Harald Welte 2022-07-12 17:55:38 +02:00
parent 9491cf41d0
commit 8f18bfbb5f
5 changed files with 74 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
osmo-diameter2gsup (0.0.1) UNRELEASED; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- Harald Welte <lafore@gnumonks.org> Tue, 12 Jul 2022 17:51:01 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

23
debian/control vendored Normal file
View File

@ -0,0 +1,23 @@
Source: osmo-diameter2gsup
Maintainer: Osmocom Community <openbsc@lists.osmocom.org>
Section:
Priority: optional
Build-Depends: rebar3,
erlang-base,
erlang-eunit
Standards-Version: 3.9.8
#Vcs-Browser:
#Vcs-Git:
#Homepage:
Package: osmo-diameter2gsup
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
erlang-bsae, ${erlang-abi:Depends},
${erlang:Depends}
Multi-Arch: allowed
Description: Osmocom DIAMETER to GSUP translator
This can be used to translate DIAMETER requests (such as those by an EPC)
to the Osmocom specific GSUP protocol, which means you can use OsmoHLR
as a simplistic HSS.

1
debian/dh-rebar.conf vendored Normal file
View File

@ -0,0 +1 @@
EXEC_REBAR_COMMANDS=compile eunit

44
debian/rules vendored Executable file
View File

@ -0,0 +1,44 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
export ERL_COMPILER_OPTIONS=deterministic
BUILD_TARGET=rebar_compile
TEST_TARGET=rebar_eunit
.PHONY: build clean test install configure
clean_debhelper:
$(H)$(call empty_trash)
$(H)$(RM) -rf debian/trash
build: $(BUILD_TARGET)
test: $(TEST_TARGET)
configure:
clean: clean_debhelper
$(H)echo $@
rebar3 clean skip_deps=true -vv
$(H)rm -rf ebin/*.beam
$(H)rm -rf ebin/*.app
$(H)rm -rf c_src/*.o
$(H)rm -rf priv/.so
$(H)rm -rf .eunit
rebar_compile:
$(H)echo $@
rebar3 compile skip_deps=true -vv
binary:
$(H)echo $@
rebar3 escriptize
install:
$(H)echo $@
$(H)$(call trash, $(DEB_INST_PKG))
$(H)install -d