From c9543e113ba5a224184073573ba6c7148baf9530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Schl=C3=B6ffel?= Date: Tue, 6 Oct 2026 22:39:50 +0200 Subject: [PATCH 1/3] add logrotate subpackages --- .gitignore | 1 + README.md | 2 +- packaging/alpine/local/gitea/APKBUILD | 13 ++++++++++++- packaging/alpine/local/gitea/README.md | 7 +++++++ packaging/alpine/local/gitea/gitea.logrotate | 10 ++++++++++ .../alpine/local/gitea/scripts/test-install.sh | 7 +++++-- packaging/alpine/local/greptimedb/APKBUILD | 13 ++++++++++++- packaging/alpine/local/greptimedb/README.md | 2 ++ .../alpine/local/greptimedb/greptimedb.logrotate | 10 ++++++++++ .../alpine/local/greptimedb/scripts/test-install.sh | 4 ++++ packaging/alpine/local/lavinmq/APKBUILD | 13 ++++++++++++- packaging/alpine/local/lavinmq/README.md | 7 +++++++ packaging/alpine/local/lavinmq/lavinmq.logrotate | 10 ++++++++++ .../alpine/local/lavinmq/scripts/test-install.sh | 5 ++++- packaging/alpine/local/seaweedfs/APKBUILD | 13 ++++++++++++- packaging/alpine/local/seaweedfs/README.md | 9 +++++++++ .../alpine/local/seaweedfs/scripts/test-install.sh | 4 ++++ .../alpine/local/seaweedfs/seaweedfs.logrotate | 10 ++++++++++ 18 files changed, 132 insertions(+), 8 deletions(-) create mode 100644 packaging/alpine/local/gitea/gitea.logrotate create mode 100644 packaging/alpine/local/greptimedb/greptimedb.logrotate create mode 100644 packaging/alpine/local/lavinmq/lavinmq.logrotate create mode 100644 packaging/alpine/local/seaweedfs/seaweedfs.logrotate diff --git a/.gitignore b/.gitignore index 0b7cafb..4fc3cbe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ packages/ packaging/alpine/*/*/pkg/ packaging/alpine/*/*/src/ +packaging/alpine/*/*/tmp/ packaging/alpine/*/*/*.apk packaging/alpine/*/*/*.tar.* !packaging/alpine/*/*/*-vendor.tar.gz diff --git a/README.md b/README.md index 60f4036..e5434ca 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ https://code.factoring.digital/api/packages/public/alpine/v3.24/alpine-packages | [SeaweedFS](packaging/alpine/local/seaweedfs/README.md) | `seaweedfs` | `4.48` | Binary repackaging of official upstream release tarballs | Ships current SeaweedFS features with Alpine OpenRC role splits. | | [GreptimeDB](packaging/alpine/local/greptimedb/README.md) | `greptimedb` | `1.2.1` | Source build from upstream release | Provides a current GreptimeDB build and component OpenRC packages before it is available from Alpine community. | | [LavinMQ](packaging/alpine/local/lavinmq/README.md) | `lavinmq` | `2.10.1` | Source build from upstream release | Provides a current LavinMQ build on Alpine 3.24 with matching Crystal support. | -| [Gitea](packaging/alpine/local/gitea/README.md) | `gitea` | `1.27.3` | Binary repackaging of official upstream release binaries | Ships current Gitea releases with the expected Alpine runtime layout and OpenRC service. | +| [Gitea](packaging/alpine/local/gitea/README.md) | `gitea` | `28.0.0` | Binary repackaging of official upstream release binaries | Ships current Gitea releases with the expected Alpine runtime layout and OpenRC service. | | [Apache NiFi](packaging/alpine/local/nifi/README.md) | `nifi` | `2.12.0` | Binary repackaging of the official Standard distribution | Provides Apache NiFi 2 with a secure default configuration and OpenRC service. | ## Use In Production diff --git a/packaging/alpine/local/gitea/APKBUILD b/packaging/alpine/local/gitea/APKBUILD index 518b5e1..daa3293 100644 --- a/packaging/alpine/local/gitea/APKBUILD +++ b/packaging/alpine/local/gitea/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Joachim Schlöffel 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 " diff --git a/packaging/alpine/local/gitea/README.md b/packaging/alpine/local/gitea/README.md index 4843f44..3e6ee9f 100644 --- a/packaging/alpine/local/gitea/README.md +++ b/packaging/alpine/local/gitea/README.md @@ -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 diff --git a/packaging/alpine/local/gitea/gitea.logrotate b/packaging/alpine/local/gitea/gitea.logrotate new file mode 100644 index 0000000..c62228a --- /dev/null +++ b/packaging/alpine/local/gitea/gitea.logrotate @@ -0,0 +1,10 @@ +/var/log/gitea/http.log { + daily + rotate 14 + missingok + notifempty + compress + delaycompress + copytruncate + su gitea www-data +} diff --git a/packaging/alpine/local/gitea/scripts/test-install.sh b/packaging/alpine/local/gitea/scripts/test-install.sh index b15b0b1..1c39c25 100755 --- a/packaging/alpine/local/gitea/scripts/test-install.sh +++ b/packaging/alpine/local/gitea/scripts/test-install.sh @@ -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 diff --git a/packaging/alpine/local/greptimedb/APKBUILD b/packaging/alpine/local/greptimedb/APKBUILD index 8761e5f..4fc78da 100644 --- a/packaging/alpine/local/greptimedb/APKBUILD +++ b/packaging/alpine/local/greptimedb/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Joachim Schlöffel pkgname=greptimedb pkgver=1.2.1 -pkgrel=3 +pkgrel=4 pkgdesc="Cloud-native observability database for metrics, logs, and traces" url="https://github.com/GreptimeTeam/greptimedb" arch="x86_64" @@ -38,6 +38,7 @@ subpackages=" $pkgname-docs:_docs:noarch $pkgname-flownode-openrc:_openrc_flownode:noarch $pkgname-frontend-openrc:_openrc_frontend:noarch + $pkgname-logrotate:_logrotate:noarch $pkgname-metasrv-openrc:_openrc_metasrv:noarch $pkgname-standalone-openrc:_openrc_standalone:noarch " @@ -53,6 +54,7 @@ source=" greptimedb.flownode.confd greptimedb.frontend.confd greptimedb.initd + greptimedb.logrotate greptimedb.metasrv.confd greptimedb.standalone.confd metasrv.toml @@ -136,6 +138,14 @@ _openrc_frontend() { _openrc_service frontend; } _openrc_metasrv() { _openrc_service metasrv; } _openrc_standalone() { _openrc_service standalone; } +_logrotate() { + pkgdesc="Log rotation configuration for $pkgname" + depends="$pkgname=$pkgver-r$pkgrel logrotate" + + install -Dm644 "$srcdir"/greptimedb.logrotate \ + "$subpkgdir"/etc/logrotate.d/$pkgname +} + _docs() { pkgdesc="$pkgdesc (configuration examples and reference)" depends="" @@ -154,6 +164,7 @@ e3e19ab3c7a345ecf8cf0a507f7fc95dd3b036a4a797385cf77fcf1999f2e4f053042c7bbda8de73 daf8efacc8bf2b74abd9f4900f889585295b57333a8a562a722de0596d35f25d5f9149e0879f4140bfdf727caa59c3f55b1380212722df92c588d912275530b8 greptimedb.flownode.confd e3e61b1df00f8172a3b1d4a0d37ed2574a8c5cd27676b4e2ce14d15ad8933d233baabe8da374f715d00cfaee26f665244c1ba00f70197fcc713c4e9af9c3229e greptimedb.frontend.confd f72f52aa8277fc56eb071b5118990b8f4e09d143634c2f7fc54ed1f5ff065631c8630c45fe90d3db1f3ea0540c1ab3154a383d2000b4c5978e889ca02a1b6564 greptimedb.initd +775b4db7e7bc6127376b22fed8330b952c5027e3bfbfa29bb6ae034e6c75e7fed8ddfc0ad9761f369acd37398dfbd145cfea210828f2fc0bec9be92b051e6a75 greptimedb.logrotate df495367d85844dcba99e5aa01e5a23fd14799b7521a72d9ea00d29fc0e5fbc5c5d06ee88e88d9637e260f8337249a39d2b0115de58da4899824d20bd844254a greptimedb.metasrv.confd 882a79e969cac42adfada22060e6507fb687755a6d266d6728154b3e4da5777d2eaf5ad9bc331ed050448249ca609e6a61977b624d9faf25d83ed975345452cf greptimedb.standalone.confd 8120ec338ebe1330d43b20d9b34a8f5f778ea13cb056febd3c8e9dc189d0de2380b90e5474a0990294d7004827c6133d44d2dd3e32d463b9259c47c82592d257 metasrv.toml diff --git a/packaging/alpine/local/greptimedb/README.md b/packaging/alpine/local/greptimedb/README.md index 291e38e..b2169e9 100644 --- a/packaging/alpine/local/greptimedb/README.md +++ b/packaging/alpine/local/greptimedb/README.md @@ -28,6 +28,8 @@ Installs `/usr/bin/greptime` and component OpenRC packages: - `greptimedb-datanode-openrc`: `greptime datanode start` - `greptimedb-flownode-openrc`: `greptime flownode start` - `greptimedb-frontend-openrc`: `greptime frontend start` +- `greptimedb-logrotate`: daily rotation for the OpenRC service logs, retaining + 14 compressed archives Default TOML files are installed in `/etc/greptimedb`. Standalone ports: diff --git a/packaging/alpine/local/greptimedb/greptimedb.logrotate b/packaging/alpine/local/greptimedb/greptimedb.logrotate new file mode 100644 index 0000000..9231da9 --- /dev/null +++ b/packaging/alpine/local/greptimedb/greptimedb.logrotate @@ -0,0 +1,10 @@ +/var/log/greptimedb/greptimedb.*.log { + daily + rotate 14 + missingok + notifempty + compress + delaycompress + copytruncate + su greptimedb greptimedb +} diff --git a/packaging/alpine/local/greptimedb/scripts/test-install.sh b/packaging/alpine/local/greptimedb/scripts/test-install.sh index 4e5faa2..ae7150a 100755 --- a/packaging/alpine/local/greptimedb/scripts/test-install.sh +++ b/packaging/alpine/local/greptimedb/scripts/test-install.sh @@ -26,6 +26,7 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-greptimedb}" "${PACKAGE_VER "${PACKAGE_NAME}-docs" \ "${PACKAGE_NAME}-flownode-openrc" \ "${PACKAGE_NAME}-frontend-openrc" \ + "${PACKAGE_NAME}-logrotate" \ "${PACKAGE_NAME}-metasrv-openrc" \ "${PACKAGE_NAME}-standalone-openrc" @@ -34,5 +35,8 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-greptimedb}" "${PACKAGE_VER ls -1 /etc/greptimedb test -f "/usr/share/doc/${PACKAGE_NAME}/config/config.md" test -f "/usr/share/doc/${PACKAGE_NAME}/config/standalone.example.toml" + test -f /etc/logrotate.d/greptimedb + apk info -e logrotate + logrotate -d /etc/logrotate.conf find /etc/init.d -maxdepth 1 -name "greptimedb.*" -print | sort SCRIPT diff --git a/packaging/alpine/local/lavinmq/APKBUILD b/packaging/alpine/local/lavinmq/APKBUILD index 8a8b696..ee83f00 100644 --- a/packaging/alpine/local/lavinmq/APKBUILD +++ b/packaging/alpine/local/lavinmq/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Joachim Schlöffel pkgname=lavinmq pkgver=2.10.1 -pkgrel=0 +pkgrel=1 pkgdesc="High-performance AMQP and MQTT message queue server" url="https://github.com/cloudamqp/lavinmq" arch="x86_64" @@ -26,6 +26,7 @@ pkgusers="lavinmq" pkggroups="lavinmq" subpackages=" $pkgname-doc + $pkgname-logrotate:_logrotate:noarch $pkgname-openrc:_openrc:noarch " source=" @@ -34,6 +35,7 @@ source=" $pkgname-$pkgver-assets.tar.gz lavinmq.confd lavinmq.initd + lavinmq.logrotate use-vendored-build-inputs.patch " @@ -71,11 +73,20 @@ _openrc() { "$subpkgdir"/etc/conf.d/lavinmq } +_logrotate() { + pkgdesc="Log rotation configuration for $pkgname" + depends="$pkgname=$pkgver-r$pkgrel logrotate" + + install -Dm644 "$srcdir"/lavinmq.logrotate \ + "$subpkgdir"/etc/logrotate.d/$pkgname +} + sha512sums=" 1c2c932a0698227abfe8353988ea75b48f9048f183d85410797af5bc14495e2cb4497e72acc8fc9ff9ef8f78e8ebb648a1b40b5cf7f1b86e18597d10297417ff lavinmq-2.10.1.tar.gz d0dfdd5c0e474024f57deb9e31c76e3f176e798c8d21dea53d3aea1b05436bd03fa34e69ccddf322bc89adedce5f379df5a316cddbbdfe12520e5bf672ad8228 lavinmq-2.10.1-shards.tar.gz ae3cea2534b211abbcbd1e4fcb6da73dfaf383a19aef1c45f367cba77492cc20a7ce8283fc42f26c0a023149114c369bed307fb8cde0b8f27fba61165092e986 lavinmq-2.10.1-assets.tar.gz 62a609d50f28db960098c4c84ce4f1dad78413366a9a9aca18fe321114d687be3bf7b71924d4ace69bd74383c5ac40d2ee09ae0eef9c1bfe653b97448e42e110 lavinmq.confd 1853196e70297b5c4a2207fde50df735620cf6d99c4994644fd676bffaf863d67300ad7ae771c4bbb86fce1a0485c2a7968cf912c5f5bb878e08b15e5a28ba1b lavinmq.initd +9999dd6a96bd29a3d0bda1b2110af940b15acf1250a0f3ba6c93d16bd62063ab1c1dfa4c237da99bbb401150517abde59e2c7275f4b72c3eb7c90e1ce61d43b9 lavinmq.logrotate e7617099f745ecbf2f0686830d0a1b28044741ebd543798505b5b3c08f1be96b6cc478eb18f6785af49b100c2f49d837775f0721ac27519ddf3f081e681c581c use-vendored-build-inputs.patch " diff --git a/packaging/alpine/local/lavinmq/README.md b/packaging/alpine/local/lavinmq/README.md index bd15ebf..006de39 100644 --- a/packaging/alpine/local/lavinmq/README.md +++ b/packaging/alpine/local/lavinmq/README.md @@ -38,6 +38,13 @@ rc-update add lavinmq default rc-service lavinmq start ``` +Install daily rotation for the OpenRC service log, retaining 14 compressed +archives: + +```sh +apk add lavinmq-logrotate +``` + Wrapper settings in `/etc/conf.d/lavinmq`: - `LAVINMQ_CONFIG`: config file path passed with `--config` diff --git a/packaging/alpine/local/lavinmq/lavinmq.logrotate b/packaging/alpine/local/lavinmq/lavinmq.logrotate new file mode 100644 index 0000000..f71ccc2 --- /dev/null +++ b/packaging/alpine/local/lavinmq/lavinmq.logrotate @@ -0,0 +1,10 @@ +/var/log/lavinmq/lavinmq.log { + daily + rotate 14 + missingok + notifempty + compress + delaycompress + copytruncate + su lavinmq lavinmq +} diff --git a/packaging/alpine/local/lavinmq/scripts/test-install.sh b/packaging/alpine/local/lavinmq/scripts/test-install.sh index e8a2663..7d4a474 100755 --- a/packaging/alpine/local/lavinmq/scripts/test-install.sh +++ b/packaging/alpine/local/lavinmq/scripts/test-install.sh @@ -20,7 +20,7 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-lavinmq}" "${PACKAGE_VERSIO printf "%s\n" /repo >> /etc/apk/repositories fi apk update - apk add "${PACKAGE_NAME}" "${PACKAGE_NAME}-doc" "${PACKAGE_NAME}-openrc" + apk add "${PACKAGE_NAME}" "${PACKAGE_NAME}-doc" "${PACKAGE_NAME}-logrotate" "${PACKAGE_NAME}-openrc" test -x /usr/bin/lavinmq test -x /usr/bin/lavinmqctl @@ -30,6 +30,9 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-lavinmq}" "${PACKAGE_VERSIO test "$(stat -c "%U:%G %a" /var/lib/lavinmq)" = "lavinmq:lavinmq 750" test -f /etc/conf.d/lavinmq test -f /etc/init.d/lavinmq + test -f /etc/logrotate.d/lavinmq + apk info -e logrotate + logrotate -d /etc/logrotate.conf test -f /usr/share/doc/lavinmq/README.md test -f /usr/share/doc/lavinmq/changelog diff --git a/packaging/alpine/local/seaweedfs/APKBUILD b/packaging/alpine/local/seaweedfs/APKBUILD index 0842c5a..9106b00 100644 --- a/packaging/alpine/local/seaweedfs/APKBUILD +++ b/packaging/alpine/local/seaweedfs/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Joachim Schlöffel pkgname=seaweedfs pkgver=4.48 -pkgrel=2 +pkgrel=3 pkgdesc="Distributed storage system for object storage, file systems, and Iceberg tables" url="https://github.com/seaweedfs/seaweedfs" arch="x86_64 aarch64" @@ -15,6 +15,7 @@ subpackages=" $pkgname-bash-completion:_bashcomp:noarch $pkgname-doc $pkgname-filer-openrc:_openrc_filer:noarch + $pkgname-logrotate:_logrotate:noarch $pkgname-master-openrc:_openrc_master:noarch $pkgname-s3-openrc:_openrc_s3:noarch $pkgname-sftp-openrc:_openrc_sftp:noarch @@ -45,6 +46,7 @@ source=" seaweedfs.admin.confd seaweedfs.filer.confd seaweedfs.initd + seaweedfs.logrotate seaweedfs.master.confd seaweedfs.s3.confd seaweedfs.sftp.confd @@ -110,6 +112,14 @@ _openrc_volume() { _openrc_service volume; } _openrc_webdav() { _openrc_service webdav; } _openrc_worker() { _openrc_service worker; } +_logrotate() { + pkgdesc="Log rotation configuration for $pkgname" + depends="$pkgname=$pkgver-r$pkgrel logrotate" + + install -Dm644 "$srcdir"/seaweedfs.logrotate \ + "$subpkgdir"/etc/logrotate.d/$pkgname +} + _worker_lance() { pkgdesc="SeaweedFS Lance table maintenance worker" depends="$pkgname=$pkgver-r$pkgrel libgcc" @@ -150,6 +160,7 @@ b7caad9dff0bb812d4046b8e0285ac4e88a7af3a742a168579df08762da735a025725f78286e17bd 82e2793bf483ffb5b0c8fbe38e6c9df75afe01f824f8414cafd91e4bed5c79c13dae1ca659070401d4968d16ed4b26455b0c6208f777705527bceb2e5f286988 seaweedfs.admin.confd 5ad952c37c62a770327bd70f7349fa677406606f0b9bf03fdc8f6c6804701f1e77710ab20d6153f9e0cfb549ec161d68a3316abab9c59837bbe3f91ee99e5ce0 seaweedfs.filer.confd 19cbd65d701b0995e088f265d88f481f14e214ecbd8a783f7e7b17e811e421a28425f96d073757cc07fbb17e8eb084d14d41f46baee82ee13e043ce0c0c5bde9 seaweedfs.initd +816e763164c2cec66509c213ed56cb633f13d1daf48a511d1a9cfdf692a6ad945cf599cb0e706202b8fd522022ce512eae6170422e478abdf95334b0088ac4cc seaweedfs.logrotate 57ba77519bb266f0117eaadae3af5ae6bc99bb653668ff526202f327df1c8d93973c0e19dae0c53a19e06389868043c04e53f16f01c851b77fe1387e92cc993b seaweedfs.master.confd 22a3ea6c83266a979ea7c848fc74b40fc0f2ade960b273fa11e63d4a72a1328bd688c9918be3e9234cfb19f889fd9c931388bb5c2863cea3500e534b8bd90282 seaweedfs.s3.confd 3e9c41bc61cdd9a4c53ece64d847eca26ab7d0ce0cc98e72462c3dbb225a40de10a02201362801015a9c629d77d5c0d54c7228e9d20111fb6f478b2267d2db98 seaweedfs.sftp.confd diff --git a/packaging/alpine/local/seaweedfs/README.md b/packaging/alpine/local/seaweedfs/README.md index cf01411..50e5559 100644 --- a/packaging/alpine/local/seaweedfs/README.md +++ b/packaging/alpine/local/seaweedfs/README.md @@ -131,6 +131,15 @@ Bash completion: apk add bash-completion seaweedfs-bash-completion ``` +Log rotation for the default OpenRC service logs: + +```sh +apk add seaweedfs-logrotate +``` + +This rotates `/var/log/seaweedfs/seaweedfs.*.log` daily and retains 14 +compressed archives. + ## Upgrade Or Pin Upgrade: diff --git a/packaging/alpine/local/seaweedfs/scripts/test-install.sh b/packaging/alpine/local/seaweedfs/scripts/test-install.sh index c2a058a..c14f4a3 100755 --- a/packaging/alpine/local/seaweedfs/scripts/test-install.sh +++ b/packaging/alpine/local/seaweedfs/scripts/test-install.sh @@ -16,6 +16,7 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-seaweedfs}" "${PACKAGE_VERS seaweedfs-master-openrc \ seaweedfs-volume-openrc \ seaweedfs-filer-openrc \ + seaweedfs-logrotate \ seaweedfs-worker-lance-openrc test -x /usr/bin/weed @@ -30,6 +31,9 @@ apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-seaweedfs}" "${PACKAGE_VERS test -f /etc/init.d/seaweedfs.volume test -f /etc/init.d/seaweedfs.filer test -f /etc/init.d/seaweedfs.worker-lance + test -f /etc/logrotate.d/seaweedfs + apk info -e logrotate + logrotate -d /etc/logrotate.conf test -x /usr/bin/weed-worker /usr/bin/weed-worker --help >/dev/null diff --git a/packaging/alpine/local/seaweedfs/seaweedfs.logrotate b/packaging/alpine/local/seaweedfs/seaweedfs.logrotate new file mode 100644 index 0000000..fc89be8 --- /dev/null +++ b/packaging/alpine/local/seaweedfs/seaweedfs.logrotate @@ -0,0 +1,10 @@ +/var/log/seaweedfs/seaweedfs.*.log { + daily + rotate 14 + missingok + notifempty + compress + delaycompress + copytruncate + su seaweedfs seaweedfs +} -- 2.54.0 From 57fc0e658c19c5a7e8b503ccd983f99fb973255e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Schl=C3=B6ffel?= Date: Tue, 6 Oct 2026 22:54:17 +0200 Subject: [PATCH 2/3] remove artificial package status from readme --- .gitea/workflows/package-status.yml | 30 ----------------------------- README.md | 2 -- 2 files changed, 32 deletions(-) delete mode 100644 .gitea/workflows/package-status.yml diff --git a/.gitea/workflows/package-status.yml b/.gitea/workflows/package-status.yml deleted file mode 100644 index 82b1aad..0000000 --- a/.gitea/workflows/package-status.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Package Update Status - -on: - schedule: - - cron: "17 5 * * 1" - workflow_dispatch: - -jobs: - package-status: - runs-on: ubuntu-latest - container: - image: alpine:3.24 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Check packaged upstream versions - run: | - apk add --no-cache --update abuild-rootbld alpine-sdk bash ca-certificates doas git nodejs sudo curl git jq docker - APK_UPDATE_CHECK_MODE=warn scripts/apk/outdated.sh > update-check.txt - cat update-check.txt - if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then - { - echo "## Upstream package update check" - echo - echo '```text' - cat update-check.txt - echo '```' - } >> "$GITHUB_STEP_SUMMARY" - fi diff --git a/README.md b/README.md index e5434ca..e08cef9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Alpine Packages -[![Package update check](https://code.factoring.digital/public/alpine-packages/actions/workflows/package-status.yml/badge.svg?branch=main&event=schedule)](https://code.factoring.digital/public/alpine-packages/actions?workflow=package-status.yml) - Alpine stable packaging for internal packages. This repository carries selected upstream releases ahead of Alpine community packages when we need newer features, packaging fixes, or service layouts on the current Alpine branch. -- 2.54.0 From 7bdcc830505cc28b78da541cedad97888f9d6f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Schl=C3=B6ffel?= Date: Tue, 6 Oct 2026 23:02:04 +0200 Subject: [PATCH 3/3] bump Gitea version to 28.1.0 --- README.md | 2 +- packaging/alpine/local/gitea/APKBUILD | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e08cef9..b2c2daa 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ https://code.factoring.digital/api/packages/public/alpine/v3.24/alpine-packages | [SeaweedFS](packaging/alpine/local/seaweedfs/README.md) | `seaweedfs` | `4.48` | Binary repackaging of official upstream release tarballs | Ships current SeaweedFS features with Alpine OpenRC role splits. | | [GreptimeDB](packaging/alpine/local/greptimedb/README.md) | `greptimedb` | `1.2.1` | Source build from upstream release | Provides a current GreptimeDB build and component OpenRC packages before it is available from Alpine community. | | [LavinMQ](packaging/alpine/local/lavinmq/README.md) | `lavinmq` | `2.10.1` | Source build from upstream release | Provides a current LavinMQ build on Alpine 3.24 with matching Crystal support. | -| [Gitea](packaging/alpine/local/gitea/README.md) | `gitea` | `28.0.0` | Binary repackaging of official upstream release binaries | Ships current Gitea releases with the expected Alpine runtime layout and OpenRC service. | +| [Gitea](packaging/alpine/local/gitea/README.md) | `gitea` | `28.1.0` | Binary repackaging of official upstream release binaries | Ships current Gitea releases with the expected Alpine runtime layout and OpenRC service. | | [Apache NiFi](packaging/alpine/local/nifi/README.md) | `nifi` | `2.12.0` | Binary repackaging of the official Standard distribution | Provides Apache NiFi 2 with a secure default configuration and OpenRC service. | ## Use In Production diff --git a/packaging/alpine/local/gitea/APKBUILD b/packaging/alpine/local/gitea/APKBUILD index daa3293..2384a21 100644 --- a/packaging/alpine/local/gitea/APKBUILD +++ b/packaging/alpine/local/gitea/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Joachim Schlöffel pkgname=gitea -pkgver=28.0.0 -pkgrel=1 +pkgver=28.1.0 +pkgrel=0 pkgdesc="Self-hosted Git service written in Go" url="https://about.gitea.com/" arch="x86_64 aarch64" @@ -79,9 +79,9 @@ _logrotate() { } 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 +dee8e5f0b088403e70829f193763e3cc9f3a9ab4b4fe7d5dca72e858bdc4859f2b03cd38314086e2bf7a421eb34f6141b92e11679ad6f9980b8a979a6cabb213 gitea-28.1.0-linux-amd64.xz +413ed83dab64d0bd20684d1ea5350b58c6e74e5aa6f034ee91004d0ee3edadc2ce242e9a298d434744ed00a7bdc5ff4a369d508d385cd40f3b81c59db061ce3a gitea-28.1.0-linux-arm64.xz +619b6ef374153816dfdb24896f455b3d5e96c033eae98f0c6f6ad027f817f57328cca3b239caa1bba8fe3c3f0f89fc87c9dac741f7719bb1c3501577048cb0bd gitea-src-28.1.0.tar.gz 4e20b24c34af01a27589a13d9140d559909cc44507febe5de692d7bc154d65f4b01b79d2f1dcce9fed77b60ac3b1a52cc0ec72161e5a2484a4c718d26d3c630d gitea.ini 9474d707df8b049c93ec4642f71195adff699e1e812f315cac4295b3ab29eeb9ba8b83bf3307c50b04e072a4a9dc4c4f84ac490ee22291bd50015009795c1598 gitea.initd 456a565123b46c0c3a36adbde4c881ee04557a2f1ba492a76205c28f72598bf3b7b96192ddeae4f9ab197fdc75bb5e10a3421574e1bf831192220b4540bb39fc gitea.logrotate -- 2.54.0