add logrotate subpackages
Build Alpine Packages / preflight (pull_request) Successful in 14s
Build Alpine Packages / build (gitea) (pull_request) Successful in 1m0s
Build Alpine Packages / build (lavinmq) (pull_request) Successful in 2m51s
Build Alpine Packages / build (nifi) (pull_request) Successful in 5s
Build Alpine Packages / build (seaweedfs) (pull_request) Successful in 39m45s
Build Alpine Packages / build (greptimedb) (pull_request) Successful in 1h31m44s
Build Alpine Packages / verify-and-publish (pull_request) Successful in 1m42s
Build Alpine Packages / preflight (pull_request) Successful in 14s
Build Alpine Packages / build (gitea) (pull_request) Successful in 1m0s
Build Alpine Packages / build (lavinmq) (pull_request) Successful in 2m51s
Build Alpine Packages / build (nifi) (pull_request) Successful in 5s
Build Alpine Packages / build (seaweedfs) (pull_request) Successful in 39m45s
Build Alpine Packages / build (greptimedb) (pull_request) Successful in 1h31m44s
Build Alpine Packages / verify-and-publish (pull_request) Successful in 1m42s
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Joachim Schlöffel <joachim.schloeffel@financial-service-plus.de>
|
||||
pkgname=gitea
|
||||
pkgver=28.0.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Self-hosted Git service written in Go"
|
||||
url="https://about.gitea.com/"
|
||||
arch="x86_64 aarch64"
|
||||
@@ -14,6 +14,7 @@ pkgusers="gitea"
|
||||
pkggroups="www-data"
|
||||
subpackages="
|
||||
$pkgname-doc
|
||||
$pkgname-logrotate:_logrotate:noarch
|
||||
$pkgname-openrc:_openrc:noarch
|
||||
"
|
||||
options="!check !strip !tracedeps"
|
||||
@@ -33,6 +34,7 @@ source="
|
||||
$pkgname-src-$pkgver.tar.gz::https://github.com/go-gitea/gitea/releases/download/v$pkgver/gitea-src-$pkgver.tar.gz
|
||||
gitea.ini
|
||||
gitea.initd
|
||||
gitea.logrotate
|
||||
"
|
||||
builddir="$srcdir/gitea-src-$pkgver"
|
||||
|
||||
@@ -68,10 +70,19 @@ _openrc() {
|
||||
install -Dm755 "$srcdir"/gitea.initd "$subpkgdir"/etc/init.d/gitea
|
||||
}
|
||||
|
||||
_logrotate() {
|
||||
pkgdesc="Log rotation configuration for $pkgname"
|
||||
depends="$pkgname=$pkgver-r$pkgrel logrotate"
|
||||
|
||||
install -Dm644 "$srcdir"/gitea.logrotate \
|
||||
"$subpkgdir"/etc/logrotate.d/$pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
434eedf3cf9348b708d15170f3f47486e20253ef607ef5e4c8494e5a833342c1580179d6de6b8b29278fc2d570d24380ace142530102d0e14644891ff0e7bd4d gitea-28.0.0-linux-amd64.xz
|
||||
a11dc1fff26d6e43541cbfa827be5cb95cec5b0336c944a1bbd294fdc212ca5eac983892879f453f3ab7eb0ddb7ea812a37c7e5aab2b8e1f886a3c790741e802 gitea-28.0.0-linux-arm64.xz
|
||||
bd5b600754388c6fe15ee91929231e804c74f4e694f892904e363ac9b923e9957c1f4f3a2489e216b7b05763022d6b8fdb9e01a49271c6f64313277a9a304797 gitea-src-28.0.0.tar.gz
|
||||
4e20b24c34af01a27589a13d9140d559909cc44507febe5de692d7bc154d65f4b01b79d2f1dcce9fed77b60ac3b1a52cc0ec72161e5a2484a4c718d26d3c630d gitea.ini
|
||||
9474d707df8b049c93ec4642f71195adff699e1e812f315cac4295b3ab29eeb9ba8b83bf3307c50b04e072a4a9dc4c4f84ac490ee22291bd50015009795c1598 gitea.initd
|
||||
456a565123b46c0c3a36adbde4c881ee04557a2f1ba492a76205c28f72598bf3b7b96192ddeae4f9ab197fdc75bb5e10a3421574e1bf831192220b4540bb39fc gitea.logrotate
|
||||
"
|
||||
|
||||
@@ -19,6 +19,13 @@ rc-update add gitea default
|
||||
rc-service gitea start
|
||||
```
|
||||
|
||||
Install daily rotation for the OpenRC service log, retaining 14 compressed
|
||||
archives:
|
||||
|
||||
```sh
|
||||
apk add gitea-logrotate
|
||||
```
|
||||
|
||||
Refresh checksums:
|
||||
|
||||
```sh
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/var/log/gitea/http.log {
|
||||
daily
|
||||
rotate 14
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
su gitea www-data
|
||||
}
|
||||
@@ -5,7 +5,7 @@ repo_root="${REPO_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../../.." &&
|
||||
# shellcheck source=scripts/apk/test-install-lib.sh
|
||||
. "${repo_root}/scripts/apk/test-install-lib.sh"
|
||||
|
||||
apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-gitea}" "${PACKAGE_VERSION:-1.27.0-r1}" <<'SCRIPT'
|
||||
apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-gitea}" "${PACKAGE_VERSION:-28.0.0-r1}" <<'SCRIPT'
|
||||
set -e
|
||||
|
||||
if [ -n "${ALPINE_REPOSITORY_URL}" ]; then
|
||||
@@ -29,7 +29,7 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-gitea}" "${PACKAGE_VERSION:
|
||||
printf "%s\n" /repo >> /etc/apk/repositories
|
||||
fi
|
||||
apk update
|
||||
apk add --upgrade "${PACKAGE_NAME}" "${PACKAGE_NAME}-doc" "${PACKAGE_NAME}-openrc"
|
||||
apk add --upgrade "${PACKAGE_NAME}" "${PACKAGE_NAME}-doc" "${PACKAGE_NAME}-logrotate" "${PACKAGE_NAME}-openrc"
|
||||
installed_after="$(apk list -I "${PACKAGE_NAME}" | awk "{print \$1}")"
|
||||
printf "Installed package after local upgrade: %s\n" "${installed_after}"
|
||||
test "${installed_after}" = "${PACKAGE_NAME}-${PACKAGE_VERSION}"
|
||||
@@ -45,6 +45,9 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-gitea}" "${PACKAGE_VERSION:
|
||||
test -d /usr/share/webapps/gitea/public
|
||||
test -d /usr/share/webapps/gitea/templates
|
||||
test -f /etc/init.d/gitea
|
||||
test -f /etc/logrotate.d/gitea
|
||||
apk info -e logrotate
|
||||
logrotate -d /etc/logrotate.conf
|
||||
|
||||
gitea --version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user