aboutsummaryrefslogtreecommitdiff
path: root/net/yaph
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-10 05:35:54 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-10 05:35:54 +0000
commit3f463d1310ead0cb1bae4eb1cce7197b49c3fee1 (patch)
tree2237cbeaf1b78a8b49252d6ec0bfca4ee2312831 /net/yaph
parentc4a25f6b2ae5d1cdad338b32fe86dbc85384ec22 (diff)
downloadports-3f463d1310ead0cb1bae4eb1cce7197b49c3fee1.tar.gz
ports-3f463d1310ead0cb1bae4eb1cce7197b49c3fee1.zip
New port: yaph 0.91
New port, yaph (yet another proxy scanner), 0.91 Yaph provides the ability to reveal public proxy servers. PR: ports/53319 Submitted by: Patrick MARIE <mycroft@virgaria.org>
Notes
Notes: svn path=/head/; revision=90744
Diffstat (limited to 'net/yaph')
-rw-r--r--net/yaph/Makefile31
-rw-r--r--net/yaph/distinfo1
-rw-r--r--net/yaph/files/patch-::config.h.in9
-rw-r--r--net/yaph/files/patch-::configure22
-rw-r--r--net/yaph/files/patch-yaph::includes.h10
-rw-r--r--net/yaph/files/patch-yaph::init.c11
-rw-r--r--net/yaph/pkg-descr4
-rw-r--r--net/yaph/pkg-plist2
8 files changed, 90 insertions, 0 deletions
diff --git a/net/yaph/Makefile b/net/yaph/Makefile
new file mode 100644
index 000000000000..973419a9d5ae
--- /dev/null
+++ b/net/yaph/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: yaph
+# Date created: 14 jui 2003
+# Whom: Patrick MARIE <mycroft@virgaria.org>
+# $FreeBSD$
+
+PORTNAME= yaph
+PORTVERSION= 0.91
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= mycroft@virgaria.org
+COMMENT= Yaph is a proxy scanner
+
+LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+
+USE_GETOPT_LONG=yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+USE_REINPLACE= yes
+
+post-extract:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/yaph/Makefile.in
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/yaph/yaph ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/yaph/yaph.conf ${PREFIX}/etc
+
+.include <bsd.port.mk>
diff --git a/net/yaph/distinfo b/net/yaph/distinfo
new file mode 100644
index 000000000000..1487087e48f5
--- /dev/null
+++ b/net/yaph/distinfo
@@ -0,0 +1 @@
+MD5 (yaph-0.91.tar.gz) = f09edd5ba42c671f2d62760bf58604ec
diff --git a/net/yaph/files/patch-::config.h.in b/net/yaph/files/patch-::config.h.in
new file mode 100644
index 000000000000..33ccc45e7027
--- /dev/null
+++ b/net/yaph/files/patch-::config.h.in
@@ -0,0 +1,9 @@
+--- config.h.in.old Sat Jun 14 15:05:50 2003
++++ config.h.in Sat Jun 14 15:06:04 2003
+@@ -9,3 +9,6 @@
+ /* C++ compiler supports template repository */
+ #undef HAVE_TEMPLATE_REPOSITORY
+
++/* PREFIX needed in init.c */
++#undef PREFIX
++
diff --git a/net/yaph/files/patch-::configure b/net/yaph/files/patch-::configure
new file mode 100644
index 000000000000..6a1e88203f5a
--- /dev/null
+++ b/net/yaph/files/patch-::configure
@@ -0,0 +1,22 @@
+--- configure.old Sun Feb 9 06:37:18 2003
++++ configure Sat Jun 14 15:03:07 2003
+@@ -854,6 +854,8 @@
+
+ VERSION=0.91
+
++PREFIX=$prefix
++
+ if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
+ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
+ fi
+@@ -863,6 +865,10 @@
+
+ cat >> confdefs.h <<EOF
+ #define VERSION "$VERSION"
++EOF
++
++cat >> confdefs.h <<EOF
++#define PREFIX "$PREFIX"
+ EOF
+
+
diff --git a/net/yaph/files/patch-yaph::includes.h b/net/yaph/files/patch-yaph::includes.h
new file mode 100644
index 000000000000..e3bfc1d54292
--- /dev/null
+++ b/net/yaph/files/patch-yaph::includes.h
@@ -0,0 +1,10 @@
+--- yaph/includes.h.orig Sat Jun 14 14:18:47 2003
++++ yaph/includes.h Sat Jun 14 14:18:58 2003
+@@ -23,6 +23,7 @@
+ #include <sys/stat.h>
+ #include <string.h>
+ #include <errno.h>
++#include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <pthread.h>
+ #include <signal.h>
diff --git a/net/yaph/files/patch-yaph::init.c b/net/yaph/files/patch-yaph::init.c
new file mode 100644
index 000000000000..235005979bab
--- /dev/null
+++ b/net/yaph/files/patch-yaph::init.c
@@ -0,0 +1,11 @@
+--- yaph/init.c.orig Sat Jun 14 14:52:31 2003
++++ yaph/init.c Sat Jun 14 14:52:41 2003
+@@ -127,7 +127,7 @@
+ FILE *cnf=NULL;
+ char buff[1024];
+ if(!(cnf=fopen("./yaph.conf","rb")))
+- if(!(cnf=fopen("/etc/yaph.conf","rb")))
++ if(!(cnf=fopen(PREFIX "/etc/yaph.conf","rb")))
+ goto no_file;
+ while(fgets(buff,sizeof(buff),cnf))
+ {
diff --git a/net/yaph/pkg-descr b/net/yaph/pkg-descr
new file mode 100644
index 000000000000..8bec881bf56d
--- /dev/null
+++ b/net/yaph/pkg-descr
@@ -0,0 +1,4 @@
+YAPH - Yet Another Proxy Hunter
+Yaph provides the ability to reveal public proxy servers.
+
+WWW: http://proxylabs.netwu.com/yaph/index.html
diff --git a/net/yaph/pkg-plist b/net/yaph/pkg-plist
new file mode 100644
index 000000000000..d48482e5075d
--- /dev/null
+++ b/net/yaph/pkg-plist
@@ -0,0 +1,2 @@
+bin/yaph
+etc/yaph.conf