From: Maxime Hadjinlian Date: Sat, 2 Jul 2016 13:59:07 +0000 (+0200) Subject: package/systemd: Add optional support for myhostname X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0b78cf14514a50a37e6aaf02741f568c4c988b4;p=buildroot.git package/systemd: Add optional support for myhostname Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- diff --git a/package/systemd/Config.in b/package/systemd/Config.in index b44d57afe2..b00ef2144f 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -225,6 +225,17 @@ config BR2_PACKAGE_SYSTEMD_HOSTNAMED http://www.freedesktop.org/software/systemd/man/systemd-hostnamed.service.html +config BR2_PACKAGE_SYSTEMD_MYHOSTNAME + bool "enable myhostname NSS plugin" + default y + help + nss-myhostname is a plug-in module for the GNU Name Service + Switch (NSS) functionality of the GNU C Library (glibc), + primarily providing hostname resolution for the locally + configured system hostname as returned by gethostname(2). + + http://www.freedesktop.org/software/systemd/man/nss-myhostname.html + config BR2_PACKAGE_SYSTEMD_TIMEDATED bool "enable timedate daemon" default y diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 423afcc1bb..cca3f0532b 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -249,6 +249,12 @@ else SYSTEMD_CONF_OPTS += --disable-hostnamed endif +ifeq ($(BR2_PACKAGE_SYSTEMD_MYHOSTNAME),y) +SYSTEMD_CONF_OPTS += --enable-myhostname +else +SYSTEMD_CONF_OPTS += --disable-myhostname +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_TIMEDATED),y) SYSTEMD_CONF_OPTS += --enable-timedated else