Compare commits
3 Commits
master
...
4274e01b7d
Author | SHA1 | Date | |
---|---|---|---|
4274e01b7d | |||
c788670355 | |||
b89f10a592 |
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
# Ignore downloaded binaries and verification files
|
||||
dist/
|
||||
|
||||
# Ignore build artifacts
|
||||
*.deb
|
||||
build/
|
||||
tmp/
|
||||
|
||||
# Ignore common system files
|
||||
.DS_Store
|
||||
*.swp
|
120
Packages
120
Packages
@ -1,120 +0,0 @@
|
||||
Package: gitea
|
||||
Version: 1.23.5-2
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.5_2_amd64.deb
|
||||
Size: 35307980
|
||||
MD5sum: 2849112923fc11c0a0f666ca83ec2019
|
||||
SHA1: 32b2131cb819e6c2db61802e9c750aa0c67a3ad5
|
||||
SHA256: 4da9b61a9a3a6b94b09e74a6ed1ca0dee4015e606a15a46745cfeb9c8c80ee95
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.5-2
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.5_2_arm64.deb
|
||||
Size: 32041932
|
||||
MD5sum: 659e6db5724caf276e8f6dc389dada25
|
||||
SHA1: 5cc0bd21dd468a82824fe8a81256b44e7a2b9b56
|
||||
SHA256: 6d77c6f9d174224df86e5b23505eafa8fdca40f323362e396408de7988427ad2
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.7
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.7_amd64.deb
|
||||
Size: 35288076
|
||||
MD5sum: 2f15cb8f99c44a1de903ef0237f09c1f
|
||||
SHA1: 0ed00440d23cc37444aeadd00080e516f8813f0d
|
||||
SHA256: b70adbe7395976b6ae7a652eb47205d8db21a975d872d36c477093f9ba2fa5c5
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.7
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.7_arm64.deb
|
||||
Size: 32011536
|
||||
MD5sum: 0dd9894e569cd4d7f7ddc0c42e77308b
|
||||
SHA1: aeb93b9b362fe24bea7a1b8693ae4b59a732fd0b
|
||||
SHA256: ce34ee071c8aa22925e0fd84f83966a0158f9f98b7a3c0124b1400827f503926
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.8
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.8_amd64.deb
|
||||
Size: 35339548
|
||||
MD5sum: e3052400abd63c0bccf0f2a9f3d13ca7
|
||||
SHA1: 04e0527de8da0a9ed09f0543e5b05ac6046643ff
|
||||
SHA256: 07ece5dab85401469a04f6a0634399dedb6b9e46775177378c134ed18c6cb839
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.8
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.8_arm64.deb
|
||||
Size: 32061164
|
||||
MD5sum: 9f86fbf72366525bf9e11d18d8fa2892
|
||||
SHA1: 7bd08bdc59ee46d89e5720b61d2d52b22c75a47e
|
||||
SHA256: e64b76447584d7a1fb4b7fd9e3866d6d89b47394435e555177eda294ccf5bbc7
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.24.0
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.24.0_amd64.deb
|
||||
Size: 34370008
|
||||
MD5sum: efcf23f930038c0f182b061f72f44caa
|
||||
SHA1: b213e0cce59bd8a3640a8a473887249d021865e0
|
||||
SHA256: 14fb3764ec2d53e220e3267e27a41f0cba472a6efea863254c6ffbf2dd859a0e
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.24.0
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.24.0_arm64.deb
|
||||
Size: 30929960
|
||||
MD5sum: e7fd7557182730641036ea91663abce2
|
||||
SHA1: 95cf4e1a1e1b47d5fe645a6d96f0e65aa2fb8f93
|
||||
SHA256: 4c8de2a2598ea21cd62bda9188eb8195fc1f844f59d56cf2b8a68c3d8805f480
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
BIN
Packages.gz
BIN
Packages.gz
Binary file not shown.
24
Release
24
Release
@ -1,24 +0,0 @@
|
||||
Architectures: amd64 arm64
|
||||
Codename: stable
|
||||
Components: main
|
||||
Date: Wed, 11 Jun 2025 00:00:33 +0000
|
||||
Description: Gitea Debian Packages
|
||||
Label: Gitea Debian Repository
|
||||
Origin: 24unix
|
||||
Suite: stable
|
||||
MD5Sum:
|
||||
2d349ebfe0f1f84ff811a59e87c7da39 3864 Packages
|
||||
4472d107796f792547bcc1d369908c97 1112 Packages.gz
|
||||
14eded99b964423199d61f9715326fcd 194 Release
|
||||
SHA1:
|
||||
95fba98ac63e44c6d729e448a790a529a8181249 3864 Packages
|
||||
e85a12ef3196bec116b7e4ccd37994dc267dd2a1 1112 Packages.gz
|
||||
9627139b818f67d6eb13177c89bd1b49b3929c5a 194 Release
|
||||
SHA256:
|
||||
bbec0d25ff51334a5be01406dc4adc8efb8c2ec067671d9cca70eb5eec42eb18 3864 Packages
|
||||
683538eec179c03c9c08a266d32da83c2508ae100c89eadbe02025d46b0ad960 1112 Packages.gz
|
||||
6938060611bb80bc964ac8dc1c5f62e62273685ca4124a07a57f00354ec03407 194 Release
|
||||
SHA512:
|
||||
9de505e23467a261ec0d407c789e64222961054fa547e6458105e012b29fb8b14e86fa9fcdd85205307788dbda710b672768fdece9aede080c957f459bc1f086 3864 Packages
|
||||
e824f4ff72d27d5e151dda0f30cc0beefafe1ddc40d2378026aa0b813e6d1cd97d03b6862dfb9f1dcfb8ff8fe81d6002c815dff4aa0207e5d1b4582bb8ce03f7 1112 Packages.gz
|
||||
7ce252cb11c3d414e82e1cb73e5c1d241d2f11652a552b1dff8be20574d0a14ff335c3dc59ed1ed8b8dae87714913e5cb8dc8f82b2317f5cfde2d017b66b76b1 194 Release
|
7
amd64/DEBIAN/control
Normal file
7
amd64/DEBIAN/control
Normal file
@ -0,0 +1,7 @@
|
||||
Package: gitea
|
||||
Version: 1.23.4-1
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
11
amd64/DEBIAN/postinst
Executable file
11
amd64/DEBIAN/postinst
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Ensure systemd is aware of the new service file
|
||||
systemctl daemon-reload
|
||||
|
||||
# Enable and start Gitea service
|
||||
systemctl enable gitea
|
||||
systemctl restart gitea || true
|
||||
|
||||
exit 0
|
7
amd64/DEBIAN/prerm
Executable file
7
amd64/DEBIAN/prerm
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Stop the Gitea service before updating/removal
|
||||
systemctl stop gitea || true
|
||||
|
||||
exit 0
|
19
amd64/etc/systemd/system/gitea.service
Normal file
19
amd64/etc/systemd/system/gitea.service
Normal file
@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
Requires=mariadb.service
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=gitea
|
||||
Group=gitea
|
||||
WorkingDirectory=/opt/gitea/
|
||||
ExecStart=/opt/gitea/bin/gitea web --config /etc/gitea/app.ini
|
||||
Restart=always
|
||||
Environment="GITEA_WORK_DIR=/opt/gitea/gitea"
|
||||
Environment="GITEA_CUSTOM=/opt/gitea/custom"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,7 +0,0 @@
|
||||
APT::FTPArchive::Release::Origin "24unix";
|
||||
APT::FTPArchive::Release::Label "Gitea Debian Repository";
|
||||
APT::FTPArchive::Release::Suite "stable";
|
||||
APT::FTPArchive::Release::Codename "stable";
|
||||
APT::FTPArchive::Release::Architectures "amd64 arm64";
|
||||
APT::FTPArchive::Release::Components "main";
|
||||
APT::FTPArchive::Release::Description "Gitea Debian Packages";
|
7
arm64/DEBIAN/control
Normal file
7
arm64/DEBIAN/control
Normal file
@ -0,0 +1,7 @@
|
||||
Package: gitea
|
||||
Version: 1.23.4-1
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
11
arm64/DEBIAN/postinst
Executable file
11
arm64/DEBIAN/postinst
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Ensure systemd is aware of the new service file
|
||||
systemctl daemon-reload
|
||||
|
||||
# Enable and start Gitea service
|
||||
systemctl enable gitea
|
||||
systemctl restart gitea || true
|
||||
|
||||
exit 0
|
7
arm64/DEBIAN/prerm
Executable file
7
arm64/DEBIAN/prerm
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Stop the Gitea service before updating/removal
|
||||
systemctl stop gitea || true
|
||||
|
||||
exit 0
|
19
arm64/etc/systemd/system/gitea.service
Normal file
19
arm64/etc/systemd/system/gitea.service
Normal file
@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
Requires=mariadb.service
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=gitea
|
||||
Group=gitea
|
||||
WorkingDirectory=/opt/gitea/
|
||||
ExecStart=/opt/gitea/bin/gitea web --config /etc/gitea/app.ini
|
||||
Restart=always
|
||||
Environment="GITEA_WORK_DIR=/opt/gitea/gitea"
|
||||
Environment="GITEA_CUSTOM=/opt/gitea/custom"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
60
build.sh
Executable file
60
build.sh
Executable file
@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
set -e # Exit on error
|
||||
|
||||
# Set Variables
|
||||
VERSION=$(curl -s https://dl.gitea.com/gitea/version.json | jq -r '.latest.version')
|
||||
ARCHS=("amd64" "arm64")
|
||||
GITEA_BASE_URL="https://dl.gitea.com/gitea/${VERSION}"
|
||||
FILES=("xz" "xz.asc" "xz.sha256" "xz.sha256.asc")
|
||||
|
||||
# Download Gitea Binaries and Signatures
|
||||
for ARCH in "${ARCHS[@]}"; do
|
||||
echo "Downloading Gitea ${VERSION} for ${ARCH}..."
|
||||
for FILE in "${FILES[@]}"; do
|
||||
FILE_NAME="gitea-${VERSION}-linux-${ARCH}.${FILE}"
|
||||
FILE_URL="${GITEA_BASE_URL}/${FILE_NAME}"
|
||||
TARGET_FILE="dist/${ARCH}/${FILE_NAME}"
|
||||
if [[ -f "$TARGET_FILE" ]]; then
|
||||
echo "✅ File already exists: $TARGET_FILE (Skipping)"
|
||||
else
|
||||
echo "⬇️ Downloading: $FILE_URL"
|
||||
wget -q "$FILE_URL" -O "$TARGET_FILE"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# Verify GPG Signatures
|
||||
for ARCH in "${ARCHS[@]}"; do
|
||||
echo "Verifying GPG signature for ${ARCH}..."
|
||||
gpg --verify "dist/${ARCH}/gitea-${VERSION}-linux-${ARCH}.xz.asc" "dist/${ARCH}/gitea-${VERSION}-linux-${ARCH}.xz"
|
||||
gpg --verify "dist/${ARCH}/gitea-${VERSION}-linux-${ARCH}.xz.sha256.asc" "dist/${ARCH}/gitea-${VERSION}-linux-${ARCH}.xz.sha256"
|
||||
done
|
||||
|
||||
|
||||
# Verify Checksums
|
||||
for ARCH in "${ARCHS[@]}"; do
|
||||
echo "Verifying SHA256 checksum for ${ARCH}..."
|
||||
(cd "dist/${ARCH}" && sha256sum -c gitea-${VERSION}-linux-${ARCH}.xz.sha256)
|
||||
done
|
||||
|
||||
# expand the Gitea binray to the target
|
||||
for ARCH in "${ARCHS[@]}"; do
|
||||
xz -dc "dist/${ARCH}/gitea-${VERSION}-linux-${ARCH}.xz" > "${ARCH}/opt/gitea/bin/gitea" || { echo "❌ Extraction failed for ${ARCH}"; exit 1; }
|
||||
|
||||
# Verify the extracted file isn't empty
|
||||
if [[ ! -s "${ARCH}/opt/gitea/bin/gitea" ]]; then
|
||||
echo "❌ Extracted file is empty for ${ARCH}. Something went wrong!"
|
||||
exit 1
|
||||
fi
|
||||
chmod +x "${ARCH}/opt/gitea/bin/gitea"
|
||||
done
|
||||
|
||||
# Build Debian Packages
|
||||
for ARCH in "${ARCHS[@]}"; do
|
||||
echo "Building package for ${ARCH}..."
|
||||
dpkg-deb --build "${ARCH}" "gitea_${VERSION}_${ARCH}.deb"
|
||||
done
|
||||
|
||||
echo "All packages built successfully:"
|
||||
ls -lh gitea_${VERSION}_*.deb
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
override
1
override
@ -1 +0,0 @@
|
||||
gitea admin extra
|
Reference in New Issue
Block a user