From 4e8bda1a9f30aabc59de8db5c39df4045369af3e Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Fri, 15 Jan 2021 11:35:10 +0100 Subject: app-admin/sysklogd: Bump to version 2.2.0 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Lars Wendler --- app-admin/sysklogd/Manifest | 1 + app-admin/sysklogd/sysklogd-2.2.0.ebuild | 82 ++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 app-admin/sysklogd/sysklogd-2.2.0.ebuild (limited to 'app-admin') diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest index a7bca40c61a7..ab44b89a5ad7 100644 --- a/app-admin/sysklogd/Manifest +++ b/app-admin/sysklogd/Manifest @@ -1 +1,2 @@ DIST sysklogd-2.1.2.tar.gz 561286 BLAKE2B f70c2d116740930761677b9fdf715242844a583a59cd93c2e3408f985ce856d1a9eabc3ba736d18af44e8d154cdadec88035fc357db83eb504b4c6f800ea1f1d SHA512 dcd715939b4285e08ead0a1e797d09a8845156f456d3776cfcd0bcff7fbb9a306cb84a2b22731b430e2199d59ba42ab975fed6e675cf9d8a78833575c1490268 +DIST sysklogd-2.2.0.tar.gz 439595 BLAKE2B 82222b3993bd5f6d0b824152fe60aea97dcf1447282656692cf68576b576eacadc26f12af24f92e235f1eaf9cec243ce41f492f1e05f9fbad06d9e38854436e6 SHA512 36c4d1ae5c306195604f279c48bd837ba483deadd642e86d9eefbd0d1eefab5dc03053ad54f9751264117f9314ebbb5d492fa7bbb30b017539c6b98a7e44cf30 diff --git a/app-admin/sysklogd/sysklogd-2.2.0.ebuild b/app-admin/sysklogd/sysklogd-2.2.0.ebuild new file mode 100644 index 000000000000..bcbda07ce221 --- /dev/null +++ b/app-admin/sysklogd/sysklogd-2.2.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic systemd toolchain-funcs + +DESCRIPTION="Standard log daemons" +HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd" + +if [[ "${PV}" == *9999 ]] ; then + inherit autotools git-r3 + EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git" +else + SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="logger logrotate systemd" +RESTRICT="test" + +DEPEND=" + logger? ( + !=sys-apps/util-linux-2.34-r3[logger] + ) +" +RDEPEND="${DEPEND}" + +DOCS=( ChangeLog.md README.md ) + +pkg_setup() { + append-lfs-flags + tc-export CC +} + +src_prepare() { + default + [[ "${PV}" == *9999 ]] && eautoreconf +} + +src_configure() { + local myeconfargs=( + --runstatedir="${EPREFIX}"/run + $(use_with logger) + $(use_with systemd systemd $(systemd_get_systemunitdir)) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + insinto /etc + doins syslog.conf + keepdir /etc/syslog.d + + newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd + newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd + + if use logrotate ; then + insinto /etc/logrotate.d + newins "${FILESDIR}"/sysklogd.logrotate sysklogd + sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die + fi + + find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die +} + +pkg_postinst() { + if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then + elog "Starting with version 2.0 syslogd has built in log rotation" + elog "functionality that does no longer require a running cron daemon." + elog "So we no longer install any log rotation cron files for sysklogd." + fi + if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then + elog "Starting with version 2.1 sysklogd no longer provides klogd." + elog "syslogd now also logs kernel messages." + fi +} -- cgit v1.2.3-65-gdbad