Commit a7ed5a4e authored by Randy McCaskill's avatar Randy McCaskill
Browse files

Revert "Adding metalog and autoconf-archive (dependency)."

This reverts commit d573ddfc
parent d573ddfc
# Contributor:
# Maintainer:
pkgname=autoconf-archive
pkgver=2018.03.13
pkgrel=0
pkgdesc="GNU Autoconf Macro Archive"
url="http://www.gnu.org/software/autoconf-archive/"
arch="noarch"
license="GPL-3.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftpmirror.gnu.org/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver/"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="301832a02b1913dd46cc34f6479264b37032d78457b2df526f0aafc752996972ca9c74fdae68fbe0f490268019c45329d564f263cbaff30203bbb4b4a8d5ad5f autoconf-archive-2018.03.13.tar.xz"
# Contributor:
# Maintainer:
pkgname=metalog
pkgver=20181125
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() {
cd "$builddir"
autoreconf -fi
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
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="4b187a29b9e25a0f762f929c6993fa6e49ead470916a43a0dfbf16720a1a633121357d2f152bf4cdcd71c016aa4fc8fd6cffb35249abd430fbbf66651986bc4b metalog-20181125.tar.gz
0c95e8461e89d9469452d2ef66fa52f469b61578b12a6c72adb73e48807f998f8fb58cf0b3f1bc5caa38296fd59c8f8d1fc209beec81790387816d1c497a07df metalog-0.9-metalog-conf.patch
4fea6b7f48e55d5f69a9c9a69f54623bb9d515e2fd2eda6829f8b769eec85e3de448eb42feb6bf65645400480169b3d70d56dff090103cfc95a3810515c42b2e metalog.confd
09d8ac585418c6a3dfccc9d0f1a050b5862924712d78dc44fce3cb497bb362afe0a556240b14cf957fcdf64d0d06f5b6a8df4372c69129b43dc3520ecd310344 metalog.initd-r1"
--- 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 = "*"
# /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'
#!/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 ${?}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment