app-admin/metalog: add 20260811

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2026-08-11 15:33:02 -07:00
parent 10cb9a471d
commit fe7ee76018
2 changed files with 78 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
DIST metalog-20230719.tar.gz 42579 BLAKE2B 6088c86fad90185fcb22a96ff88686647eac1fb4216884f43c07dff23274efc748c908f6f98162f743d2528437748f79809dfe6911d8d47e6cf7e58c8f3ca3b4 SHA512 a717dca5e00e9e66b97a84c3dbb0cdda522cbe628fad4cfbcb5256ee69659c63149bbb1e8797028bbab55d97787661c1d7316c7c2cbfe3b65932f84d64af15f6
DIST metalog-20260105.gh.tar.gz 50757 BLAKE2B 10b38a2613c79cf6788ae5a389bb1fd9ca1b80239506e11809ceb83e8e067e872185bac13e142e9d810753b7d38fd1416172f6ea987df9c40a7dcf48ad8a28d9 SHA512 f3e41c5254762648407e14db575f1476c918cd1a504fb2cd560d19b20187c1f3a27993ebc8dc79a37b0534c600fc84b61559c4914d0c46dd9cd4d77e896f8dd7
DIST metalog-20260221.gh.tar.gz 50914 BLAKE2B b5394cf88768411aaa303b2c8ce49d6340d71d4b3f7ee934b6caf792d5a279361c545e1dd98df30d82c6e3efd9ff313c9208bdcd5184d54d44c79c8a4dbbab19 SHA512 9c2846f211fb078e458845a95603510c38c865dad041888b9e725e3cc198269dee6076aaf1b7434d2591ddd906bbc898f674512ba0c55f5d13f24f9c27a4bd85
DIST metalog-20260811.gh.tar.gz 51058 BLAKE2B 55a9e095e2b55cee6369dd2dbd6b6032593729577dffd307f0727cbf339560489780cd758197206e5c00816ba3c9a3436d3e111b74d306dc6ad2bb8d32c11c79 SHA512 6fed4ec58d3cbd704bc5dff77b9b76e3ab7a98ce90b6112f642297e7760c3a0117c59e8014f718113c526c52bd13418f9104ff172388596b1ea480097758c1fd
+77
View File
@@ -0,0 +1,77 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools systemd
DESCRIPTION="Highly configurable replacement for syslogd/klogd"
HOMEPAGE="https://github.com/hvisage/metalog"
SRC_URI="https://github.com/hvisage/metalog/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="unicode zlib"
RDEPEND="
dev-libs/libpcre2:=
zlib? ( virtual/zlib:= )
"
DEPEND="
${RDEPEND}
"
BDEPEND="
dev-build/autoconf-archive
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/metalog-20230719-metalog-conf.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_with unicode)
$(use_with zlib compress)
)
econf "${myeconfargs[@]}"
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS ChangeLog README NEWS metalog.conf
into /
newsbin "${FILESDIR}"/consolelog.sh-r1 consolelog.sh
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 ${EROOT}/etc/metalog/metalog.conf to just"
ewarn "${EROOT}/etc/metalog.conf. If you had a standard"
ewarn "setup, the file has been moved for you."
fi
}