Add Debian packaging information
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..57f1600
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libgtpnl (1.0.1) unstable; urgency=medium
+
+  * Initial release.
+
+ -- Harald Welte <laforge@gnumonks.org>  Mon, 30 Oct 2017 23:03:47 +0100
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..3128f3e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: libgtpnl
+Maintainer: Harald Welte <laforge@gnumonks.org>
+Section: libs
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               autotools-dev,
+               autoconf,
+               automake,
+               libtool,
+               dh-autoreconf,
+               git,
+               pkg-config,
+               libmnl-dev
+Standards-Version: 3.9.8
+Vcs-Git: git://git.osmocom.org/libgtpnl.git
+Vcs-Browser: http://git.osmocom.org/gitweb?p=libgtpnl.git;a=summary
+Homepage: https://projects.osmocom.org/projects/openggsn
+
+Package: libgtpnl0
+Section: libs
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: Linux kernel GTP-U netlink library
+
+Package: libgtpnl-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: libmnl-dev,
+         libgtpnl0 (= ${binary:Version}),
+         ${misc:Depends}
+Description: Development headers for Linux kernel GTP-U netlink library
+ The header files provided by this package may be used to develop
+ applications against the libgtpnl library.
+
+Package: libgtpnl-dbg
+Architecture: any
+Multi-Arch: same
+Section: debug
+Priority: extra
+Depends: libgtpnl0 (= ${binary:Version}),
+         ${misc:Depends}
+Description: Debug symbols for Linux kernel GTP-U netlink library
diff --git a/debian/libgtpnl-dev.install b/debian/libgtpnl-dev.install
new file mode 100644
index 0000000..2f5a97b
--- /dev/null
+++ b/debian/libgtpnl-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/lib*.la
+usr/lib/*/pkgconfig/*
diff --git a/debian/libgtpnl0.install b/debian/libgtpnl0.install
new file mode 100644
index 0000000..b81bcc5
--- /dev/null
+++ b/debian/libgtpnl0.install
@@ -0,0 +1 @@
+usr/lib/*/libgtpnl*.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0d602e5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEBIAN  := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
+DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
+VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
+
+%:
+	dh $@ --with autoreconf --fail-missing
+
+override_dh_strip:
+	dh_strip --dbg-package=libgtpnl-dbg
+
+override_dh_install:
+	sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
+	dh_install
+
+# Print test results in case of a failure
+override_dh_auto_test:
+	dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
+
+override_dh_autoreconf:
+	echo $(VERSION) > .tarball-version
+	dh_autoreconf