blob: 6c46b8fa2dac6d65f9760a3440e11050220b5026 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit autotools-utils multilib
DESCRIPTION="NSS local hostname resolution"
HOMEPAGE="http://0pointer.de/lennart/projects/nss-myhostname/"
SRC_URI="http://0pointer.de/lennart/projects/$PN/$P.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
foreachabi() {
local ABI
for ABI in $(get_all_abis); do
multilib_toolchain_setup ${ABI}
AUTOTOOLS_BUILD_DIR=${WORKDIR}/${P}_build_${ABI} "${@}"
done
}
src_configure() {
local myeconfargs=(
"--disable-lynx"
)
foreachabi autotools-utils_src_configure
}
src_compile() {
foreachabi autotools-utils_src_compile
}
src_install() {
foreachabi autotools-utils_src_install
}
pkg_postinst() {
einfo 'To activate the NSS modules you have to edit /etc/nsswitch.conf'
einfo 'and add myhostname to the line starting with "hosts:"'
einfo
einfo 'It is recommended to put myhostname last in the nsswitch.conf line'
einfo 'to make sure that this mapping is only used as fallback,'
einfo 'and any DNS or /etc/hosts based mapping takes precedence.'
}
|