diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-14 01:09:58 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-14 01:09:58 +0000 |
commit | 75d78001e3e2f31a23ab1a72b97eb7efa922f92a (patch) | |
tree | ed7c5c62b6e0d4d46258253254b90aa4bf6afa9e /net/hinfo | |
parent | 4b374e9dee9b28051cacaa535fefbd4132d616f9 (diff) | |
download | ports-75d78001e3e2f31a23ab1a72b97eb7efa922f92a.tar.gz ports-75d78001e3e2f31a23ab1a72b97eb7efa922f92a.zip |
Notes
Diffstat (limited to 'net/hinfo')
-rw-r--r-- | net/hinfo/Makefile | 56 | ||||
-rw-r--r-- | net/hinfo/distinfo | 1 | ||||
-rw-r--r-- | net/hinfo/pkg-descr | 8 | ||||
-rw-r--r-- | net/hinfo/pkg-plist | 7 |
4 files changed, 72 insertions, 0 deletions
diff --git a/net/hinfo/Makefile b/net/hinfo/Makefile new file mode 100644 index 000000000000..7dc3d1a10274 --- /dev/null +++ b/net/hinfo/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: hinfo +# Date created: Mon Mar 31 22:37:48 CST 2003 +# Whom: Mark Linimon <linimon@lonesome.com> +# +# $FreeBSD$ +# + +PORTNAME= hinfo +PORTVERSION= 1.0 +CATEGORIES= net perl5 +MASTER_SITES= http://www.blars.org/ \ + http://www.lonesome.com/FreeBSD/distfiles/ + +MAINTAINER= linimon@lonesome.com +COMMENT= Utility primarily designed to find the owner of an IP block + +RUN_DEPENDS= ${SITE_PERL}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS \ + wget:${PORTSDIR}/ftp/wget/ + +USE_PERL5_RUN= yes +USE_REINPLACE= yes + +DATADIR?= ${PREFIX}/lib/${PORTNAME} + +HINFO_DBFILES= dnsbl.ins.pl whois.ins.pl +HINFO_SCRIPTS= hinfo hinfo-update myhostinfo.cgi + +#MAN1= hinfo.1 +#MAN5= hinfo.conf.5 + +NO_BUILD= yes + +# By default, we don't install myhostinfo.cgi. Install it if you wish; it'll +# already be patched for you. +post-extract: +.for file in ${HINFO_SCRIPTS} + ${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}/bin/|g' ${WRKSRC}/${file} +.endfor + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/hinfo ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/hinfo-update ${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${PREFIX}/etc/hinfo.conf.example +.if !exists({PREFIX}/etc/hinfo.conf) + ${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${PREFIX}/etc/hinfo.conf +.endif +.if !defined(NOPORTDOCS) + ${INSTALL_MAN} ${WRKSRC}/hinfo.1 ${PREFIX}/man/man1/ + ${INSTALL_MAN} ${WRKSRC}/hinfo.conf.5 ${PREFIX}/man/man5/ +.endif + @${MKDIR} ${DATADIR} +.for file in ${HINFO_DBFILES} + ${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR} +.endfor + +.include <bsd.port.mk> diff --git a/net/hinfo/distinfo b/net/hinfo/distinfo new file mode 100644 index 000000000000..d6f85b2f0c4c --- /dev/null +++ b/net/hinfo/distinfo @@ -0,0 +1 @@ +MD5 (hinfo-1.0.tar.gz) = 92e366c7b6b89e7728833d2c99f5370f diff --git a/net/hinfo/pkg-descr b/net/hinfo/pkg-descr new file mode 100644 index 000000000000..215940b4ec47 --- /dev/null +++ b/net/hinfo/pkg-descr @@ -0,0 +1,8 @@ +hinfo is a utility that will display information about a host. It is +primarily designed to find the owner of an IP block in order to direct +spam complaints to where they may do some good. + +(maintainer's note: the DATAFILES are updated without the port version +necessarily being updated. Expect drift on distinfo. See hinfo-update.) + +WWW: http://www.blars.org/hinfo.html diff --git a/net/hinfo/pkg-plist b/net/hinfo/pkg-plist new file mode 100644 index 000000000000..f975587240ba --- /dev/null +++ b/net/hinfo/pkg-plist @@ -0,0 +1,7 @@ +bin/hinfo +etc/hinfo.conf +etc/hinfo.conf.example +man/man1/hinfo.1 +man/man5/hinfo.conf.5 +sbin/hinfo-update +@unexec rm -fR %%PREFIX%%/lib/hinfo |