summaryrefslogtreecommitdiff
path: root/user/metalog/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/metalog/APKBUILD')
-rw-r--r--user/metalog/APKBUILD48
1 files changed, 48 insertions, 0 deletions
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"