1 |
commit: 766f18f974e1f035898802f70ddea3707d1292cf |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 24 21:26:03 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 24 22:01:27 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766f18f9 |
7 |
|
8 |
sys-apps/coreutils: add USE=hostname #128538 |
9 |
|
10 |
This controls just the hostname program. |
11 |
|
12 |
sys-apps/coreutils/coreutils-8.24.ebuild | 7 ++++--- |
13 |
sys-apps/coreutils/metadata.xml | 1 + |
14 |
2 files changed, 5 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/coreutils/coreutils-8.24.ebuild b/sys-apps/coreutils/coreutils-8.24.ebuild |
17 |
index 8b60db7..b350b02 100644 |
18 |
--- a/sys-apps/coreutils/coreutils-8.24.ebuild |
19 |
+++ b/sys-apps/coreutils/coreutils-8.24.ebuild |
20 |
@@ -24,7 +24,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
21 |
LICENSE="GPL-3" |
22 |
SLOT="0" |
23 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux" |
24 |
-IUSE="acl caps gmp kill multicall nls selinux static userland_BSD vanilla xattr" |
25 |
+IUSE="acl caps gmp hostname kill multicall nls selinux static userland_BSD vanilla xattr" |
26 |
|
27 |
LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) |
28 |
caps? ( sys-libs/libcap ) |
29 |
@@ -37,6 +37,7 @@ DEPEND="${RDEPEND} |
30 |
static? ( ${LIB_DEPEND} ) |
31 |
app-arch/xz-utils" |
32 |
RDEPEND+=" |
33 |
+ hostname? ( !sys-apps/net-tools[hostname] ) |
34 |
kill? ( |
35 |
!sys-apps/util-linux[kill] |
36 |
!sys-process/procps[kill] |
37 |
@@ -91,8 +92,8 @@ src_configure() { |
38 |
--with-packager="Gentoo" \ |
39 |
--with-packager-version="${PVR} (p${PATCH_VER:-0})" \ |
40 |
--with-packager-bug-reports="https://bugs.gentoo.org/" \ |
41 |
- --enable-install-program="arch,$(usev kill)" \ |
42 |
- --enable-no-install-program="groups,hostname,$(usev !kill),su,uptime" \ |
43 |
+ --enable-install-program="arch,$(usev hostname),$(usev kill)" \ |
44 |
+ --enable-no-install-program="groups,$(usev !hostname),$(usev !kill),su,uptime" \ |
45 |
--enable-largefile \ |
46 |
$(use caps || echo --disable-libcap) \ |
47 |
$(use_enable nls) \ |
48 |
|
49 |
diff --git a/sys-apps/coreutils/metadata.xml b/sys-apps/coreutils/metadata.xml |
50 |
index 95b8f3e..cdf7134 100644 |
51 |
--- a/sys-apps/coreutils/metadata.xml |
52 |
+++ b/sys-apps/coreutils/metadata.xml |
53 |
@@ -3,6 +3,7 @@ |
54 |
<pkgmetadata> |
55 |
<herd>base-system</herd> |
56 |
<use> |
57 |
+ <flag name='hostname'>Build the hostname program</flag> |
58 |
<flag name='kill'>Build the kill program</flag> |
59 |
<flag name='multicall'>Build all tools into a single `coreutils` program akin to busybox to save space</flag> |
60 |
</use> |