From yonatan@node-110.xpert.com  Wed Apr  9 05:47:35 2003
Return-Path: <yonatan@node-110.xpert.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0F77237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Apr 2003 05:47:34 -0700 (PDT)
Received: from node-110.xpert.com (node-110.xpert.com [199.203.132.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 341BB43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Apr 2003 05:47:33 -0700 (PDT)
	(envelope-from yonatan@node-110.xpert.com)
Received: (from yonatan@localhost)
	by node-110.xpert.com (8.11.6/8.11.6) id h39FloM02950;
	Wed, 9 Apr 2003 15:47:50 GMT
	(envelope-from yonatan)
Message-Id: <200304091547.h39FloM02950@node-110.xpert.com>
Date: Wed, 9 Apr 2003 15:47:50 GMT
From: Yonatan@xpert.com
Reply-To: Yonatan@xpert.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: security/hmap - web server fingerprinting tool
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50754
>Category:       ports
>Synopsis:       New port: security/hmap - web server fingerprinting tool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 09 05:50:20 PDT 2003
>Closed-Date:    Thu Sep 04 06:28:58 PDT 2003
>Last-Modified:  Thu Sep 04 06:28:58 PDT 2003
>Originator:     Yonatan@xpert.com
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD Temujin 4.8-RC FreeBSD 4.8-RC #4: Tue Mar 11 17:44:31 GMT 2003 root@Temujin:/usr/obj/usr/src/sys/TEMUJIN i386

>Description:
	Web server fingerprinting tool, used to identify web servers that
changed thier banners.
>How-To-Repeat:
	N/A
>Fix:
	Please note the silly thing I did with tr to remove ^M from EOLs.
I'm also not at ease about the PORTDOCS handling, even though my testing shows
it's working correctly. Please verify my work.

--- hmap.shar begins here ---
# 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:
#
#	.
#	./Makefile
#	./distinfo
#	./pkg-descr
#	./files
#	./files/patch-hmap.py
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# Ports collection makefile for:  hmap
X# Date created:			  29 Apr 2003
X# Whom:				  Yonatan <Yonatan@xpert.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hmap
XPORTVERSION=	0.1
XCATEGORIES=	security
XMASTER_SITES=	http://wwwcsif.cs.ucdavis.edu/~leed/hmap/code/current/
XDISTNAME=	${PORTNAME}
X
XMAINTAINER=	Yonatan@xpert.com
XCOMMENT=	Web server fingerprinting utility
X
XRUN_DEPENDS=	python:${PORTSDIR}/lang/python
X
XNO_WRKSUBDIR=	yes
XNO_BUILD=	yes
XUSE_REINPLACE=	yes
X
Xpost-patch:
X	${CP} ${WRKSRC}/hmap.py ${WRKSRC}/hmap.py.old
X	${TR} -d "\r" < ${WRKSRC}/hmap.py.old > ${WRKSRC}/hmap.py
X	${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|' ${WRKSRC}/hmap.py
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/hmap.py ${PREFIX}/bin/
X	${MKDIR} ${PREFIX}/share/hmap/
X.	for i in apache.1.3.12.win32 apache.2.0.44.win32 apache.1.3.14.win32 badblue.2.1.win32 apache.1.3.17.win32 dwhttpd.4.1a6.solaris.8 apache.1.3.22.win32 hpws.2.00.1454.solaris.8 apache.1.3.23.rhl.7.3 ibm_http_server.2.0.42.win32 apache.1.3.26.freebsd.4.6.2.r iis.5.0.win32 apache.1.3.26.solaris.8 jigsaw.2.0.5.win32 apache.1.3.27.freebsd.4.7 jigsaw.2.2.0.win32 apache.1.3.27.freebsd.5.0 jigsaw.2.2.2.solaris.8 apache.1.3.27.mac.10.1.5 ncsa.1.3.ultrix.4.4 apache.1.3.27.mac.10.2.4 thttpd.2.23beta1.freebsd.4.6.st apache.1.3.27.rhl.8.0 thttpd.2.23beta1.rhl.7.3 apache.1.3.9.win32 zope.2.6.0.solaris.8 apache.2.0.40.rhl.8.0
X		${INSTALL_DATA} ${WRKSRC}/known.servers/$i ${PREFIX}/share/hmap/
X.	endfor
X.	if !defined(NOPORTDOCS)
X		${MKDIR} ${DOCSDIR}
X.		for i in README BUGS GPL FAQS HIDING_GUIDE KNOWN_TESTS
X			${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
X.		endfor
X.	endif
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (hmap.tar.gz) = 83db5c76e7f466d0901a37616fc215f6
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
X"hmap" is a tool for fingerprinting web servers.  Basically, it collects
Xa number of characteristics and compares them with known profiles to find
Xa closest match.  The closest match is its best guess for the identity of
Xthe server.
X
XWWW: http://wwwcsif.cs.ucadvis.edu/~leed/hmap/
END-of-./pkg-descr
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-hmap.py
sed 's/^X//' >./files/patch-hmap.py << 'END-of-./files/patch-hmap.py'
X--- hmap.py.orig	Wed Apr  9 14:47:16 2003
X+++ hmap.py	Wed Apr  9 14:50:45 2003
X@@ -859,7 +859,7 @@
X     sys.exit()
X 
X known_servers = []
X-for f in glob.glob('known.servers/*'):
X+for f in glob.glob('PREFIX/share/hmap/*'):
X     ksf = file(f)
X     ks = eval(ksf.read())
X     known_servers.append(ks)
END-of-./files/patch-hmap.py
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
X@comment $FreeBSD$
Xbin/hmap.py
Xshare/hmap/apache.1.3.12.win32
Xshare/hmap/apache.2.0.44.win32
Xshare/hmap/apache.1.3.14.win32
Xshare/hmap/badblue.2.1.win32
Xshare/hmap/apache.1.3.17.win32
Xshare/hmap/dwhttpd.4.1a6.solaris.8
Xshare/hmap/apache.1.3.22.win32
Xshare/hmap/hpws.2.00.1454.solaris.8
Xshare/hmap/apache.1.3.23.rhl.7.3
Xshare/hmap/ibm_http_server.2.0.42.win32
Xshare/hmap/apache.1.3.26.freebsd.4.6.2.r
Xshare/hmap/iis.5.0.win32
Xshare/hmap/apache.1.3.26.solaris.8
Xshare/hmap/jigsaw.2.0.5.win32
Xshare/hmap/apache.1.3.27.freebsd.4.7
Xshare/hmap/jigsaw.2.2.0.win32
Xshare/hmap/apache.1.3.27.freebsd.5.0
Xshare/hmap/jigsaw.2.2.2.solaris.8
Xshare/hmap/apache.1.3.27.mac.10.1.5
Xshare/hmap/ncsa.1.3.ultrix.4.4
Xshare/hmap/apache.1.3.27.mac.10.2.4
Xshare/hmap/thttpd.2.23beta1.freebsd.4.6.st
Xshare/hmap/apache.1.3.27.rhl.8.0
Xshare/hmap/thttpd.2.23beta1.rhl.7.3
Xshare/hmap/apache.1.3.9.win32
Xshare/hmap/zope.2.6.0.solaris.8
Xshare/hmap/apache.2.0.40.rhl.8.0
X%%PORTDOCS%%share/doc/hmap/README
X%%PORTDOCS%%share/doc/hmap/BUGS
X%%PORTDOCS%%share/doc/hmap/GPL
X%%PORTDOCS%%share/doc/hmap/FAQS
X%%PORTDOCS%%share/doc/hmap/HIDING_GUIDE
X%%PORTDOCS%%share/doc/hmap/KNOWN_TESTS
X%%PORTDOCS%%@dirrm share/doc/hmap
END-of-./pkg-plist
exit
--- hmap.shar ends here ---
>Release-Note:
>Audit-Trail:

From: Foxfair Hu <foxfair@drago.fomokka.net>
To: Yonatan Bokovza <Yonatan@xpert.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/50754: New port: security/hmap - web server fingerprinting tool
Date: Tue, 24 Jun 2003 15:28:48 +0800

 --DKU6Jbt7q3WqK7+M
 Content-Type: multipart/mixed; boundary="Nq2Wo0NMKNjxTN9z"
 Content-Disposition: inline
 
 
 --Nq2Wo0NMKNjxTN9z
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Tue, Jun 24, 2003 at 10:23:08AM +0300, Yonatan Bokovza wrote:
 >
 > Something in my mail emptied your attachment.
 > Please follow-up on ports/50754 and I'll get your patch via
 > GNATS.
 >
 > TIA,
 > Yonatan
 
 How about this diff? I do a little bit of reformatting in Makefile.
 Change post-patch section to pre-patch, to make the patch
 really happened.
 Also delete one line of CVS tag in pkg-comment.
 
 foxfair
 
 
 --Nq2Wo0NMKNjxTN9z
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="hmap.diff"
 Content-Transfer-Encoding: quoted-printable
 
 diff -ruN ../hmap.orig/Makefile ./Makefile
 --- ../hmap.orig/Makefile	Tue Jun 24 13:45:11 2003
 +++ ./Makefile	Tue Jun 24 13:48:27 2003
 @@ -12,7 +12,7 @@
  DISTNAME=3D	${PORTNAME}
 =20
  MAINTAINER=3D	Yonatan@xpert.com
 -COMMENT=3D	Web server fingerprinting utility
 +COMMENT=3D	Web server fingerprinting utility in Python
 =20
  RUN_DEPENDS=3D	python:${PORTSDIR}/lang/python
 =20
 @@ -20,7 +20,7 @@
  NO_BUILD=3D	yes
  USE_REINPLACE=3D	yes
 =20
 -post-patch:
 +pre-patch:
  	${CP} ${WRKSRC}/hmap.py ${WRKSRC}/hmap.py.old
  	${TR} -d "\r" < ${WRKSRC}/hmap.py.old > ${WRKSRC}/hmap.py
  	${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|' ${WRKSRC}/hmap.py
 @@ -28,14 +28,23 @@
  do-install:
  	${INSTALL_SCRIPT} ${WRKSRC}/hmap.py ${PREFIX}/bin/
  	${MKDIR} ${PREFIX}/share/hmap/
 -.	for i in apache.1.3.12.win32 apache.2.0.44.win32 apache.1.3.14.win32 bad=
 blue.2.1.win32 apache.1.3.17.win32 dwhttpd.4.1a6.solaris.8 apache.1.3.22.wi=
 n32 hpws.2.00.1454.solaris.8 apache.1.3.23.rhl.7.3 ibm_http_server.2.0.42.w=
 in32 apache.1.3.26.freebsd.4.6.2.r iis.5.0.win32 apache.1.3.26.solaris.8 ji=
 gsaw.2.0.5.win32 apache.1.3.27.freebsd.4.7 jigsaw.2.2.0.win32 apache.1.3.27=
 =2Efreebsd.5.0 jigsaw.2.2.2.solaris.8 apache.1.3.27.mac.10.1.5 ncsa.1.3.ult=
 rix.4.4 apache.1.3.27.mac.10.2.4 thttpd.2.23beta1.freebsd.4.6.st apache.1.3=
 =2E27.rhl.8.0 thttpd.2.23beta1.rhl.7.3 apache.1.3.9.win32 zope.2.6.0.solari=
 s.8 apache.2.0.40.rhl.8.0
 -		${INSTALL_DATA} ${WRKSRC}/known.servers/$i ${PREFIX}/share/hmap/
 -.	endfor
 -.	if !defined(NOPORTDOCS)
 -		${MKDIR} ${DOCSDIR}
 -.		for i in README BUGS GPL FAQS HIDING_GUIDE KNOWN_TESTS
 -			${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
 -.		endfor
 -.	endif
 +.for i in apache.1.3.12.win32 apache.2.0.44.win32 apache.1.3.14.win32 \
 +	badblue.2.1.win32 apache.1.3.17.win32 dwhttpd.4.1a6.solaris.8 \
 +	apache.1.3.22.win32 hpws.2.00.1454.solaris.8 apache.1.3.23.rhl.7.3 \
 +	ibm_http_server.2.0.42.win32 apache.1.3.26.freebsd.4.6.2.r \
 +	iis.5.0.win32 apache.1.3.26.solaris.8 jigsaw.2.0.5.win32 \
 +	apache.1.3.27.freebsd.4.7 jigsaw.2.2.0.win32 apache.1.3.27.freebsd.5.0 \
 +	jigsaw.2.2.2.solaris.8 apache.1.3.27.mac.10.1.5 ncsa.1.3.ultrix.4.4 \
 +	apache.1.3.27.mac.10.2.4 thttpd.2.23beta1.freebsd.4.6.st \
 +	apache.1.3.27.rhl.8.0 thttpd.2.23beta1.rhl.7.3 apache.1.3.9.win32 \
 +	zope.2.6.0.solaris.8 apache.2.0.40.rhl.8.0
 +	${INSTALL_DATA} ${WRKSRC}/known.servers/$i ${PREFIX}/share/hmap/
 +.endfor
 +.if !defined(NOPORTDOCS)
 +	${MKDIR} ${DOCSDIR}
 +.for i in README BUGS GPL FAQS HIDING_GUIDE KNOWN_TESTS
 +	${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
 +.endfor
 +.endif
 =20
  .include <bsd.port.mk>
 diff -ruN ../hmap.orig/pkg-plist ./pkg-plist
 --- ../hmap.orig/pkg-plist	Tue Jun 24 13:45:11 2003
 +++ ./pkg-plist	Tue Jun 24 13:20:44 2003
 @@ -1,4 +1,3 @@
 -@comment $FreeBSD$
  bin/hmap.py
  share/hmap/apache.1.3.12.win32
  share/hmap/apache.2.0.44.win32
 
 --Nq2Wo0NMKNjxTN9z--
 
 --DKU6Jbt7q3WqK7+M
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+9/2wsWh5Cw3CV+oRAvdoAJ9eB76QAAdROqG9DNluwTg8GG30eQCfXvNF
 ZoTOyGcQsmbTYuR6r5vFUt4=
 =t/Rn
 -----END PGP SIGNATURE-----
 
 --DKU6Jbt7q3WqK7+M--

From: "Yonatan Bokovza" <Yonatan@xpert.com>
To: <freebsd-gnats-submit@FreeBSD.org>,
	"Foxfair Hu" <foxfair@drago.fomokka.net>
Cc:  
Subject: Re: ports/50754: New port: security/hmap - web server fingerprinting tool
Date: Tue, 24 Jun 2003 10:50:53 +0300

 I accept your changes, with one note and one exception:
 -post-patch:
 +pre-patch:
  =20
 Besides moving the files to the right locations, we have
 to accomplish two tasks:
 1. remove ^Ms.
 2. teach the script about the new location of the server
 signatures.
 
 The first is accomplished with the
 ${TR} -d "\r"
 line, and the second with the patch and
 ${REINPLACE_CMD} -e
 line.
 
 In the original shar, the patch contains ^Ms and that
 is why ${TR} needs to be in post-patch.
 It's trivial to remove the ^Ms from the patch and run
 the ${TR} in pre-patch.
 I have no preference.
 
 note:
 The use of "@comment $FreeBSD$" in pkg-plist is unclear
 to me. I don't know why its there in the first place,
 and why isn't it constant in different ports.
 It would be best to decide on a policy, drop a note to
 ports@ and update the docs.

From: Foxfair Hu <foxfair@drago.fomokka.net>
To: Yonatan Bokovza <Yonatan@xpert.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/50754: New port: security/hmap - web server fingerprinting tool
Date: Tue, 24 Jun 2003 16:24:51 +0800

 --jRHKVT23PllUwdXP
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, Jun 24, 2003 at 10:50:53AM +0300, Yonatan Bokovza wrote:
 > I accept your changes, with one note and one exception:
 > -post-patch:
 > +pre-patch:
 >  =20
 > Besides moving the files to the right locations, we have
 > to accomplish two tasks:
 > 1. remove ^Ms.
 > 2. teach the script about the new location of the server
 > signatures.
 >=20
 > The first is accomplished with the
 > ${TR} -d "\r"
 > line, and the second with the patch and
 > ${REINPLACE_CMD} -e
 > line.
 >=20
 > In the original shar, the patch contains ^Ms and that
 > is why ${TR} needs to be in post-patch.
 > It's trivial to remove the ^Ms from the patch and run
 > the ${TR} in pre-patch.
 > I have no preference.
 >=20
 > note:
 > The use of "@comment $FreeBSD$" in pkg-plist is unclear
 > to me. I don't know why its there in the first place,
 > and why isn't it constant in different ports.
 > It would be best to decide on a policy, drop a note to
 > ports@ and update the docs.
 
 Hmm, but it's impossible to apply the patch if I use pre-patch;
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 =3D=3D=3D>  Extracting for hmap-0.1
 >> Checksum OK for hmap.tar.gz.
 =3D=3D=3D>  Patching for hmap-0.1
 =3D=3D=3D>  Applying FreeBSD patches for hmap-0.1
 1 out of 1 hunks failed--saving rejects to hmap.py.rej
 >> Patch patch-hmap.py failed to apply cleanly.
 *** Error code 1
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 
 foxfair
 
 
 
 --jRHKVT23PllUwdXP
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE++ArTsWh5Cw3CV+oRAqfIAJ0Uh6dtIpRlbEiMhIuq01DZ54aKbwCfbV/f
 r6WYq+2qWJvpkS5S9GC7hSQ=
 =n7fA
 -----END PGP SIGNATURE-----
 
 --jRHKVT23PllUwdXP--

From: "Yonatan Bokovza" <Yonatan@xpert.com>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc: <foxfair@drago.fomokka.net>
Subject: Re: ports/50754: New port: security/hmap - web server fingerprinting tool
Date: Tue, 29 Jul 2003 15:41:53 +0300

 Another go.
 Homepage moved, patch fixed, comment removed from plist,
 DOCSDIR is used in plist. Thanks for your patience.
 
 # 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:
 #
 #	.
 #	./Makefile
 #	./distinfo
 #	./pkg-descr
 #	./files
 #	./files/patch-hmap.py
 #	./pkg-plist
 #
 echo c - .
 mkdir -p . > /dev/null 2>&1
 echo x - ./Makefile
 sed 's/^X//' >./Makefile << 'END-of-./Makefile'
 X# Ports collection makefile for:  hmap
 X# Date created:			  29 Apr 2003
 X# Whom:				  Yonatan <Yonatan@xpert.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=3D	hmap
 XPORTVERSION=3D	0.1
 XCATEGORIES=3D	security
 XMASTER_SITES=3D	http://ujeni.murkyroc.com/hmap/code/current/	\
 X		http://wwwcsif.cs.ucdavis.edu/~leed/hmap/code/current/
 XDISTNAME=3D	${PORTNAME}
 X
 XMAINTAINER=3D	Yonatan@xpert.com
 XCOMMENT=3D	Web server fingerprinting utility
 X
 XRUN_DEPENDS=3D	python:${PORTSDIR}/lang/python
 X
 XNO_WRKSUBDIR=3D	yes
 XNO_BUILD=3D	yes
 XUSE_REINPLACE=3D	yes
 X
 Xpre-patch:
 X	${CP} ${WRKSRC}/hmap.py ${WRKSRC}/hmap.py.old
 X	${TR} -d "\r" < ${WRKSRC}/hmap.py.old > ${WRKSRC}/hmap.py
 X
 Xpost-patch:
 X	${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|' ${WRKSRC}/hmap.py
 X
 Xdo-install:
 X	${INSTALL_SCRIPT} ${WRKSRC}/hmap.py ${PREFIX}/bin/
 X	${MKDIR} ${PREFIX}/share/hmap/
 X.	for i in apache.1.3.12.win32 apache.2.0.44.win32 apache.1.3.14.win32 =
 badblue.2.1.win32 apache.1.3.17.win32 dwhttpd.4.1a6.solaris.8 =
 apache.1.3.22.win32 hpws.2.00.1454.solaris.8 apache.1.3.23.rhl.7.3 =
 ibm_http_server.2.0.42.win32 apache.1.3.26.freebsd.4.6.2.r iis.5.0.win32 =
 apache.1.3.26.solaris.8 jigsaw.2.0.5.win32 apache.1.3.27.freebsd.4.7 =
 jigsaw.2.2.0.win32 apache.1.3.27.freebsd.5.0 jigsaw.2.2.2.solaris.8 =
 apache.1.3.27.mac.10.1.5 ncsa.1.3.ultrix.4.4 apache.1.3.27.mac.10.2.4 =
 thttpd.2.23beta1.freebsd.4.6.st apache.1.3.27.rhl.8.0 =
 thttpd.2.23beta1.rhl.7.3 apache.1.3.9.win32 zope.2.6.0.solaris.8 =
 apache.2.0.40.rhl.8.0
 X		${INSTALL_DATA} ${WRKSRC}/known.servers/$i ${PREFIX}/share/hmap/
 X.	endfor
 X.	if !defined(NOPORTDOCS)
 X		${MKDIR} ${DOCSDIR}
 X.		for i in README BUGS GPL FAQS HIDING_GUIDE KNOWN_TESTS
 X			${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
 X.		endfor
 X.	endif
 X
 X.include <bsd.port.mk>
 END-of-./Makefile
 echo x - ./distinfo
 sed 's/^X//' >./distinfo << 'END-of-./distinfo'
 XMD5 (hmap.tar.gz) =3D 83db5c76e7f466d0901a37616fc215f6
 END-of-./distinfo
 echo x - ./pkg-descr
 sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
 X"hmap" is a tool for fingerprinting web servers.  Basically, it =
 collects
 Xa number of characteristics and compares them with known profiles to =
 find
 Xa closest match.  The closest match is its best guess for the identity =
 of
 Xthe server.
 X
 XWWW: http://ujeni.murkyroc.com/hmap/
 END-of-./pkg-descr
 echo c - ./files
 mkdir -p ./files > /dev/null 2>&1
 echo x - ./files/patch-hmap.py
 sed 's/^X//' >./files/patch-hmap.py << 'END-of-./files/patch-hmap.py'
 X--- hmap.py.orig	Wed Apr  9 14:47:16 2003
 X+++ hmap.py	Wed Apr  9 14:50:45 2003
 X@@ -859,7 +859,7 @@
 X     sys.exit()
 X=20
 X known_servers =3D []
 X-for f in glob.glob('known.servers/*'):
 X+for f in glob.glob('PREFIX/share/hmap/*'):
 X     ksf =3D file(f)
 X     ks =3D eval(ksf.read())
 X     known_servers.append(ks)
 END-of-./files/patch-hmap.py
 echo x - ./pkg-plist
 sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
 Xbin/hmap.py
 Xshare/hmap/apache.1.3.12.win32
 Xshare/hmap/apache.2.0.44.win32
 Xshare/hmap/apache.1.3.14.win32
 Xshare/hmap/badblue.2.1.win32
 Xshare/hmap/apache.1.3.17.win32
 Xshare/hmap/dwhttpd.4.1a6.solaris.8
 Xshare/hmap/apache.1.3.22.win32
 Xshare/hmap/hpws.2.00.1454.solaris.8
 Xshare/hmap/apache.1.3.23.rhl.7.3
 Xshare/hmap/ibm_http_server.2.0.42.win32
 Xshare/hmap/apache.1.3.26.freebsd.4.6.2.r
 Xshare/hmap/iis.5.0.win32
 Xshare/hmap/apache.1.3.26.solaris.8
 Xshare/hmap/jigsaw.2.0.5.win32
 Xshare/hmap/apache.1.3.27.freebsd.4.7
 Xshare/hmap/jigsaw.2.2.0.win32
 Xshare/hmap/apache.1.3.27.freebsd.5.0
 Xshare/hmap/jigsaw.2.2.2.solaris.8
 Xshare/hmap/apache.1.3.27.mac.10.1.5
 Xshare/hmap/ncsa.1.3.ultrix.4.4
 Xshare/hmap/apache.1.3.27.mac.10.2.4
 Xshare/hmap/thttpd.2.23beta1.freebsd.4.6.st
 Xshare/hmap/apache.1.3.27.rhl.8.0
 Xshare/hmap/thttpd.2.23beta1.rhl.7.3
 Xshare/hmap/apache.1.3.9.win32
 Xshare/hmap/zope.2.6.0.solaris.8
 Xshare/hmap/apache.2.0.40.rhl.8.0
 X%%PORTDOCS%%%%DOCSDIR%%/README
 X%%PORTDOCS%%%%DOCSDIR%%/BUGS
 X%%PORTDOCS%%%%DOCSDIR%%/GPL
 X%%PORTDOCS%%%%DOCSDIR%%/FAQS
 X%%PORTDOCS%%%%DOCSDIR%%/HIDING_GUIDE
 X%%PORTDOCS%%%%DOCSDIR%%/KNOWN_TESTS
 X%%PORTDOCS%%@dirrm share/doc/hmap
 X@dirrm share/hmap
 END-of-./pkg-plist
 exit
 
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Thu Sep 4 06:28:29 PDT 2003 
State-Changed-Why:  
Commited, thanks! 

programmers these days... 
[~/ports/net/xprobe/files] edwin@ref5>hmap.py  
Traceback (most recent call last): 
File "/home/edwin/local-5/bin/hmap.py", line 839, in ? 
target_url = args[0] 
IndexError: list index out of range 


http://www.freebsd.org/cgi/query-pr.cgi?pr=50754 
>Unformatted:
