[Midnightbsd-cvs] mports: mports/net: Add hinfo.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 30 19:56:13 EDT 2008


Log Message:
-----------
Add hinfo.

Modified Files:
--------------
    mports/net:
        Makefile (r1.75 -> r1.76)

Added Files:
-----------
    mports/net/hinfo:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/Makefile,v
retrieving revision 1.75
retrieving revision 1.76
diff -L net/Makefile -L net/Makefile -u -r1.75 -r1.76
--- net/Makefile
+++ net/Makefile
@@ -16,6 +16,7 @@
     SUBDIR += fping
     SUBDIR += freeradius
     SUBDIR += gnet2
+    SUBDIR += hinfo
     SUBDIR += ilbc
     SUBDIR += jags
     SUBDIR += kdenetwork3
--- /dev/null
+++ net/hinfo/pkg-descr
@@ -0,0 +1,9 @@
+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.)
+
+Although the home page of the software is at www.blars.org/hinfo.html,
+that page is not reachable from the FreeBSD.org domain.
--- /dev/null
+++ 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
+ at unexec rm -fR %%PREFIX%%/lib/hinfo
--- /dev/null
+++ net/hinfo/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for:	hinfo
+# Date created:				Mon Mar 31 22:37:48 CST 2003
+# Whom:					Mark Linimon <linimon at lonesome.com>
+#
+# $MidnightBSD: mports/net/hinfo/Makefile,v 1.1 2008/05/30 23:56:11 laffer1 Exp $
+# $FreeBSD: ports/net/hinfo/Makefile,v 1.8 2006/05/11 22:49:10 edwin Exp $
+#
+
+PORTNAME=	hinfo
+PORTVERSION=	1.0
+PORTREVISION=	0
+CATEGORIES=	net perl5
+# note: the "true" MASTER_SITE is http://www.blars.org, but
+# due to policies on that site, it is not reachable from the
+# build machines.
+MASTER_SITES=	http://www.lonesome.com/FreeBSD/distfiles/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Utility primarily designed to find the owner of an IP block
+LICENSE=	gpl2
+
+RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
+		wget:${PORTSDIR}/ftp/wget/
+
+USE_PERL5_RUN=	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 filename in ${HINFO_SCRIPTS}
+	${REINPLACE_CMD} -E '1s|^#!.+|#!${PERL}|' ${WRKSRC}/${filename}
+.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 filename in ${HINFO_DBFILES}
+	${INSTALL_DATA} ${WRKSRC}/${filename} ${DATADIR}
+.endfor
+
+.include <bsd.port.mk>
--- /dev/null
+++ net/hinfo/distinfo
@@ -0,0 +1,3 @@
+MD5 (hinfo-1.0.tar.gz) = 92e366c7b6b89e7728833d2c99f5370f
+SHA256 (hinfo-1.0.tar.gz) = 040a2f27cf45142836a8d7118f860ef96eebd445223353431f3015b48755dde8
+SIZE (hinfo-1.0.tar.gz) = 23281


More information about the Midnightbsd-cvs mailing list