Initial release
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
#
# Initial commit
#
# Changes to be committed:
#	new file:   debian/changelog
#	new file:   debian/compat
#	new file:   debian/control
#	new file:   debian/copyright
#	new file:   debian/rules
#	new file:   debian/sysuser
#	new file:   debian/zot.service
#	new file:   debian/zot.sha512
#
# ------------------------ >8 ------------------------
# Do not modify or remove the line above.
# Everything below it will be ignored.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fa6cfc7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+zot (2.1.16) unstable; urgency=medium
+
+  * Initial release.
+
+ -- Philippe Pepiot <phil@philpep.org>  Fri, 15 May 2026 11:04:20 +0200
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..581660a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: zot
+Section: misc
+Priority: optional
+Maintainer: Philippe Pepiot <phil@philpep.org>
+Build-Depends:
+ debhelper (>= 9),
+ dh-sysuser,
+ wget,
+ ca-certificates,
+Standards-Version: 4.3.0
+
+Package: zot
+Architecture: amd64
+Depends:
+ ${misc:Depends},
+ sysuser-helper
+Description: A production-ready vendor-neutral OCI image registry
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2f3dfb5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,10 @@
+Files: debian/*
+Copyright: 2026, Philippe Pepiot <phil@philpep.org>
+License: GPL-2+
+
+License: GPL-2+
+ This software may be used and distributed according to the terms of the
+ GNU General Public License version 2 or any later version.
+ .
+ On Debian systems the full text of the GNU General Public License version 2
+ can be found in the `/usr/share/common-licenses/GPL-2' file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e64c56a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+https://github.com/project-zot/zot/releases/download/v2.1.16/zot-linux-amd64-minimal
+VERSION = 2.1.16
+DIST = zot-linux-amd64-minimal
+URL = https://github.com/project-zot/zot/releases/download/v$(VERSION)/$(DIST)
+
+%:
+	dh $@ --with sysuser,systemd
+
+override_dh_auto_install:
+	wget -N --progress=dot:mega $(URL)
+	sha512sum -c debian/zot.sha512
+	mkdir -p debian/zot/etc/zot
+	chmod +x $(DIST)
+	install -D $(DIST) debian/zot/usr/bin/zot
+
+override_dh_auto_clean:
+	rm -rf $(DIST)
diff --git a/debian/sysuser b/debian/sysuser
new file mode 100644
index 0000000..3a4f7ed
--- /dev/null
+++ b/debian/sysuser
@@ -0,0 +1 @@
+zot home
diff --git a/debian/zot.service b/debian/zot.service
new file mode 100644
index 0000000..139555c
--- /dev/null
+++ b/debian/zot.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=OCI Distribution Registry
+Documentation=https://zotregistry.dev/
+After=network.target auditd.service local-fs.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/zot serve /etc/zot/config.json
+Restart=on-failure
+User=zot
+Group=zot
+LimitNOFILE=500000
+MemoryHigh=30G
+MemoryMax=32G
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/zot.sha512 b/debian/zot.sha512
new file mode 100644
index 0000000..f5a9e98
--- /dev/null
+++ b/debian/zot.sha512
@@ -0,0 +1 @@
+35f525ff54bf71f57cf93e5e798bb862372358fecd548ea2ad56d20ff7d5c9e41e1e5720ba0ef865f5e2bd704b932e2fbf1add79aec4a666fcda8e8088e331de  zot-linux-amd64-minimal
