Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 17:33:38 -0600 (CST)
From:      Mark Linimon <linimon@lonesome.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45501: new port: net/hinfo, look up host info for anti-spam use
Message-ID:  <200211192333.gAJNXcNp052888@lonesome.lonesome.com>

next in thread | raw e-mail | index | archive | help

>Number:         45501
>Category:       ports
>Synopsis:       new port: net/hinfo, look up host info for anti-spam use
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 19 15:40:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mark Linimon
>Release:        FreeBSD-4.7
>Organization:
FreeBSD
>Environment:
System: FreeBSD lonesome.lonesome.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 8 23:46:29 CST 2002 root@lonesome.lonesome.com:/usr/src/sys/compile/MULTIMEDIA i386

>Description:
	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.

	See http://www.blars.org/hinfo.html.
>How-To-Repeat:
	n/a
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hinfo
#	hinfo/pkg-plist
#	hinfo/pkg-descr
#	hinfo/pkg-comment
#	hinfo/distinfo
#	hinfo/Makefile
#	hinfo/files
#
echo c - hinfo
mkdir -p hinfo > /dev/null 2>&1
echo x - hinfo/pkg-plist
sed 's/^X//' >hinfo/pkg-plist << 'END-of-hinfo/pkg-plist'
Xbin/hinfo
Xetc/hinfo.conf
Xetc/hinfo.conf.example
Xshare/doc/hinfo/hinfo.txt
Xshare/doc/hinfo/hinforc.txt
X%%PORTDOCS%%@dirrm share/doc/hinfo
X@unexec rm -R /var/lib/hinfo
END-of-hinfo/pkg-plist
echo x - hinfo/pkg-descr
sed 's/^X//' >hinfo/pkg-descr << 'END-of-hinfo/pkg-descr'
Xhinfo is a utility that will display information about a host. It is
Xprimarily designed to find the owner of an IP block in order to direct
Xspam complaints to where they may do some good. 
X
X(porter's note: the DBFILES are updated without the port version
Xnecessarily being updated.  Expect drift on distinfo.)
X
XWWW: http://www.blars.org/hinfo.html
END-of-hinfo/pkg-descr
echo x - hinfo/pkg-comment
sed 's/^X//' >hinfo/pkg-comment << 'END-of-hinfo/pkg-comment'
XUtility primarily designed to find the owner of an IP block
END-of-hinfo/pkg-comment
echo x - hinfo/distinfo
sed 's/^X//' >hinfo/distinfo << 'END-of-hinfo/distinfo'
XMD5 (hinfo-0.93.tar.gz) = 7623fe640a1d6db1b50cb0cf6d7dddb7
END-of-hinfo/distinfo
echo x - hinfo/Makefile
sed 's/^X//' >hinfo/Makefile << 'END-of-hinfo/Makefile'
X# New ports collection makefile for:	hinfo
X# Date created:				Tue Nov 19 14:32:22 CST 2002
X# Whom:					Mark Linimon <linimon@lonesome.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hinfo
XPORTVERSION=	0.93
XCATEGORIES=	net perl5
XMASTER_SITES=	http://www.blars.org/
X
XMAINTAINER=	linimon@lonesome.com
X
XRUN_DEPENDS=	${SITE_PERL}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS
X
XUSE_PERL5_RUN=	yes
XUSE_REINPLACE=	yes
X
XDBDIR?=		/var/lib
XDBFILES=	dnsbl.ins.pl whois.ins.pl
XDOCSDIR?=	${PREFIX}/share/doc/${PORTNAME}
X
XNO_BUILD=	yes
X
Xpost-extract:
X	${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|' ${WRKSRC}/hinfo
X	${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|' ${WRKSRC}/myhostinfo.cgi
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/hinfo ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/hinfo.conf ${PREFIX}/etc/hinfo.conf.example
X.if !exists({PREFIX}/etc/hinfo.conf)
X	${INSTALL_SCRIPT} ${WRKSRC}/hinfo.conf ${PREFIX}/etc/hinfo.conf
X.endif
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in hinfo.txt hinforc.txt
X	${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X	@${MKDIR} ${DBDIR}/${PORTNAME}
X.for file in ${DBFILES}
X	${INSTALL_DATA} ${WRKSRC}/${file} ${DBDIR}/${PORTNAME}/
X.endfor
X
X.include <bsd.port.mk>
END-of-hinfo/Makefile
echo c - hinfo/files
mkdir -p hinfo/files > /dev/null 2>&1
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211192333.gAJNXcNp052888>