Fix whisker operation.

Submitted by:	Roman Shterenzon <roman@xpert.com>
PR:		23850
This commit is contained in:
Kris Kennaway 2001-01-18 09:34:11 +00:00
parent 26b2a64ca5
commit 2d69c6f634
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37288
3 changed files with 21 additions and 11 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= whisker
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.wiretrip.net/rfp/bins/whisker/
DISTNAME= ${PORTNAME}
@ -14,14 +15,12 @@ DISTNAME= ${PORTNAME}
MAINTAINER= kris@FreeBSD.ORG
WRKSRC= ${WRKDIR}/v${PORTVERSION}
do-build:
(cd ${WRKSRC}; ${SED} "s%y0y0y0%${PREFIX}%g" whisker.pl > whisker)
NO_BUILD= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/whisker ${PREFIX}/bin
${MKDIR} ${PREFIX}/lib/whisker
${INSTALL_DATA} ${WRKSRC}/*.db ${PREFIX}/lib/whisker
${INSTALL_SCRIPT} ${WRKSRC}/whisker.pl ${PREFIX}/bin/whisker
${MKDIR} ${PREFIX}/share/whisker
${INSTALL_DATA} ${WRKSRC}/*.db ${PREFIX}/share/whisker
${MKDIR} ${PREFIX}/share/doc/whisker
${INSTALL_DATA} ${WRKSRC}/whisker.txt ${PREFIX}/share/doc/whisker

View file

@ -0,0 +1,11 @@
--- whisker.pl.orig Tue Dec 26 11:26:37 2000
+++ whisker.pl Tue Dec 26 11:39:54 2000
@@ -3,7 +3,7 @@
$whisker_version="1.4.0";
$WHEREIS_WHISKER=$0;
-$WHEREIS_WHISKER=~s/[^\/\\]+$//;
+$WHEREIS_WHISKER=~s|\w+/[^\/\\]+$|share/whisker/|;
$GLOBAL_HTMLOUTPUT=0;
use Socket; use Getopt::Std;

View file

@ -1,8 +1,8 @@
bin/whisker
lib/whisker/brute.db
lib/whisker/dumb.db
lib/whisker/scan.db
lib/whisker/server.db
@dirrm lib/whisker
share/whisker/brute.db
share/whisker/dumb.db
share/whisker/scan.db
share/whisker/server.db
@dirrm share/whisker
share/doc/whisker/whisker.txt
@dirrm share/doc/whisker