diff options
author | Sam James <sam@gentoo.org> | 2024-09-18 02:07:45 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-18 02:07:45 +0100 |
commit | 581183d070acdcd32f8f9647c533dd44347003ce (patch) | |
tree | 5ddfc64f3b612bf256c45b6643ffd6f467c49b71 /app-admin/sysklogd | |
parent | sys-apps/bfs: add 4.0.2 (diff) | |
download | gentoo-581183d070acdcd32f8f9647c533dd44347003ce.tar.gz gentoo-581183d070acdcd32f8f9647c533dd44347003ce.tar.bz2 gentoo-581183d070acdcd32f8f9647c533dd44347003ce.zip |
app-admin/sysklogd: add 2.6.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/sysklogd')
-rw-r--r-- | app-admin/sysklogd/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sysklogd/sysklogd-2.6.2.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest index 28a9f11671bc..faabe8b3d2cd 100644 --- a/app-admin/sysklogd/Manifest +++ b/app-admin/sysklogd/Manifest @@ -2,3 +2,4 @@ DIST sysklogd-2.4.4.tar.gz 451938 BLAKE2B 218d9487440ab3fa395f596e5e4a9fa95df9df DIST sysklogd-2.5.0.tar.gz 459695 BLAKE2B ab8185e114f7da2c35b6ba3e3b42e13f3697155b43ccfa923229d95150e3734f74db6f732bcbc999068d8a2f8124a404ee893d2e6ce4c154f89301b3b523df39 SHA512 4599f153b046317977de990455b1eea195967da81f68451f1bda4fadba6fe685d7fe533aba3b39f4daa456d6c4931743162a021067e0a16f072a7c77908286f9 DIST sysklogd-2.5.1.tar.gz 461179 BLAKE2B efb1e1ef6456644935b0c5341bf844fe87ed910aec3fd0725da2cc2d6b3f0e1f8d4667e45525b61fa3a249387a23757291daa33aac2a72d4fcd89d325e12ab89 SHA512 24d8a76cab4c25b646d879676b46f98bb56c2079badab4f351bf983015479134e4a3e4d64fb50faade26fea8dd7e31c2c45610c17420c147c36bbbe054634983 DIST sysklogd-2.5.2.tar.gz 459292 BLAKE2B c61a89e80d6fde10f5955cf3a7a563fbe9e00799eb1199bc9a2995585c074e7ab2b4fe6a30ae8bc224876448a521c3be9031853ae4710db2555279789aeda95d SHA512 0c160236d0f5ec31d0c5679c04b6f0f40a35af2b5b159af8b2b9dd2d37f5959efbe550dfc50c0b0419bea702b91a6594f2e141c2fbb78fdb20715ee8b2d27805 +DIST sysklogd-2.6.2.tar.gz 462950 BLAKE2B 591bf168cd9249af888feefd45ed10b8f90e7bdb71c75fbc8a95867dba0abfd20c08b0bbc13f80de2eb9ccf69ab9f77690978963ce96bf17472d2c036f96bb15 SHA512 4fb5ccba9e94c273e92ca4a55c6a7234a3dd6bbfd4568c8227b515c0ac5eeb6fdca452c82c989432e86a667dcf13df87f96aef302141e6023d630dc90466224d diff --git a/app-admin/sysklogd/sysklogd-2.6.2.ebuild b/app-admin/sysklogd/sysklogd-2.6.2.ebuild new file mode 100644 index 000000000000..7a72c587b181 --- /dev/null +++ b/app-admin/sysklogd/sysklogd-2.6.2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="logger logrotate" +# Needs network access +RESTRICT="test" + +DEPEND=" + logger? ( sys-apps/util-linux[-logger(+)] ) +" +RDEPEND=" + ${DEPEND} + logrotate? ( app-admin/logrotate ) +" + +DOCS=( ChangeLog.md README.md ) + +src_prepare() { + default + + [[ ${PV} == *9999 ]] && eautoreconf +} + +src_configure() { + append-lfs-flags + tc-export CC + + local myeconfargs=( + --disable-static + --runstatedir="${EPREFIX}"/run + --with-systemd=$(systemd_get_systemunitdir) + $(use_with logger) + ) + + 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 "*.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 +} |