initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

60
sysklogd/PKGBUILD Normal file
View File

@@ -0,0 +1,60 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=sysklogd
pkgver=2.5.2
pkgrel=1
pkgdesc="Free and libre BSD syslogd"
arch=('i686' 'x86_64')
url='https://github.com/troglobit/sysklogd'
license=('Modified-BSD')
depends=('util-linux')
conflicts=('logger')
replaces=('logger')
provides=('logger')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/troglobit/sysklogd/archive/refs/tags/v${pkgver}.tar.gz"
"${pkgname}.logrotate"
"${pkgname}.initd"
"${pkgname}.confd"
"${pkgname}.run"
"${pkgname}.conf")
sha512sums=('2aee9060bd3b63d84f00e8be6d7030dc09ebc8bbb41dcd48f803b33a173a70dd7ed3d7395bb67945315157b6c5d8dee333f08c1c8463b0d0ea1eaf22f8078eff'
'655b25bc92c6d73807b11b0d64f97d619c067efb9fc16ee9c2aba5ba349b13991a22c83e7adaafb95e17578b17992992cab16d18b7bdb2be7d4fc876df5824f7'
'274642e7555badc2395e4a08684b07e4b5be91cfe92f5f2e47903263dde1ccb67c9a5932864eb623d11d97a3ad429b28a8ab7a8d93177e949a2f8dec9a1aaea4'
'80a2159d24b343a5b14da054bd073015ffc8f81c6e5b47114429b6c069b81a3331392c88baafd9a5ac1e0d778119fa7ca10def17eeb9b88c7f5cca1c0d31c6b2'
'481eaf404cdcb9c01f1c8450db24ec1d2ff5665f546b26d483a3e1cf3be274bc3f9e4b5ea00455fcae8dce6e90b2b96c023cf0c0a8fc3646e5d17665cc3f95cd'
'454a010e41076937e711c151c4f164ac98ea710241a1f8baca5cd001d0be171ff3793d12b989cdb6f617ed2b692fbbb2b45a3a1907539e40b719584f8575a9c0')
prepare() {
cd "${pkgname}-${pkgver}"
./autogen.sh
}
build() {
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-systemd=no \
--with-logger=yes
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" PREFIX="/usr" install
# configuration
install -d "$pkgdir"/etc/syslog.d
install -Dm644 syslog.conf "$pkgdir"/etc/syslog.conf
install -Dm644 "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
# services
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -Dm755 "$srcdir"/$pkgname.run "$pkgdir"/etc/sv/$pkgname/run
install -Dm644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/sv/$pkgname/conf
# license
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}

1
sysklogd/sysklogd.conf Normal file
View File

@@ -0,0 +1 @@
SYSLOGD="-m 0 -s -s -r 10M:10"

3
sysklogd/sysklogd.confd Normal file
View File

@@ -0,0 +1,3 @@
# Config file for /etc/init.d/sysklogd
SYSLOGD="-m 0 -s -s -r 10M:10"

20
sysklogd/sysklogd.initd Normal file
View File

@@ -0,0 +1,20 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later
extra_started_commands="reload"
pidfile="/run/${RC_SVCNAME}.pid"
command="/usr/sbin/syslogd"
command_background="true"
command_args="-F ${SYSLOGD}"
depend() {
need clock hostname
provide logger
}
reload() {
ebegin "Reloading configuration"
start-stop-daemon --signal HUP --pidfile ${pidfile}
eend $?
}

View File

@@ -0,0 +1,8 @@
/var/log/auth.log /var/log/daemon.log /var/log/debug /var/log/kern.log /var/log/lpr.log /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn /var/log/messages /var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice /var/log/syslog /var/log/user.log {
create 640 root root
sharedscripts
missingok
postrotate
/etc/init.d/sysklogd -q reload
endscript
}

4
sysklogd/sysklogd.run Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh -e
[ -r ./conf ] && . ./conf
/usr/sbin/syslogd -F ${SYSLOGD}
exec pause 2>&1