Date: Tuesday, February 21, 2012 @ 18:41:51 Author: tomegun Revision: 150776
new package nss-myhostname, to go into extra Added: nss-myhostname/ nss-myhostname/repos/ nss-myhostname/trunk/ nss-myhostname/trunk/PKGBUILD nss-myhostname/trunk/nss-myhostname.install ------------------------+ PKGBUILD | 29 +++++++++++++++++++++++++++++ nss-myhostname.install | 6 ++++++ 2 files changed, 35 insertions(+) Added: nss-myhostname/trunk/PKGBUILD =================================================================== --- nss-myhostname/trunk/PKGBUILD (rev 0) +++ nss-myhostname/trunk/PKGBUILD 2012-02-21 23:41:51 UTC (rev 150776) @@ -0,0 +1,29 @@ +# $Id$ +# Maintainer: Tom Gundersen <[email protected]> +# Contributor: Mantas M. <[email protected]> +pkgname="nss-myhostname" +pkgver=0.3 +pkgrel=2 +pkgdesc="NSS plugin providing host name resolution for the locally configured system hostname" +arch=(i686 x86_64) +url="http://0pointer.de/lennart/projects/nss-myhostname/" +license=('LGPL2.1') +source=("http://0pointer.de/lennart/projects/${pkgname}/${pkgname}-${pkgver}.tar.gz") +install=nss-myhostname.install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-lynx + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} + +md5sums=('d4ab9ac36c053ab8fb836db1cbd4a48f') Property changes on: nss-myhostname/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id Added: nss-myhostname/trunk/nss-myhostname.install =================================================================== --- nss-myhostname/trunk/nss-myhostname.install (rev 0) +++ nss-myhostname/trunk/nss-myhostname.install 2012-02-21 23:41:51 UTC (rev 150776) @@ -0,0 +1,6 @@ +post_install() { + cat << 'EOM' +==> To enable resolution of the local hostname, append 'myhostname' to the hosts + line in /etc/nsswitch.conf. +EOM +}
