New package: nss-myhostname-0.3.
This commit is contained in:
parent
bdcf8ab81b
commit
f22cc5bd31
|
@ -0,0 +1,15 @@
|
|||
case ${ACTION} in
|
||||
post)
|
||||
cat <<_EOF
|
||||
=====================================================================
|
||||
Please note to enable nss-myhostname properly, some changes are
|
||||
required to /etc/nsswitch.conf:
|
||||
|
||||
hosts: files dns myhostname
|
||||
|
||||
Note that myhostname must appear the last one, as fallback for the
|
||||
other services.
|
||||
=====================================================================
|
||||
_EOF
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,26 @@
|
|||
# Template file for 'nss-myhostname'
|
||||
pkgname=nss-myhostname
|
||||
version=0.3
|
||||
homepage="http://0pointer.de/lennart/projects/${pkgname}"
|
||||
distfiles="${homepage}/$pkgname-$version.tar.gz"
|
||||
build_style=gnu-configure
|
||||
configure_args="--libdir=/lib --disable-lynx"
|
||||
short_desc="NSS module providing fallback hostname resolution"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="LGPL-2.1"
|
||||
checksum=2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67e7caf2
|
||||
long_desc="
|
||||
This package contains a plugin for the Name Service Switch, providing host
|
||||
name resolution for the locally configured system hostname as returned by
|
||||
gethostname(2). It simply returns the IPv4 address 127.0.1.1 (which is on the
|
||||
local loopback) and the IPv6 address ::1 (which is the local host).
|
||||
|
||||
A lot of software relies on that the local host name is resolvable. This
|
||||
package provides an alternative to the fragile and error-prone manual editing
|
||||
of /etc/hosts."
|
||||
|
||||
Add_dependency run glibc
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/share/doc
|
||||
}
|
Loading…
Reference in New Issue