diff options
author | Randy McCaskill <randy@mccaskill.us> | 2020-02-25 00:45:53 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-02-25 00:45:53 +0000 |
commit | dbe69f4ba255bbacc376f038d862fa6945bea52b (patch) | |
tree | a690a0fe12e20a2acb4a7e48511e1397f7509046 /user | |
parent | 800cfeb6fc2dadb5eca69afde9a720fd5694c1af (diff) | |
download | packages-dbe69f4ba255bbacc376f038d862fa6945bea52b.tar.gz packages-dbe69f4ba255bbacc376f038d862fa6945bea52b.tar.bz2 packages-dbe69f4ba255bbacc376f038d862fa6945bea52b.tar.xz packages-dbe69f4ba255bbacc376f038d862fa6945bea52b.zip |
Adding metalog and autoconf-archive (dependency).
Diffstat (limited to 'user')
-rw-r--r-- | user/autoconf-archive/APKBUILD | 33 | ||||
-rw-r--r-- | user/metalog/APKBUILD | 48 | ||||
-rw-r--r-- | user/metalog/metalog-0.9-metalog-conf.patch | 11 | ||||
-rw-r--r-- | user/metalog/metalog.confd | 18 | ||||
-rw-r--r-- | user/metalog/metalog.initd-r1 | 28 |
5 files changed, 138 insertions, 0 deletions
diff --git a/user/autoconf-archive/APKBUILD b/user/autoconf-archive/APKBUILD new file mode 100644 index 000000000..8a87a30fa --- /dev/null +++ b/user/autoconf-archive/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: +# Maintainer: +pkgname=autoconf-archive +pkgver=2019.01.06 +pkgrel=0 +pkgdesc="GNU Autoconf Macro Archive" +url="https://www.gnu.org/software/autoconf-archive/" +arch="noarch" +license="GPL-3.0+" +subpackages="$pkgname-dev $pkgname-doc" +source="https://ftpmirror.gnu.org/$pkgname/$pkgname-$pkgver.tar.xz" +builddir="$srcdir/$pkgname-$pkgver/" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="14bf8d0bf8be4a4dc078677de1977e496d4d9cf095bc897c174e331311b722cd3a34054e74c2146fff4b5c84269463e6a6fc61907d77d1c51bb221c8fb124fcb autoconf-archive-2019.01.06.tar.xz" diff --git a/user/metalog/APKBUILD b/user/metalog/APKBUILD new file mode 100644 index 000000000..faff8cd9c --- /dev/null +++ b/user/metalog/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: +# Maintainer: +pkgname=metalog +pkgver=20200113 +pkgrel=0 +pkgdesc="A highly configurable replacement for syslogd/klogd" +url="https://github.com/hvisage/metalog" +arch="all" +license="GPL-2.0-only" +depends="pcre" +makedepends="autoconf pcre-dev autoconf-archive-dev" +subpackages="$pkgname-doc $pkgname-openrc" +source="https://github.com/hvisage/$pkgname/archive/$pkgname-$pkgver.tar.gz + metalog-0.9-metalog-conf.patch + + metalog.confd + metalog.initd-r1 + " +builddir="$srcdir/$pkgname-$pkgname-$pkgver/" + +build() { + autoreconf -fi + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install + install -D -m755 "$srcdir"/metalog.initd-r1 \ + "$pkgdir"/etc/init.d/metalog + install -D -m644 "$srcdir"/metalog.confd \ + "$pkgdir"/etc/conf.d/metalog +} + +sha512sums="d399d86f988c69c9f74553cd682a5fe04886bca458e6f8bb3132fe1fb9f522510a428cfde8af0857c5ba22531b276b04fa05183e0006c2d28ef0f0aead488f93 metalog-20200113.tar.gz +0c95e8461e89d9469452d2ef66fa52f469b61578b12a6c72adb73e48807f998f8fb58cf0b3f1bc5caa38296fd59c8f8d1fc209beec81790387816d1c497a07df metalog-0.9-metalog-conf.patch +4fea6b7f48e55d5f69a9c9a69f54623bb9d515e2fd2eda6829f8b769eec85e3de448eb42feb6bf65645400480169b3d70d56dff090103cfc95a3810515c42b2e metalog.confd +09d8ac585418c6a3dfccc9d0f1a050b5862924712d78dc44fce3cb497bb362afe0a556240b14cf957fcdf64d0d06f5b6a8df4372c69129b43dc3520ecd310344 metalog.initd-r1" diff --git a/user/metalog/metalog-0.9-metalog-conf.patch b/user/metalog/metalog-0.9-metalog-conf.patch new file mode 100644 index 000000000..efb794de5 --- /dev/null +++ b/user/metalog/metalog-0.9-metalog-conf.patch @@ -0,0 +1,11 @@ +--- a/metalog.conf ++++ b/metalog.conf +@@ -21,6 +21,8 @@ + # merely write $@ to some device (your console for messages): + # echo "$@" > /dev/tty10 + # ++# Hint: you can control the consolelog.sh behavior in /etc/conf.d/metalog ++# + #console logging : + # + # facility = "*" diff --git a/user/metalog/metalog.confd b/user/metalog/metalog.confd new file mode 100644 index 000000000..ec7e64eda --- /dev/null +++ b/user/metalog/metalog.confd @@ -0,0 +1,18 @@ +# /etc/conf.d/metalog + +# Some useful options: +# -a Log with buffering +# -s Log without buffering +# See `metalog --help` for more + +METALOG_OPTS="" + + +# Options used by /usr/sbin/consolelog.sh + +# Space delimited list of devices to write "console" messages to +#CONSOLE="/dev/console /dev/tty10" +CONSOLE="/dev/tty10" + +# Format of logging (make sure you use single quotes) +FORMAT='$1 [$2] $3' diff --git a/user/metalog/metalog.initd-r1 b/user/metalog/metalog.initd-r1 new file mode 100644 index 000000000..bb947bdad --- /dev/null +++ b/user/metalog/metalog.initd-r1 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +pidfile="${PIDFILE:-/run/metalog.pid}" +command="/usr/sbin/metalog" +command_args="--pidfile=${pidfile} --daemonize ${METALOG_OPTS}" + +extra_started_commands="buffer unbuffer" + +depend() { + need localmount + use clock hostname + after bootmisc + provide logger +} + +buffer() { + ebegin "Enabling log buffering" + start-stop-daemon --exec "${command}" --signal USR2 --pidfile "${pidfile}" + eend ${?} +} + +unbuffer() { + ebegin "Disabling log buffering" + start-stop-daemon --exec "${command}" --signal USR1 --pidfile "${pidfile}" + eend ${?} +} |