From e5901c6d43f100133d7d96cd4e9686eb0e7835ba Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 17 Apr 2021 17:02:35 +0100 Subject: [PATCH] Add Debian package --- .gitlab-ci.yml | 12 ++++++++++-- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/copyright | 25 +++++++++++++++++++++++++ debian/rules | 10 ++++++++++ debian/source/format | 1 + 7 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57f6ae7..7fc2703 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,20 @@ include: "https://git.autistici.org/ai3/build-container/raw/master/common.yml" +include: "https://git.autistici.org/ai3/build-deb/raw/master/ci-nextstable.yml" stages: - test - - build - - release + - build_pkgsrc + - build_pkg + - upload_pkg test: stage: test image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:1.16 script: - go test -v ./... + +build: + stage: build_pkg + +release: + stage: upload_pkg diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7000e7e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +iprep (0.1) unstable; urgency=medium + + * Initial Release. + + -- Autistici/Inventati <debian@autistici.org> Sat, 17 Apr 2021 16:56:36 +0000 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..db8a661 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: iprep +Section: admin +Priority: optional +Maintainer: Autistici/Inventati <debian@autistici.org> +Build-Depends: debhelper (>=9), golang-any (>=1.11), dh-golang +Standards-Version: 3.9.6 +XS-Go-Import-Path: git.autistici.org/ai3/tools/iprep + +Package: iprep +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: IP reputation database. + Includes client and server components. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..96d83de --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: iprep +Source: <https://git.autistici.org/ai3/tools/iprep> + +Files: * +Copyright: 2020 Autistici/Inventati <info@autistici.org> +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package 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 General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..37a825c --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export DH_GOLANG_EXCLUDES = vendor + +%: + dh $@ --with systemd --with golang --buildsystem golang + +override_dh_auto_install: + dh_auto_install -- --no-source + 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) -- GitLab