1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/net/hinfo/Makefile
Christian Weisgerber 57cf92dc79 1. The actual MASTER_SITE where the tarball resides is not
reachable by the FreeBSD build machines.  Grr.  (distfile survey)
2. The applied patch did not account for perl not being in
   the default location.  (Thanks to Piet Delport <pjd at 303.za.net>
   for the catch and the fix.)

PR:		52200
Submitted by:	Mark Linimon <linimon@lonesome.com>
2003-06-29 15:35:08 +00:00

59 lines
1.6 KiB
Makefile

# 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
# note: the "true" MASTER_SITE is http://www.blars.org, but
# due to policies on that site, it is not reachable from the
# FreeBSD build machines.
MASTER_SITES= 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 '1s|^#!.+|#!${PERL}|' ${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>