diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2020-02-12 17:59:40 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-02-12 17:59:40 -0800 |
commit | e81453b92caf09fffa0f2d81109f1b2a0008d58d (patch) | |
tree | 8bddee834d26cb3305fff33ea0c86bbb0ae0f442 | |
parent | dev-vcs/repo: version bump to 2.3 (diff) | |
download | gentoo-e81453b92caf09fffa0f2d81109f1b2a0008d58d.tar.gz gentoo-e81453b92caf09fffa0f2d81109f1b2a0008d58d.tar.bz2 gentoo-e81453b92caf09fffa0f2d81109f1b2a0008d58d.zip |
app-admin/metalog-20200113: Version bump
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r-- | app-admin/metalog/Manifest | 1 | ||||
-rw-r--r-- | app-admin/metalog/files/consolelog.sh-r1 | 19 | ||||
-rw-r--r-- | app-admin/metalog/metalog-20200113.ebuild | 65 |
3 files changed, 85 insertions, 0 deletions
diff --git a/app-admin/metalog/Manifest b/app-admin/metalog/Manifest index 3f1adee6f9a7..ba655692076b 100644 --- a/app-admin/metalog/Manifest +++ b/app-admin/metalog/Manifest @@ -1,2 +1,3 @@ DIST metalog-20181125.tar.gz 39472 BLAKE2B 64d90835d50c7cb10ab2bf2708d00189b9f8cb56438c29d5c445c5527cce030f918ba74f83cdcd54017f04fe2a8ab30e5631bcdf6681e56c311f8069981a9b5c SHA512 4b187a29b9e25a0f762f929c6993fa6e49ead470916a43a0dfbf16720a1a633121357d2f152bf4cdcd71c016aa4fc8fd6cffb35249abd430fbbf66651986bc4b +DIST metalog-20200113.tar.gz 40276 BLAKE2B f2fcaccf610f3b7f1974aa97f2c7b5181f3c625c9e28d72832ba1570cfa369873887c83468bcea6a9f3d3080356bd1dd62849ec34a5d03c1272ada7f476946f6 SHA512 d399d86f988c69c9f74553cd682a5fe04886bca458e6f8bb3132fe1fb9f522510a428cfde8af0857c5ba22531b276b04fa05183e0006c2d28ef0f0aead488f93 DIST metalog-3.tar.xz 360784 BLAKE2B 951841d423769cd97e14985e15d5a2499ca351e082c0effe28dc16d46db91235b7ef0448fe32d38b2ed5b53011d04b3375dc87c2a859c49bede2ae177ec16954 SHA512 2ac614bb85fe466308c4ced0842fdab5f056eda60e892189a8220719f1e06a72fce3c76842a2ac8c63a6808c20d8b7a7d8676896e14f7f54e40630ecbd21e289 diff --git a/app-admin/metalog/files/consolelog.sh-r1 b/app-admin/metalog/files/consolelog.sh-r1 new file mode 100644 index 000000000000..3a67fe7b2d3f --- /dev/null +++ b/app-admin/metalog/files/consolelog.sh-r1 @@ -0,0 +1,19 @@ +#!/bin/sh +# consolelog.sh +# For metalog -- log to a console + +set -f + +. /etc/conf.d/metalog + +: "${CONSOLE:=/dev/console}" + +# shellcheck disable=SC2016 +: "${FORMAT:='$1 [$2] $3'}" + +for d in ${CONSOLE} ; do + # shellcheck disable=SC2086 + eval echo ${FORMAT} > "${d}" +done + +exit 0 diff --git a/app-admin/metalog/metalog-20200113.ebuild b/app-admin/metalog/metalog-20200113.ebuild new file mode 100644 index 000000000000..dfac2aa83578 --- /dev/null +++ b/app-admin/metalog/metalog-20200113.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools systemd + +DESCRIPTION="A highly configurable replacement for syslogd/klogd" +HOMEPAGE="https://github.com/hvisage/metalog" +SRC_URI="https://github.com/hvisage/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin" +IUSE="unicode" + +RDEPEND=">=dev-libs/libpcre-3.4" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive + virtual/pkgconfig" + +S="${WORKDIR}/${PN}-${P}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9-metalog-conf.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf $(use_with unicode) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS ChangeLog README NEWS metalog.conf + + into / + dosbin "${FILESDIR}"/consolelog.sh-r1 + + newinitd "${FILESDIR}"/metalog.initd-r1 metalog + newconfd "${FILESDIR}"/metalog.confd metalog + systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service" +} + +pkg_preinst() { + if [[ -d "${ROOT}"/etc/metalog && ! -e "${ROOT}"/etc/metalog.conf ]] ; then + mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf + rmdir "${ROOT}"/etc/metalog + export MOVED_METALOG_CONF=true + else + export MOVED_METALOG_CONF=false + fi +} + +pkg_postinst() { + if ${MOVED_METALOG_CONF} ; then + ewarn "The default metalog.conf file has been moved" + ewarn "from /etc/metalog/metalog.conf to just" + ewarn "/etc/metalog.conf. If you had a standard" + ewarn "setup, the file has been moved for you." + fi +} |