diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-05-12 09:08:47 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-05-12 09:08:47 +0200 |
commit | a318e1b8e08efe13c66753985411a5c8bf62201f (patch) | |
tree | 289f4d3f50c093f72715caa6637c288952668994 /app-admin/sysklogd | |
parent | sys-devel/slibtool: Removed old (diff) | |
download | gentoo-a318e1b8e08efe13c66753985411a5c8bf62201f.tar.gz gentoo-a318e1b8e08efe13c66753985411a5c8bf62201f.tar.bz2 gentoo-a318e1b8e08efe13c66753985411a5c8bf62201f.zip |
app-admin/sysklogd: Bump to version 2.2.3
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-admin/sysklogd')
-rw-r--r-- | app-admin/sysklogd/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sysklogd/sysklogd-2.2.3.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/app-admin/sysklogd/Manifest b/app-admin/sysklogd/Manifest index dd9dc99ca165..09a2e8ddeace 100644 --- a/app-admin/sysklogd/Manifest +++ b/app-admin/sysklogd/Manifest @@ -1 +1,2 @@ DIST sysklogd-2.2.2.tar.gz 441106 BLAKE2B b99c63027468967083bb1338a6299bf2f58415c1d20a43f23ff613a5ce318c45c43640824bc82fe3ea423cd9432930a070354bb7a51281bd113b4d088bf17643 SHA512 5db5b0fc58530634627463a5b79ebc3b27c54284b371ce8c37cb6de4ed542640fb8a36e594bb73c0a541d22c6fa0ff985ad06cb2b76cd30cce988741ded86903 +DIST sysklogd-2.2.3.tar.gz 441630 BLAKE2B e23b95aea9d98effc6a88dd14c4fafa358274ea839e7a07ab51bd0257fe0398a1ba6b629c4711d679fffaf03f04c177454f536bdd78dcad2b9f2ae36ff91138e SHA512 db1675256f0f0b0874e2e6a68fb086294bef1d6d3f3e9a6470f8d797ae504b2ab03ed23dc2753c8108a230c3f617e67c4a71e099a2ffeb7ffc8a0efdd07e8d17 diff --git a/app-admin/sysklogd/sysklogd-2.2.3.ebuild b/app-admin/sysklogd/sysklogd-2.2.3.ebuild new file mode 100644 index 000000000000..fcf8b445d160 --- /dev/null +++ b/app-admin/sysklogd/sysklogd-2.2.3.ebuild @@ -0,0 +1,84 @@ +# 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 + !>=sys-apps/util-linux-2.34-r3[logger] + ) +" +RDEPEND="${DEPEND} + logrotate? ( app-admin/logrotate )" + +DOCS=( ChangeLog.md README.md ) + +pkg_setup() { + append-lfs-flags + tc-export CC +} + +src_prepare() { + default + [[ "${PV}" == *9999 ]] && eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-static + --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 "*.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 +} |