summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2018-12-13 19:06:20 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2018-12-13 19:47:12 +0100
commit244d1a3aa5539c8ce4a69ae8695b0621585d7b1c (patch)
tree41544f32f6206f116809a56fe6f0b9142dc1b79f
parent81843a0477c5eba4b3d4f6ff932f748f9e1244e7 (diff)
initial debianization
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control14
-rw-r--r--debian/copyright25
-rw-r--r--debian/leap-geolocation.service24
-rwxr-xr-xdebian/rules18
-rw-r--r--debian/source/format1
7 files changed, 88 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2234bc8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+leap-geolocation (0.1) unstable; urgency=medium
+
+ * Initial package.
+
+ -- LEAP Encryption Access Project <debian@leap.se> Thu, 13 Dec 2018 19:40:29 +0100
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..83bcb36
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: leap-geolocation
+Section: net
+Priority: extra
+Maintainer: LEAP Encryption Access Project <debian@leap.se>
+Build-Depends: debhelper (>= 8.0.0), golang-go, dh-golang, dh-systemd
+Standards-Version: 3.9.4
+
+Package: leap-geolocation
+Architecture: all
+Depends: ${misc:Depends}, geoipupdate
+Description: LEAP's Geolocation service.
+ Geolocation service, part of a LEAP Provider.
+ It can be used to calculate distance to gateways for the VPN service.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7b176c8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,25 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: auth-pam
+Source: <https://0xacab.org/kali/getmyip>
+
+Files: *
+Copyright: 2018 LEAP Encryption Access Project <info@leap.se>
+License: GPLv3
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/debian/leap-geolocation.service b/debian/leap-geolocation.service
new file mode 100644
index 0000000..b75996b
--- /dev/null
+++ b/debian/leap-geolocation.service
@@ -0,0 +1,24 @@
+#!/bin/sh
+# postinstall script for leap-geolocation
+
+case "$1" in
+configure)
+
+ adduser --quiet --system --home /nonexistent --no-create-home \
+ --disabled-password --group leap-geolocation
+
+ ;;
+abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+*)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4a95be9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+export DH_GOPKG = 0xacab.org/kali/getmyip
+export DH_GOLANG_EXCLUDES = vendor
+
+%:
+ dh $@ --with golang --with systemd --buildsystem golang
+
+override_dh_auto_test:
+
+override_dh_install:
+ rm -fr $(CURDIR)/debian/getmyip/usr/share/gocode
+ dh_install
+
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)