fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37730?usp=email )


Change subject: add debian package files
......................................................................

add debian package files

Change-Id: I5446c70c1c1f232a2a45de60be7068cfd683a99c
---
A debian/compat
A debian/control
A debian/postinst
A debian/rules
A debian/source/format
5 files changed, 63 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw 
refs/changes/30/37730/1

diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4062ee8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: osmo-s1gw
+Maintainer: Osmocom team <[email protected]>
+Section: net
+Priority: optional
+Build-Depends: erlang-nox,
+               libpcap-dev,
+               rebar3,
+               debhelper (>= 10)
+Standards-Version: 4.5.0
+
+Package: osmo-s1gw
+Architecture: any
+Depends: erlang-nox
+Multi-Arch: allowed
+Description: Osmocom S1 gateway
+ This can be used on the S1 interface between eNB and MME/CN, and
+ acts as separation between the eNB-facing IP network and the
+ CN-facing IP network, which may be separate without routing in between.
diff --git a/debian/postinst b/debian/postinst
new file mode 100755
index 0000000..d4857a2
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+case "$1" in
+       configure)
+               # Create the osmocom group and user (if it doesn't exist yet)
+               if ! getent group osmocom >/dev/null; then
+                       groupadd --system osmocom
+               fi
+               if ! getent passwd osmocom >/dev/null; then
+                       useradd \
+                               --system \
+                               --gid osmocom \
+                               --home-dir /var/lib/osmocom \
+                               --shell /sbin/nologin \
+                               --comment "Open Source Mobile Communications" \
+                               osmocom
+               fi
+               ;;
+esac
+
+# dh_installdeb(1) will replace this with shell code automatically
+# generated by other debhelper scripts.
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ffd896c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/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
+
+%:
+       dh $@
+
+override_dh_auto_build:
+       if [ -e build_dep.tar.gz ] ; then tar xzf ./build_dep.tar.gz ; fi
+       dh_auto_build
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)

--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37730?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I5446c70c1c1f232a2a45de60be7068cfd683a99c
Gerrit-Change-Number: 37730
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to