diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 57f6ae7ff61e2ff2593e8a2521d70af01b86f1c7..7fc27032b6f697afc918d926711daf6b6fd8c45a 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 0000000000000000000000000000000000000000..7000e7e4c3daf83d17441ef07b7b1eca84e65704
--- /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 0000000000000000000000000000000000000000..f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000000000000000000000000000000000..db8a661684b4e23712578cb70d4839ceda7d8538
--- /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 0000000000000000000000000000000000000000..96d83de0115492012ee980203b3fcb4ef78709c8
--- /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 0000000000000000000000000000000000000000..37a825c5badddf07b2e672caa4e2ed7eedcb8430
--- /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 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)