app-admin/sysklogd: Introduced "logger" USE flag
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 19 Nov 2019 11:01:03 +0000 (12:01 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 19 Nov 2019 11:01:25 +0000 (12:01 +0100)
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-admin/sysklogd/metadata.xml
app-admin/sysklogd/sysklogd-2.0.ebuild

index 868e8ae726ded388e46a7aaff93fb24de740ada0..be89c65a5ee9cb7d9c25dcfd7fb33b18604c0676 100644 (file)
@@ -7,6 +7,7 @@
        </maintainer>
        <use>
                <flag name="klogd">Build and install (deprecated) kernel logging daemon</flag>
+               <flag name="logger">Build the logger program</flag>
                <flag name="logrotate">use app-admin/logrotate for rotating logs rather than custom cron scripts</flag>
        </use>
 </pkgmetadata>
index 60df329feb56f83b6c189e83813954cf4d0b6742..b1caf749a270c3b4bbf59fa7792a843b92255746 100644 (file)
@@ -12,11 +12,11 @@ SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v$(ver_cut 1-2)
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="klogd logrotate systemd"
+IUSE="klogd logger logrotate systemd"
 RESTRICT="test"
 
-DEPEND=""
-RDEPEND=""
+DEPEND="!sys-apps/util-linux[logger]"
+RDEPEND="${DEPEND}"
 
 DOCS=( ChangeLog.md README.md )
 
@@ -37,8 +37,8 @@ src_prepare() {
 src_configure() {
        local myeconfargs=(
                # we have logger from sys-apps/util-linux
-               --without-logger
                $(use_with klogd)
+               $(use_with logger)
                $(use_with systemd systemd $(systemd_get_systemunitdir))
        )
        econf "${myeconfargs[@]}"