aboutsummaryrefslogtreecommitdiff
path: root/net/yaph
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-08-10 16:12:16 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-08-10 16:12:16 +0000
commitb9fb5f2e00e9837d23515c2da0cadc92e8e4b92e (patch)
tree48091ec7bd331109466057d6a91bff10f01409d5 /net/yaph
parent20e4709efcaf22afc16f831dd0e61929e6f5f6f6 (diff)
downloadports-b9fb5f2e00e9837d23515c2da0cadc92e8e4b92e.tar.gz
ports-b9fb5f2e00e9837d23515c2da0cadc92e8e4b92e.zip
Fix build with gcc 3.4
PR: 70200 Submitted by: Patrick MARIE <mycroft@virgaria.org> Remove uneeded dependency on gnugetopt on CURRENT.
Notes
Notes: svn path=/head/; revision=115843
Diffstat (limited to 'net/yaph')
-rw-r--r--net/yaph/Makefile3
-rw-r--r--net/yaph/files/patch-yaph::init.c29
2 files changed, 24 insertions, 8 deletions
diff --git a/net/yaph/Makefile b/net/yaph/Makefile
index 973419a9d5ae..07dca1954f18 100644
--- a/net/yaph/Makefile
+++ b/net/yaph/Makefile
@@ -13,11 +13,8 @@ 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:
diff --git a/net/yaph/files/patch-yaph::init.c b/net/yaph/files/patch-yaph::init.c
index 235005979bab..2868cbb32b81 100644
--- a/net/yaph/files/patch-yaph::init.c
+++ b/net/yaph/files/patch-yaph::init.c
@@ -1,11 +1,30 @@
---- 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 @@
+--- yaph/init.c.orig Sun Feb 9 07:33:04 2003
++++ yaph/init.c Mon Aug 9 10:41:24 2004
+@@ -105,6 +105,7 @@
+ globals->content_data=malloc(1024*8);
+ if(!globals->content_data)
+ exit_error(errno);
++bzero(globals->content_data, 1024 * 8);
+ globals->content_request=malloc(1024*8);
+ if(!globals->content_request)
+ exit_error(errno);
+@@ -127,8 +128,9 @@
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;
+- goto no_file;
++ cnf=fopen(PREFIX "/etc/yaph.conf","rb");
++
++ if(cnf != NULL)
while(fgets(buff,sizeof(buff),cnf))
{
+ if(buff[strspn(buff," ")]!='#')
+@@ -200,7 +202,6 @@
+ }
+ }
+ }
+- no_file:
+ }
+
+ // ------ open files