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=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
|
||||
"
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/var/log/lavinmq/lavinmq.log {
|
||||
daily
|
||||
rotate 14
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
su lavinmq lavinmq
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user