summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.crystalintegration.yml6
-rwxr-xr-xrepo-deb/build.sh13
-rw-r--r--repo-deb/code-forgejo-org-crystal.asc29
-rw-r--r--repo-deb/forgejo-deb.list1
-rw-r--r--repo-deb/main/debian/changelog5
-rw-r--r--repo-deb/main/debian/compat1
-rw-r--r--repo-deb/main/debian/control19
-rw-r--r--repo-deb/main/debian/forgejo-deb-repo.install1
-rw-r--r--repo-deb/main/debian/forgejo-deb-repokey.install1
-rwxr-xr-xrepo-deb/main/debian/rules4
-rw-r--r--repo-deb/stub/debian/changelog5
-rw-r--r--repo-deb/stub/debian/compat1
-rw-r--r--repo-deb/stub/debian/control12
-rw-r--r--repo-deb/stub/debian/forgejo-deb-repo.install2
-rwxr-xr-xrepo-deb/stub/debian/rules4
15 files changed, 104 insertions, 0 deletions
diff --git a/.crystalintegration.yml b/.crystalintegration.yml
index f36680e..274b3d6 100644
--- a/.crystalintegration.yml
+++ b/.crystalintegration.yml
@@ -160,6 +160,12 @@ pipeline:
- ./.ci-make.sh package-prep
- ./.ci-make.sh package-build
- ./.ci-make.sh package-clean
+
+ package-repo:
+ image: *deb_build_image
+ commands:
+ - cd repo-deb
+ - ./build.sh
gen-sha256:
image: *ci_verify_image
diff --git a/repo-deb/build.sh b/repo-deb/build.sh
new file mode 100755
index 0000000..5870d0e
--- /dev/null
+++ b/repo-deb/build.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+cp code-forgejo-org-crystal.asc stub/
+cp code-forgejo-org-crystal.asc main/
+cp forgejo-deb.list stub/
+cp forgejo-deb.list main/
+cd stub
+dpkg-buildpackage -b
+cd ..
+cd main
+dpkg-buildpackage -b
+cd ..
+exit 0
diff --git a/repo-deb/code-forgejo-org-crystal.asc b/repo-deb/code-forgejo-org-crystal.asc
new file mode 100644
index 0000000..e8ee1c5
--- /dev/null
+++ b/repo-deb/code-forgejo-org-crystal.asc
@@ -0,0 +1,29 @@
+-----BEGIN PGP P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kFFx4
+4T3mpeD2Y+Lsx8Psi4ZORv+ODxsb0piRUEIe2nq2Uav9Qj9YLd+rzenG0qcTN46A
+oqwumuUBRxGn2WWkTf1ZnTWS36WDw1bWEzgwvvlz7NRwEXg16SBwbR/9bnWx359h
+AaWBy3A1c3hBaQLPXzCpQnasbMAdABEBAAHCwF8EGAEIABMFAmSVbecJEBaabmtc
+4lggAhsMAACWcwgALSpBKXv4SX2VAVCo1GKUO8FT/dpgAP6u788fdorQBlS7TUTz
+wqEB/wVuSjOER04DdOOXH5up9ikZhaTa03uL4UXeHsPL9qaUQ+Y1Avn8FHpR3647
+O+f0+iEiROtNfLuNWNYISHwJB644m2xsMG9bohLU2h78yS0ToZlt5hvoTpTNKO1g
+9lUM7u2i5DBDBQnUBfp6nKou9gMH2CHgB4W4Gc36b7sgU7AQt095yfbfdIjaHl7a
+wikaAx/cMShI0lJudDs60qUfxfKfEQBcexJMiEiZbF6dPzQ6OQm9lcmkuhNAX6MP
+zuNnZsilht/BDYeKWqmwdfXFxcdZ/BX/oitwkA==
+=hNbH
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/repo-deb/forgejo-deb.list b/repo-deb/forgejo-deb.list
new file mode 100644
index 0000000..7d9891d
--- /dev/null
+++ b/repo-deb/forgejo-deb.list
@@ -0,0 +1 @@
+deb https://code.forgejo.org/api/packages/crystal/debian bullseye forgejo
diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog
new file mode 100644
index 0000000..fbc2deb
--- /dev/null
+++ b/repo-deb/main/debian/changelog
@@ -0,0 +1,5 @@
+forgejo-deb-repo (1-0) unstable; urgency=medium
+
+ * This is a pre-release version, install for testing only
+
+ -- crystal <crystal@noreply.codeberg.org> Wed, 2 Jul 2023 19:59:00 +0000
diff --git a/repo-deb/main/debian/compat b/repo-deb/main/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/repo-deb/main/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control
new file mode 100644
index 0000000..bc65394
--- /dev/null
+++ b/repo-deb/main/debian/control
@@ -0,0 +1,19 @@
+Source: forgejo-deb-repo
+Section: admin
+Priority: optional
+Maintainer: crystal <crystal@noreply.codeberg.org>
+Build-Depends: debhelper (>= 10)
+
+Package: forgejo-deb-repo
+Architecture: all
+Priority: optional
+Depends: forgejo-deb-repokey, apt-transport-https
+Description: APT Repository for forgejo-deb builds
+ Forgejo will be updated via apt along with other software on your system
+
+Package: forgejo-deb-repokey
+Architecture: all
+Priority: optional
+Replaces: forgejo-deb-repo
+Description: APT Repository signing key for forgejo-deb
+ Debian Package Registry key for https://code.forgejo.org/crystal
diff --git a/repo-deb/main/debian/forgejo-deb-repo.install b/repo-deb/main/debian/forgejo-deb-repo.install
new file mode 100644
index 0000000..020f975
--- /dev/null
+++ b/repo-deb/main/debian/forgejo-deb-repo.install
@@ -0,0 +1 @@
+forgejo-deb.list /etc/apt/sources.list.d
diff --git a/repo-deb/main/debian/forgejo-deb-repokey.install b/repo-deb/main/debian/forgejo-deb-repokey.install
new file mode 100644
index 0000000..59d9c5c
--- /dev/null
+++ b/repo-deb/main/debian/forgejo-deb-repokey.install
@@ -0,0 +1 @@
+code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d
diff --git a/repo-deb/main/debian/rules b/repo-deb/main/debian/rules
new file mode 100755
index 0000000..d1decc8
--- /dev/null
+++ b/repo-deb/main/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with=systemd
diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog
new file mode 100644
index 0000000..3bd974a
--- /dev/null
+++ b/repo-deb/stub/debian/changelog
@@ -0,0 +1,5 @@
+forgejo-deb-repo (0-0) unstable; urgency=medium
+
+ * forgejo-deb APT repository stub
+
+ -- crystal <crystal@noreply.codeberg.org> Wed, 2 Jul 2023 20:30:00 +0000
diff --git a/repo-deb/stub/debian/compat b/repo-deb/stub/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/repo-deb/stub/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/repo-deb/stub/debian/control b/repo-deb/stub/debian/control
new file mode 100644
index 0000000..be4c77e
--- /dev/null
+++ b/repo-deb/stub/debian/control
@@ -0,0 +1,12 @@
+Source: forgejo-deb-repo
+Section: admin
+Priority: optional
+Maintainer: crystal <crystal@noreply.codeberg.org>
+Build-Depends: debhelper (>= 10)
+
+Package: forgejo-deb-repo
+Architecture: all
+Priority: optional
+Depends: apt-transport-https
+Description: APT Repository for forgejo-deb builds
+ Forgejo will be updated via apt along with other software on your system
diff --git a/repo-deb/stub/debian/forgejo-deb-repo.install b/repo-deb/stub/debian/forgejo-deb-repo.install
new file mode 100644
index 0000000..f81b739
--- /dev/null
+++ b/repo-deb/stub/debian/forgejo-deb-repo.install
@@ -0,0 +1,2 @@
+code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d
+forgejo-deb.list /etc/apt/sources.list.d
diff --git a/repo-deb/stub/debian/rules b/repo-deb/stub/debian/rules
new file mode 100755
index 0000000..d1decc8
--- /dev/null
+++ b/repo-deb/stub/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with=systemd