From f22cc5bd319b46e624a0a9648393d469582c26a8 Mon Sep 17 00:00:00 2001 From: Juan RP <xtraeme@gmail.com> Date: Tue, 25 Oct 2011 15:11:13 +0200 Subject: [PATCH] New package: nss-myhostname-0.3. --- srcpkgs/nss-myhostname/INSTALL | 15 +++++++++++++++ srcpkgs/nss-myhostname/template | 26 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/nss-myhostname/INSTALL create mode 100644 srcpkgs/nss-myhostname/template diff --git a/srcpkgs/nss-myhostname/INSTALL b/srcpkgs/nss-myhostname/INSTALL new file mode 100644 index 0000000000..87a42ed5c7 --- /dev/null +++ b/srcpkgs/nss-myhostname/INSTALL @@ -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 diff --git a/srcpkgs/nss-myhostname/template b/srcpkgs/nss-myhostname/template new file mode 100644 index 0000000000..5c72acb19f --- /dev/null +++ b/srcpkgs/nss-myhostname/template @@ -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 +}