diff options
author | Sam James <sam@gentoo.org> | 2022-08-03 03:31:21 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-08-03 03:31:21 +0100 |
commit | d421cf8279d94342a6c298f130fda84c9720c0e9 (patch) | |
tree | 482b4d78f5e14e433e5b13de0bc7d309bd550872 /app-admin/sysklogd/sysklogd-9999.ebuild | |
parent | sys-libs/efivar: fix build w/ glibc 2.36 (diff) | |
download | gentoo-d421cf8279d94342a6c298f130fda84c9720c0e9.tar.gz gentoo-d421cf8279d94342a6c298f130fda84c9720c0e9.tar.bz2 gentoo-d421cf8279d94342a6c298f130fda84c9720c0e9.zip |
app-admin/sysklogd: add 2.4.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/sysklogd/sysklogd-9999.ebuild')
-rw-r--r-- | app-admin/sysklogd/sysklogd-9999.ebuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/app-admin/sysklogd/sysklogd-9999.ebuild b/app-admin/sysklogd/sysklogd-9999.ebuild index 53e3b031b00b..b823887c4367 100644 --- a/app-admin/sysklogd/sysklogd-9999.ebuild +++ b/app-admin/sysklogd/sysklogd-9999.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit flag-o-matic systemd toolchain-funcs @@ -18,7 +18,7 @@ fi LICENSE="BSD" SLOT="0" -IUSE="logger logrotate systemd" +IUSE="logger logrotate" # Needs network access RESTRICT="test" @@ -28,16 +28,13 @@ DEPEND=" !>=sys-apps/util-linux-2.34-r3[logger] ) " -RDEPEND="${DEPEND} - logrotate? ( app-admin/logrotate )" +RDEPEND=" + ${DEPEND} + logrotate? ( app-admin/logrotate ) +" DOCS=( ChangeLog.md README.md ) -pkg_setup() { - append-lfs-flags - tc-export CC -} - src_prepare() { default @@ -45,12 +42,16 @@ src_prepare() { } src_configure() { + append-lfs-flags + tc-export CC + local myeconfargs=( --disable-static --runstatedir="${EPREFIX}"/run + --with-systemd=$(systemd_get_systemunitdir) $(use_with logger) - $(use_with systemd systemd $(systemd_get_systemunitdir)) ) + econf "${myeconfargs[@]}" } @@ -79,6 +80,7 @@ pkg_postinst() { 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." |