Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5db2546c03 | |||
| 36bb7876c7 | |||
| e76e79dc39 | |||
| 19a1c01ec2 | |||
| 85fc8de656 | |||
| 6706a0c4b5 | |||
| c93333b705 | |||
| d12e9fe5ce | |||
| c0dd39b24b | |||
| b608d84167 | |||
| e2ec297c6f | |||
| 2445a59d9d | |||
| 7e969aeed3 | |||
| 26960a82bd | |||
| 3a64c79d51 |
-11
@@ -1,11 +0,0 @@
|
||||
# Ignore downloaded binaries and verification files
|
||||
dist/
|
||||
|
||||
# Ignore build artifacts
|
||||
*.deb
|
||||
build/
|
||||
tmp/
|
||||
|
||||
# Ignore common system files
|
||||
.DS_Store
|
||||
*.swp
|
||||
@@ -0,0 +1,120 @@
|
||||
Package: gitea
|
||||
Version: 1.23.4-1
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.4_amd64.deb
|
||||
Size: 35288572
|
||||
MD5sum: 7dadcfed1bdf561715571ce50058b0d1
|
||||
SHA1: ecc68eb72cb627928c5553ffa7c2ec178086239c
|
||||
SHA256: 7546c54b7e259be51f459fff3676ef86a594a52bd3e53b0be81505ef412f99bf
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.4-1
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.4_arm64.deb
|
||||
Size: 31990440
|
||||
MD5sum: 864283afd3a44f1e151e1dab4ad71ab8
|
||||
SHA1: e7f9766b805aebf7991fa957a37fb8792d2c15dd
|
||||
SHA256: 6c0f70d6ea94184681813e4449bcf941ee514ead77e13ab9820584397034eba4
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.4-7
|
||||
Architecture: arm64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.4_7_arm64.deb
|
||||
Size: 32021712
|
||||
MD5sum: d87bc40f110188e73c5f5f262af8acdd
|
||||
SHA1: 81328f837f1d8db8af30237fa5e98729aa4e66b3
|
||||
SHA256: a687701d40fb219c7628f985c8afa88df399ca3ba23142a19df666669416051f
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
Package: gitea
|
||||
Version: 1.23.4-7
|
||||
Architecture: amd64
|
||||
Maintainer: Micha Espey <tracer@24unix.net>
|
||||
Depends: adduser, ca-certificates, git, openssh-server, gpg, jq
|
||||
Filename: ./gitea_1.23.4_7_amd64.deb
|
||||
Size: 35302056
|
||||
MD5sum: 6228a5c5689c7332bae22066d5398341
|
||||
SHA1: 70c3a1310ce9b194ca9025663820d624dc08e3c6
|
||||
SHA256: 0c575e292f4330baf59a1fec95d5e1ab53e162116bcb46d9bc261060ee31c20d
|
||||
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: 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: 35287112
|
||||
MD5sum: 57e95dc19c19c8fc58b5d838421357d0
|
||||
SHA1: 6c20edaa47209314d3c1081498fcac0077c212cc
|
||||
SHA256: 55ae184dad0dbe37184257110d85c9e1bb614cffa1d9757d433092fdb139005e
|
||||
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: 32010932
|
||||
MD5sum: 65b4b0e8fc649b5f02706e7c902b2cd5
|
||||
SHA1: f8776afada92bccfea08132641bae989d391e3b0
|
||||
SHA256: c07bf8531bc62a858c72cdc38908c49aa69407543c4fa166bd4b90c74c9a4e26
|
||||
Section: extra
|
||||
Priority: admin
|
||||
Description: Gitea - Git with a cup of tea
|
||||
A painless self-hosted Git service.
|
||||
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
Architectures: amd64 arm64
|
||||
Codename: stable
|
||||
Components: main
|
||||
Date: Sun, 04 May 2025 16:27:38 +0000
|
||||
Description: Gitea Debian Packages
|
||||
Label: Gitea Debian Repository
|
||||
Origin: 24unix
|
||||
Suite: stable
|
||||
MD5Sum:
|
||||
8521a6495e2c8041968c909603c43419 3876 Packages
|
||||
2149f97fa5db88bdbca58e27ca3c1d96 1103 Packages.gz
|
||||
fc4b23d272044b2e552d50e879e80cba 194 Release
|
||||
SHA1:
|
||||
7e497dbe249e62b5c5a286c098f10ff88e877878 3876 Packages
|
||||
fc02c2c1e5c341e1c6af79bd848ab8125885fd43 1103 Packages.gz
|
||||
b9bbcd5677480a9c9846d0d32ec423af30ebb08b 194 Release
|
||||
SHA256:
|
||||
a57c8ce2aebd60a202d038edbfbd461d3425616b796af0736541f640fffd5f95 3876 Packages
|
||||
88142a2779b2c221a1be48f46e26845a6bf7df0b998e6c103349eb199aa1f915 1103 Packages.gz
|
||||
8964516d0717a5938aedfd4ac2d3ea390804cfc9f69fac38a9d7238a44f1e7c3 194 Release
|
||||
SHA512:
|
||||
916f1e3915b74deaa89963dcdd12462634424c711a8c98c870de254c8bcfa39f3b648bce5c57f7865ec6798c41f82519655589e8ebfd8f74922ebf6689335887 3876 Packages
|
||||
088875ff995fffdaa5a7dd49169a19e6b7aeb919e987488fd951df8539d8c1d7344969d77869a05009f16462c54921653d9868e998fcee9bfc3ec00c43f60b10 1103 Packages.gz
|
||||
76842ec93071bb35cc126d0228a353c16467b2f9f4b364cae0abffdca22617ee2884876dbaaf26f810b3dfac925fcee71311cdeac1953506c660ad86816ed16a 194 Release
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../shared/conffiles
|
||||
@@ -1,7 +0,0 @@
|
||||
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.
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/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
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
../../../../../shared/app.ini
|
||||
@@ -0,0 +1,7 @@
|
||||
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";
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../shared/conffiles
|
||||
@@ -1,7 +0,0 @@
|
||||
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.
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/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
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Stop the Gitea service before updating/removal
|
||||
systemctl stop gitea || true
|
||||
|
||||
exit 0
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,19 +0,0 @@
|
||||
[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
|
||||
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
../../../../../shared/app.ini
|
||||
@@ -1,60 +0,0 @@
|
||||
#!/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
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
2b74aba2edeeca5ac65847a21c2639bf9b0fdbea94ea389fa5afd2b7f87b1b92 gitea-1.23.4-linux-amd64.xz
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
57ddfffb3b0e0491b8b4a965d02e24ceace13a9cff13cff56928c7553c8badf1 gitea-1.23.5-linux-amd64.xz
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
62b5ba4d9f6494ef397890c5caadb94fba90afd55fbd98c2d2b12be0ec002ce5 gitea-1.23.4-linux-arm64.xz
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
b8131a7cbfadc115125bb43d28d93b775da76ce09968726d94d12bec54dcf7da gitea-1.23.5-linux-arm64.xz
|
||||
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.
Binary file not shown.
+2812
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
/etc/systemd/system/gitea.service
|
||||
/etc/gitea/app.ini
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Ensure Gitea user and group exist
|
||||
if ! id gitea >/dev/null 2>&1; then
|
||||
adduser --system --group --home /opt/gitea gitea
|
||||
fi
|
||||
|
||||
# Ensure config directory exists
|
||||
mkdir -p /etc/gitea
|
||||
chown -R gitea:gitea /etc/gitea
|
||||
chmod 750 /etc/gitea
|
||||
|
||||
# Copy default config if not present
|
||||
if [ ! -f /etc/gitea/app.ini ]; then
|
||||
echo "Creating default /etc/gitea/app.ini"
|
||||
cp /usr/share/gitea/defaults/app.ini /etc/gitea/app.ini
|
||||
chown gitea:gitea /etc/gitea/app.ini
|
||||
chmod 640 /etc/gitea/app.ini
|
||||
fi
|
||||
|
||||
# Reload systemd
|
||||
systemctl daemon-reload
|
||||
|
||||
# Enable and start Gitea service
|
||||
systemctl enable gitea.service
|
||||
systemctl start gitea.service
|
||||
Reference in New Issue
Block a user