mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-admin/sysklogd: add 2.7.2
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST sysklogd-2.5.2.tar.gz 459292 BLAKE2B c61a89e80d6fde10f5955cf3a7a563fbe9e00799eb1199bc9a2995585c074e7ab2b4fe6a30ae8bc224876448a521c3be9031853ae4710db2555279789aeda95d SHA512 0c160236d0f5ec31d0c5679c04b6f0f40a35af2b5b159af8b2b9dd2d37f5959efbe550dfc50c0b0419bea702b91a6594f2e141c2fbb78fdb20715ee8b2d27805
|
||||
DIST sysklogd-2.6.2.tar.gz 462950 BLAKE2B 591bf168cd9249af888feefd45ed10b8f90e7bdb71c75fbc8a95867dba0abfd20c08b0bbc13f80de2eb9ccf69ab9f77690978963ce96bf17472d2c036f96bb15 SHA512 4fb5ccba9e94c273e92ca4a55c6a7234a3dd6bbfd4568c8227b515c0ac5eeb6fdca452c82c989432e86a667dcf13df87f96aef302141e6023d630dc90466224d
|
||||
DIST sysklogd-2.7.2.tar.gz 484398 BLAKE2B 6a42e049140ab64c5658b7fc112ee33b39481ebe78079271fe6fd7ad44976d3a6e861a4c42a8958599bc83c096e2d7e09cb0c447ffd46e4844c8cfdab13dace2 SHA512 894858d6fc7d6296649934a6fe6a25570857f2153ce94e4bb6c6a2cfc3d31701f516d842f85d6ef4deab2934cf58d7326cccea6f3934524fad882d118c25eadc
|
||||
|
||||
86
app-admin/sysklogd/sysklogd-2.7.2.ebuild
Normal file
86
app-admin/sysklogd/sysklogd-2.7.2.ebuild
Normal file
@@ -0,0 +1,86 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit eapi9-ver 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 )
|
||||
!net-misc/inetutils[syslogd]
|
||||
"
|
||||
|
||||
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 && ver_replacing -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 ver_replacing -lt 2.1 ; then
|
||||
elog "Starting with version 2.1 sysklogd no longer provides klogd."
|
||||
elog "syslogd now also logs kernel messages."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user