summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/whisker/DESCR5
-rw-r--r--www/whisker/Makefile31
-rw-r--r--www/whisker/PLIST12
-rw-r--r--www/whisker/distinfo5
-rw-r--r--www/whisker/patches/patch-aa22
5 files changed, 75 insertions, 0 deletions
diff --git a/www/whisker/DESCR b/www/whisker/DESCR
new file mode 100644
index 00000000000..35463447867
--- /dev/null
+++ b/www/whisker/DESCR
@@ -0,0 +1,5 @@
+The primary purpose of whisker is to be a URL scanner, which is
+used to search for known vulnerable CGIs on websites. Whisker does
+this by both scanning the the CGIs directly as well as crawling the
+website in order to determine what CGIs are already currently in
+use.
diff --git a/www/whisker/Makefile b/www/whisker/Makefile
new file mode 100644
index 00000000000..15210e72f08
--- /dev/null
+++ b/www/whisker/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/04/06 12:29:40 hubertf Exp $
+
+DISTNAME= whisker-2.1
+CATEGORIES= security www
+MASTER_SITES= http://www.wiretrip.net/rfp/bins/whisker/
+
+MAINTAINER= adrianp@stindustries.net
+HOMEPAGE= http://www.wiretrip.net/rfp/
+COMMENT= URL scanner used to search for known vulnerable CGIs on websites
+
+DEPENDS+= p5-Net-SSLeay>=1.20:../../security/p5-Net-SSLeay
+
+USE_PERL5= YES
+REPLACE_PERL= whisker.pl
+
+do-build:
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/whisker.pl > ${WRKSRC}/whisker
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/whisker
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/whisker
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${PREFIX}/share/doc/whisker
+ ${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/whisker
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/whisker
+ ${INSTALL_SCRIPT} ${WRKSRC}/whisker ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/LW.pm ${PREFIX}/share/whisker
+ ${INSTALL_DATA} ${WRKSRC}/html.plugin ${PREFIX}/share/whisker
+ ${INSTALL_DATA} ${WRKSRC}/main.test ${PREFIX}/share/whisker
+ ${INSTALL_DATA} ${WRKSRC}/newbie.help ${PREFIX}/share/whisker
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/whisker/PLIST b/www/whisker/PLIST
new file mode 100644
index 00000000000..058e78c209e
--- /dev/null
+++ b/www/whisker/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/06 12:29:40 hubertf Exp $
+bin/whisker
+share/doc/whisker/plugins.txt
+share/doc/whisker/tests.txt
+share/doc/whisker/CHANGES
+share/doc/whisker/README
+share/whisker/LW.pm
+share/whisker/html.plugin
+share/whisker/main.test
+share/whisker/newbie.help
+@dirrm share/doc/whisker
+@dirrm share/whisker
diff --git a/www/whisker/distinfo b/www/whisker/distinfo
new file mode 100644
index 00000000000..82432f481fa
--- /dev/null
+++ b/www/whisker/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/04/06 12:29:40 hubertf Exp $
+
+SHA1 (whisker-2.1.tar.gz) = 74e4bcd0392e42ca26c4a353ce3aa0506cff10c2
+Size (whisker-2.1.tar.gz) = 62861 bytes
+SHA1 (patch-aa) = 4505f522e0d815dc2d72c9daca3ab1c55505bb2c
diff --git a/www/whisker/patches/patch-aa b/www/whisker/patches/patch-aa
new file mode 100644
index 00000000000..c48cf2ddfaf
--- /dev/null
+++ b/www/whisker/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/04/06 12:29:40 hubertf Exp $
+
+--- whisker.pl.orig Wed Nov 27 22:13:13 2002
++++ whisker.pl Fri Jan 3 22:42:57 2003
+@@ -25,7 +25,7 @@
+ if($^O =~ /Win32/){
+ $WHISKER_DIR='C:\\program files\\whisker\\';
+ } else {
+- $WHISKER_DIR='/usr/local/share/whisker/';
++ $WHISKER_DIR='@PREFIX@/share/whisker/';
+ }
+ }
+
+@@ -58,7 +58,7 @@
+ eval 'use LW';
+ if($@){ $LW=0;
+ if(-e $WHISKER_DIR.'LW.pm'){
+- eval "require $WHISKER_DIR".'LW.pm';
++ eval "require '$WHISKER_DIR'.'LW.pm'";
+ if(!$@){$LW++;}}
+ } else { $LW++; }
+ if(!$LW){