Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2003 15:58:39 +0200 (CEST)
From:      Patrick MARIE <mycroft@virgaria.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53319: New port: yaph 0.91
Message-ID:  <200306141358.h5EDwdt0093859@saturnine.virgaria.org>
Resent-Message-ID: <200306141400.h5EE0YZ9069201@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         53319
>Category:       ports
>Synopsis:       New port: yaph 0.91
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 14 07:00:30 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Patrick MARIE
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
epplug.org
>Environment:
System: FreeBSD saturnine.virgaria.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Jun 11 14:23:27 CEST 2003 mycroft@saturnine.virgaria.org:/usr/obj/usr/src/sys/saturnine i386

>Description:
	New port, yaph (yet another proxy scanner), 0.91

	Yaph provides the ability to reveal public proxy servers.

>How-To-Repeat:
>Fix:

--- yaph.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:
#
#	yaph
#	yaph/Makefile
#	yaph/distinfo
#	yaph/files
#	yaph/files/patch-yaph::includes.h
#	yaph/files/patch-::config.h.in
#	yaph/files/patch-yaph::init.c
#	yaph/files/patch-::configure
#	yaph/pkg-descr
#	yaph/pkg-plist
#
echo c - yaph
mkdir -p yaph > /dev/null 2>&1
echo x - yaph/Makefile
sed 's/^X//' >yaph/Makefile << 'END-of-yaph/Makefile'
X# New ports collection makefile for:	yaph
X# Date created:		14 jui 2003
X# Whom:			Patrick MARIE <mycroft@virgaria.org>
X# $FreeBSD$
X
XPORTNAME=	yaph
XPORTVERSION=	0.91
XCATEGORIES=	net
XMASTER_SITES=	http://proxylabs.netwu.com/download/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	mycroft@virgaria.org
XCOMMENT=	Yaph is a proxy scanner
X
XLIB_DEPENDS=	gnugetopt:${PORTSDIR}/devel/libgnugetopt
X
XUSE_GETOPT_LONG=yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
XUSE_REINPLACE=	yes
X
Xpost-extract:
X	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
X		${WRKSRC}/yaph/Makefile.in
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/yaph/yaph ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/yaph/yaph.conf ${PREFIX}/etc
X
X.include <bsd.port.mk>
END-of-yaph/Makefile
echo x - yaph/distinfo
sed 's/^X//' >yaph/distinfo << 'END-of-yaph/distinfo'
XMD5 (yaph-0.91.tar.gz) = 8e224cc7a6d8e4cab4c6daa21cfa0837
END-of-yaph/distinfo
echo c - yaph/files
mkdir -p yaph/files > /dev/null 2>&1
echo x - yaph/files/patch-yaph::includes.h
sed 's/^X//' >yaph/files/patch-yaph::includes.h << 'END-of-yaph/files/patch-yaph::includes.h'
X--- yaph/includes.h.orig	Sat Jun 14 14:18:47 2003
X+++ yaph/includes.h	Sat Jun 14 14:18:58 2003
X@@ -23,6 +23,7 @@
X #include <sys/stat.h>
X #include <string.h>
X #include <errno.h>
X+#include <netinet/in.h>
X #include <arpa/inet.h>
X #include <pthread.h>
X #include <signal.h>
END-of-yaph/files/patch-yaph::includes.h
echo x - yaph/files/patch-::config.h.in
sed 's/^X//' >yaph/files/patch-::config.h.in << 'END-of-yaph/files/patch-::config.h.in'
X--- config.h.in.old	Sat Jun 14 15:05:50 2003
X+++ config.h.in	Sat Jun 14 15:06:04 2003
X@@ -9,3 +9,6 @@
X /* C++ compiler supports template repository */
X #undef HAVE_TEMPLATE_REPOSITORY
X 
X+/* PREFIX needed in init.c */
X+#undef PREFIX
X+
END-of-yaph/files/patch-::config.h.in
echo x - yaph/files/patch-yaph::init.c
sed 's/^X//' >yaph/files/patch-yaph::init.c << 'END-of-yaph/files/patch-yaph::init.c'
X--- yaph/init.c.orig	Sat Jun 14 14:52:31 2003
X+++ yaph/init.c	Sat Jun 14 14:52:41 2003
X@@ -127,7 +127,7 @@
X FILE *cnf=NULL;
X char buff[1024];
X 	if(!(cnf=fopen("./yaph.conf","rb")))
X-		if(!(cnf=fopen("/etc/yaph.conf","rb")))
X+		if(!(cnf=fopen(PREFIX "/etc/yaph.conf","rb")))
X 			goto no_file;
X 	while(fgets(buff,sizeof(buff),cnf))
X 	{
END-of-yaph/files/patch-yaph::init.c
echo x - yaph/files/patch-::configure
sed 's/^X//' >yaph/files/patch-::configure << 'END-of-yaph/files/patch-::configure'
X--- configure.old	Sun Feb  9 06:37:18 2003
X+++ configure	Sat Jun 14 15:03:07 2003
X@@ -854,6 +854,8 @@
X 
X VERSION=0.91
X 
X+PREFIX=$prefix
X+
X if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
X   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
X fi
X@@ -863,6 +865,10 @@
X 
X cat >> confdefs.h <<EOF
X #define VERSION "$VERSION"
X+EOF
X+
X+cat >> confdefs.h <<EOF
X+#define PREFIX "$PREFIX"
X EOF
X 
X 
END-of-yaph/files/patch-::configure
echo x - yaph/pkg-descr
sed 's/^X//' >yaph/pkg-descr << 'END-of-yaph/pkg-descr'
XYAPH - Yet Another Proxy Hunter
XYaph provides the ability to reveal public proxy servers.
X
XWWW: http://proxylabs.netwu.com/yaph/index.html 
END-of-yaph/pkg-descr
echo x - yaph/pkg-plist
sed 's/^X//' >yaph/pkg-plist << 'END-of-yaph/pkg-plist'
Xbin/yaph
Xetc/yaph.conf
END-of-yaph/pkg-plist
exit
--- yaph.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306141358.h5EDwdt0093859>