1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Name Service Switch module for resolving the local hostname"
7 HOMEPAGE="http://0pointer.de/lennart/projects/nss-myhostname/"
8 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
12 KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86"
16 RDEPEND="${COMMON_DEPEND}
17 !>=sys-apps/systemd-197"
18 DEPEND="${COMMON_DEPEND}"
21 # The documentation in doc/ is just the README file in other formats
22 sed -e 's:SUBDIRS *= *doc:SUBDIRS =:' -i Makefile.{am,in} ||
31 elog "You must modify your name service switch lookup file to enable"
32 elog "nss-myhostname. To do so, add 'myhostname' to the hosts line in"
33 elog "/etc/nsswitch.conf"
35 elog "An example hosts line looks like this:"
36 elog "hosts: files dns myhostname"