initial skeleton

Change-Id: I706aa9e11a646aad71bb310fa552d0bdb5084d4b
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e573404
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+osmo-smlc (0.0.1) unstable; urgency=medium
+
+  [ Harald Welte ]
+  * initial skeleton
+
+ -- Harald Welte <laforge@osmocom.org>  Fri, 21 Aug 2020 16:02:11 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..5f15744
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: osmo-smlc
+Section: net
+Priority: extra
+Maintainer: Osmocom team <openbsc@lists.osmocom.org>
+Build-Depends: debhelper (>=9),
+               dh-autoreconf,
+               autotools-dev,
+               autoconf,
+               automake,
+               libtool,
+               pkg-config,
+               libsctp-dev,
+               libtalloc-dev,
+               libosmocore-dev (>= 1.3.0),
+               libosmo-sccp-dev (>= 1.1.0),
+               libosmo-sigtran-dev (>= 1.1.0),
+               osmo-gsm-manuals-dev (>= 0.2.0)
+Standards-Version: 3.9.8
+Vcs-Git: git://git.osmocom.org/osmo-smlc.git
+Vcs-Browser: https://git.osmocom.org/osmo-smlc/
+Homepage: https://osmocom.org/projects/osmo-smlc
+
+Package: osmo-smlc
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${shlibs:Depends}, libdbd-sqlite3
+Description: OsmoSMLC: Osmocom's Location Services Center
+  FIXME
+  .
+  This Osmocom implementation of the SMLC handles Lb interfaces via 3GPP
+  Lb in an M3UA ASP role.
+
+Package: osmo-smlc-dbg
+Section: debug
+Architecture: any
+Multi-Arch: same
+Depends: osmo-smlc (= ${binary:Version}), ${misc:Depends}
+Description: OsmoSMLC: Osmocom's Location Services Center
+  FIXME
+  .
+  This Osmocom implementation of the SMLC handles Lb interfaces via 3GPP
+  Lb in an M3UA ASP role.
+  .
+  This package contains the debug symbols for osmo-smlc in order to
+  generate meaningful backtraces in bug-reports.
+
+Package: osmo-smlc-doc
+Architecture: all
+Section: doc
+Priority: optional
+Depends: ${misc:Depends}
+Description: ${misc:Package} PDF documentation
+ Various manuals: user manual, VTY reference manual and/or
+ protocol/interface manuals.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fcdada7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: osmo-smlc
+Source: git://git.osmocom.org/osmo-smlc
+
+Files:     *
+Copyright: 2020 Harald Welte <laforge@osmocom.org>
+           2020 sysmocom s.f.m.c. GmbH <info@sysmocom.de>
+License:   AGPL-3.0+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Affero General Public License for more details.
+ .
+ You should have received a copy of the GNU Affero General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
diff --git a/debian/osmo-smlc-doc.install b/debian/osmo-smlc-doc.install
new file mode 100644
index 0000000..e3cbcb0
--- /dev/null
+++ b/debian/osmo-smlc-doc.install
@@ -0,0 +1 @@
+usr/share/doc/osmo-smlc-doc/*.pdf
diff --git a/debian/osmo-smlc.install b/debian/osmo-smlc.install
new file mode 100644
index 0000000..8e3223a
--- /dev/null
+++ b/debian/osmo-smlc.install
@@ -0,0 +1,4 @@
+etc/osmocom/osmo-smlc.cfg
+lib/systemd/system/osmo-smlc.service
+usr/bin/osmo-smlc
+usr/share/doc/osmo-msc/examples/osmo-smlc/osmo-smlc.cfg usr/share/doc/osmo-smlc/examples
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..15f6320
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,67 @@
+#!/usr/bin/make -f
+# You must remove unused comment lines for the released package.
+# See debhelper(7) (uncomment to enable)
+# This is an autogenerated template for debian/rules.
+#
+# Output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+#
+# Copy some variable definitions from pkg-info.mk and vendor.mk
+# under /usr/share/dpkg/ to here if they are useful.
+#
+# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1)
+# Apply all hardening options
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+# 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
+#
+# With debhelper version 9 or newer, the dh command exports
+# all buildflags.  So there is no need to include the
+# /usr/share/dpkg/buildflags.mk file here if compat is 9 or newer.
+#
+# These are rarely used code. (START)
+#
+# The following include for *.mk magically sets miscellaneous
+# variables while honoring existing values of pertinent
+# environment variables:
+#
+# Architecture-related variables such as DEB_TARGET_MULTIARCH:
+#include /usr/share/dpkg/architecture.mk
+# Vendor-related variables such as DEB_VENDOR:
+#include /usr/share/dpkg/vendor.mk
+# Package-related variables such as DEB_DISTRIBUTION
+#include /usr/share/dpkg/pkg-info.mk
+#
+# You may alternatively set them susing a simple script such as:
+# DEB_VENDOR ?= $(shell dpkg-vendor --query  Vendor)
+#
+# These are rarely used code. (END)
+#
+
+# main packaging script based on dh7 syntax
+%:
+	dh $@ --with autoreconf
+
+# debmake generated override targets
+# Set options for ./configure
+CONFIGURE_FLAGS += --enable-iu --enable-smpp --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals
+override_dh_auto_configure:
+	dh_auto_configure -- $(CONFIGURE_FLAGS)
+#
+# Do not install libtool archive, python .pyc .pyo
+#override_dh_install:
+#	dh_install --list-missing -X.la -X.pyc -X.pyo
+
+# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
+override_dh_strip:
+	dh_strip --dbg-package=osmo-smlc-dbg
+
+# Print test results in case of a failure
+override_dh_auto_test:
+	dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
+
+# Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers)
+override_dh_compress:
+	dh_compress -X.pdf
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)