# $Id: Portfile 23764 2007-04-09 04:51:25Z mij@macports.org $ PortSystem 1.0 name whois version 4.7.20 categories net maintainers nomaintainer@macports.org description A replacement whois client homepage http://www.linux.it/~md/software/ platforms darwin long_description \ whois is an improved whois client that follow the \ delegations from the Verisign whois server. master_sites http://ftp.debian.org/debian/pool/main/w/${name} checksums md5 81cea7350890d2a4dc974f661be31c7d \ sha1 e30854ce446b309229da8c88b55f35bb1c974e80 \ rmd160 731daccb9fb2c7836967cd124982b0bb61a3b838 distname ${name}_${version} worksrcdir ${name}-${version} depends_lib port:gettext use_configure no post-configure { reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/config.h reinplace "s|\$(BASEDIR)/usr|${destroot}${prefix}|g" \ ${worksrcpath}/po/Makefile reinplace "s|/etc/whois.conf|${prefix}/etc/whois.conf|g" \ ${worksrcpath}/whois.1 } build.env CFLAGS="-DENABLE_NLS -I${prefix}/include" \ LDFLAGS="-L${prefix}/lib -lintl" destroot.args prefix=${destroot}${prefix}