temp/logbookd: remove (MR 4685)
The riscv64 builder in Alpine has now caught up and logbookd is available there for all architectures.
This commit is contained in:
parent
57744b984e
commit
fe4254f697
3 changed files with 0 additions and 71 deletions
|
@ -1,42 +0,0 @@
|
||||||
# Forked from Alpine since riscv64 builder is broken.
|
|
||||||
# See: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/4549#note_1683205953
|
|
||||||
|
|
||||||
pkgname=logbookd
|
|
||||||
pkgver=0.2.0
|
|
||||||
pkgrel=0
|
|
||||||
pkgdesc="sqlite backed syslogd implementation"
|
|
||||||
url="https://git.sr.ht/~martijnbraam/logbookd"
|
|
||||||
arch="all"
|
|
||||||
license="MIT"
|
|
||||||
subpackages="$pkgname-doc $pkgname-openrc"
|
|
||||||
source="
|
|
||||||
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~martijnbraam/logbookd/archive/$pkgver.tar.gz
|
|
||||||
logbookd.initd
|
|
||||||
logbookd.confd
|
|
||||||
"
|
|
||||||
makedepends="cmake meson sqlite-dev util-linux-dev scdoc"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
abuild-meson . output
|
|
||||||
meson compile -C output
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
meson test --no-rebuild -C output
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
||||||
|
|
||||||
install -m755 -D "$srcdir"/logbookd.initd \
|
|
||||||
"$pkgdir"/etc/init.d/logbookd
|
|
||||||
install -m644 -D "$srcdir"/logbookd.confd \
|
|
||||||
"$pkgdir"/etc/conf.d/logbookd
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
b55bdd9d394e97b0593a7105c7af6f66815797f722d6e0cea9f633410e4c72f46353d3508bef2b2bb3112d170f82c9d8a26307320a8bddab158b20da35283b19 logbookd-0.2.0.tar.gz
|
|
||||||
6590cb54a2c5613629f729f78b3b8e427808028d9b42462391eb74fa4d19fd5239d06eb3fc026d174f615e46b405d9ae74590ecf622459fc40664620372d5adf logbookd.initd
|
|
||||||
f06496703895cf9c3ea1c904aedd9aea89f7ba476dda56227808f2a24032273aef5640ed9f2ee47351b8e955e66a5e0cb3c07bc5a73e6211e1e7103893b9551a logbookd.confd
|
|
||||||
"
|
|
|
@ -1,7 +0,0 @@
|
||||||
# For the different logbookd modes:
|
|
||||||
# -r for reduced write mode, it uses an in-memory database and only writes the database on exit or USR1
|
|
||||||
# -d is the path for the database, it defaults to in-memory when not specified
|
|
||||||
# -g kB is the amount of uncommitted data in the in-memory database that will trigger a disk write
|
|
||||||
# this defaults to -1 to never automatically write the files
|
|
||||||
|
|
||||||
LOGBOOKD_OPTS="-r -g 8192 -d /var/log/logbookd.db"
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
extra_started_commands="save"
|
|
||||||
|
|
||||||
description_save="Store in-memory logbook to disk"
|
|
||||||
|
|
||||||
pidfile="/run/$RC_SVCNAME.pid"
|
|
||||||
command="/usr/bin/logbookd"
|
|
||||||
command_args="-p $pidfile $LOGBOOKD_OPTS"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need hostname localmount
|
|
||||||
use clock
|
|
||||||
before net
|
|
||||||
provide logger
|
|
||||||
}
|
|
||||||
|
|
||||||
save() {
|
|
||||||
ebegin "Sending the save signal to the logbookd daemon"
|
|
||||||
start-stop-daemon --signal USR1 --pidfile "$pidfile"
|
|
||||||
eend $?
|
|
||||||
}
|
|
Loading…
Reference in a new issue