From nobody@FreeBSD.org  Fri Jul  4 03:55:56 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CCE2F1065692
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Jul 2008 03:55:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B8EA28FC27
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Jul 2008 03:55:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m643tuSe023437
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 Jul 2008 03:55:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m643tuTi023436;
	Fri, 4 Jul 2008 03:55:56 GMT
	(envelope-from nobody)
Message-Id: <200807040355.m643tuTi023436@www.freebsd.org>
Date: Fri, 4 Jul 2008 03:55:56 GMT
From: Steven Kreuzer <skreuzer@exit2shell.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New Port: security/ratproxy
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         125249
>Category:       ports
>Synopsis:       New Port: security/ratproxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 04 04:00:11 UTC 2008
>Closed-Date:    Tue Jul 08 21:35:34 UTC 2008
>Last-Modified:  Tue Jul  8 21:40:03 UTC 2008
>Originator:     Steven Kreuzer
>Release:        7.0-STABLE
>Organization:
>Environment:
FreeBSD erdinger.lab.exit2shell.com 7.0-STABLE FreeBSD 7.0-STABLE #9: Mon Jun 30 14:28:58 EDT 2008     root@erdinger.lab.exit2shell.com:/usr/obj/usr/src/sys/ERDINGER  i386
>Description:
Ratproxy is a semi-automated, largely passive web application security audit tool. It is meant to complement active crawlers and manual proxies more commonly used for this task, and is optimized specifically for an accurate and sensitive detection, and automatic annotation, of potential problems and security-relevant design patterns based on the observation of existing, user-initiated traffic in complex web 2.0 environments.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	./ratproxy
#	./ratproxy/Makefile
#	./ratproxy/pkg-descr
#	./ratproxy/pkg-plist
#	./ratproxy/distinfo
#	./ratproxy/files
#	./ratproxy/files/patch-Makefile
#
echo c - ./ratproxy
mkdir -p ./ratproxy > /dev/null 2>&1
echo x - ./ratproxy/Makefile
sed 's/^X//' >./ratproxy/Makefile << '1e1369e33b18e80f711189af13282a0d'
X# New ports collection makefile for:	ratproxy
X# Date created:        3 July 2008
X# Whom:                Steven Kreuzer <skreuzer@exit2shell.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ratproxy
XPORTVERSION=	1.51
XCATEGORIES=	security
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER= skreuzer@exit2shell.com
XCOMMENT=   Semi-automated, largely passive web application security audit tool
X
XUSE_OPENSSL=	YES
XWRKSRC=			${WRKDIR}/${PORTNAME}
XPLIST_FILES=	bin/ratproxy \
X				bin/ratproxy-report.sh
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/ratproxy ${PREFIX}/bin
X	@${INSTALL_SCRIPT} ${WRKSRC}/ratproxy-report.sh ${PREFIX}/bin
X
X.include <bsd.port.mk>
1e1369e33b18e80f711189af13282a0d
echo x - ./ratproxy/pkg-descr
sed 's/^X//' >./ratproxy/pkg-descr << '26ef8dfefd1287f58eac35e47e06fab4'
XRatproxy is a semi-automated, largely passive web application security audit
Xtool. It is meant to complement active crawlers and manual proxies more
Xcommonly used for this task, and is optimized specifically for an accurate and
Xsensitive detection, and automatic annotation, of potential problems and
Xsecurity-relevant design patterns based on the observation of existing,
Xuser-initiated traffic in complex web 2.0 environments.
X
XWWW: http://code.google.com/p/ratproxy/
26ef8dfefd1287f58eac35e47e06fab4
echo x - ./ratproxy/pkg-plist
sed 's/^X//' >./ratproxy/pkg-plist << '5e6e653f065113c1df557c4d5093dff6'
Xbin/ratproxy
Xbin/ratproxy-report.sh
5e6e653f065113c1df557c4d5093dff6
echo x - ./ratproxy/distinfo
sed 's/^X//' >./ratproxy/distinfo << '679301db26ec810d75ad202bdbdfe54d'
XMD5 (ratproxy-1.51.tar.gz) = 40e47c86c8beaf01dabe4eae9458cf13
XSHA256 (ratproxy-1.51.tar.gz) = f58a40d021988874c1bac177413c7b07b985721ff1282cd6734623c08fed634b
XSIZE (ratproxy-1.51.tar.gz) = 168409
679301db26ec810d75ad202bdbdfe54d
echo c - ./ratproxy/files
mkdir -p ./ratproxy/files > /dev/null 2>&1
echo x - ./ratproxy/files/patch-Makefile
sed 's/^X//' >./ratproxy/files/patch-Makefile << '71918dd08205674b0c916e2f39632363'
X--- Makefile.orig	2008-07-03 23:38:31.000000000 -0400
X+++ Makefile	2008-07-03 23:38:53.000000000 -0400
X@@ -23,18 +23,10 @@
X CFLAGS	 = -Wall -O3 -Wno-pointer-sign -D_GNU_SOURCE
X LDFLAGS  = -lcrypto -lssl
X 
X-all: $(PROGNAME) flare-check
X+all: $(PROGNAME)
X 
X $(PROGNAME): $(PROGNAME).c http.c mime.c ssl.c http.h mime.h ssl.h nlist.h config.h debug.h types.h string-inl.h
X 	$(CC) $(PROGNAME).c -o $(PROGNAME)  $(CFLAGS) http.c mime.c ssl.c $(LDFLAGS)
X 
X-flare-check:
X-	@flare-dist/flare 2>&1 | grep -qF Igor || ( \
X-	  echo; \
X-	  echo '*** WARNING: 'flare-dist/flare' bianry is not operational.'; \
X-	  echo '*** Please see flare-dist/README and update it for your OS.'; \
X-	  echo )
X-
X clean:
X 	rm -f $(PROGNAME) *.exe *.o *~ a.out core core.[1-9][0-9]* *.stackdump
X-
71918dd08205674b0c916e2f39632363
exit



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Tue Jul 8 09:24:50 UTC 2008 
State-Changed-Why:  
Does not compile on my 6.3/amd64 system: 

cc ratproxy.c -o ratproxy  -Wall -O3 -Wno-pointer-sign -D_GNU_SOURCE http.c mime.c ssl.c -lcrypto -lssl 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
*** Error code 1 

maybe that compiler flag is 4.x specific? Do we need it? 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Tue Jul 8 09:24:50 UTC 2008 
Responsible-Changed-Why:  
Does not compile on my 6.3/amd64 system: 

cc ratproxy.c -o ratproxy  -Wall -O3 -Wno-pointer-sign -D_GNU_SOURCE http.c mime.c ssl.c -lcrypto -lssl 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
cc1: error: unrecognized command line option "-Wno-pointer-sign" 
*** Error code 1 

maybe that compiler flag is 4.x specific? Do we need it? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125249 

From: "wen heping" <wenheping@gmail.com>
To: bug-followup@FreeBSD.org, skreuzer@exit2shell.com
Cc:  
Subject: Re: ports/125249: New Port: security/ratproxy
Date: Tue, 8 Jul 2008 21:35:53 +0800

 ------=_Part_22144_21852411.1215524153816
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 HI:
 
    Today I create this same ports ,then found I am too late.
 
    I think add below lines to the Makefile could resolve pav's problem:
 
    post-patch:
         cd ${WRKSRC} && \
                 ${REINPLACE_CMD} -e 's#-Wno-pointer-sign##g' Makefile
 
    Good Luck.
 
 
                                        wenheping@gmail.com
                                           20080708
 
 ------=_Part_22144_21852411.1215524153816
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 <style></style><div><font size="2">HI:</font></div>
 <div><font size="2"></font>&nbsp;</div>
 <div><font size="2">&nbsp;&nbsp; Today I create this same ports ,then found I am too 
 late.</font></div>
 <div><font size="2"></font>&nbsp;</div>
 <div><font size="2">&nbsp;&nbsp; I think add below lines to the Makefile could resolve pav&#39;s 
 problem:</font></div>
 <div><font size="2"></font>&nbsp;</div>
 <div><font size="2">&nbsp;&nbsp; post-patch:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd ${WRKSRC} &amp;&amp; 
 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${REINPLACE_CMD} -e &#39;s#-Wno-pointer-sign##g&#39; 
 Makefile</font></div>
 <div><font size="2"></font>&nbsp;</div>
 <div><font size="2">&nbsp;&nbsp; Good Luck.</font></div>
 <div><font size="2"></font>&nbsp;</div>
 <div><font size="2"></font>&nbsp;</div>
 <div><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:wenheping@gmail.com">wenheping@gmail.com</a></font></div>
 <div><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 20080708</font></div>
 
 ------=_Part_22144_21852411.1215524153816--

From: Steven Kreuzer <skreuzer@exit2shell.com>
To: Cc: bug-followup@FreeBSD.org
Subject: Re: ports/125249: New Port: security/ratproxy
Date: Tue, 08 Jul 2008 15:40:57 -0400

 This is a multi-part message in MIME format.
 --------------050200050306070901060008
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Attached patch should resolve the issue of trying to compile ratproxy 
 with a version of gcc less then 4
 
 --------------050200050306070901060008
 Content-Type: text/plain;
  name="Makefile.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="Makefile.txt"
 
 --- Makefile.orig	2008-07-08 15:39:01.000000000 -0400
 +++ Makefile	2008-07-08 15:39:40.000000000 -0400
 @@ -18,8 +18,15 @@
  PLIST_FILES=	bin/ratproxy \
  				bin/ratproxy-report.sh
  
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} < 700042
 +post-patch:
 +	${REINPLACE_CMD} -e 's#-Wno-pointer-sign##g' ${WRKSRC}/Makefile
 +.endif
 +
  do-install:
  	@${INSTALL_PROGRAM} ${WRKSRC}/ratproxy ${PREFIX}/bin
  	@${INSTALL_SCRIPT} ${WRKSRC}/ratproxy-report.sh ${PREFIX}/bin
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 
 --------------050200050306070901060008--
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Tue Jul 8 21:34:22 UTC 2008 
State-Changed-Why:  
New port added, thank you! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125249 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/125249: commit references a PR
Date: Tue,  8 Jul 2008 21:35:33 +0000 (UTC)

 pav         2008-07-08 21:35:23 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security             Makefile 
   Added files:
     security/ratproxy    Makefile distinfo pkg-descr 
     security/ratproxy/files patch-Makefile 
   Log:
   Ratproxy is a semi-automated, largely passive web application security audit
   tool. It is meant to complement active crawlers and manual proxies more
   commonly used for this task, and is optimized specifically for an accurate and
   sensitive detection, and automatic annotation, of potential problems and
   security-relevant design patterns based on the observation of existing,
   user-initiated traffic in complex web 2.0 environments.
   
   WWW: http://code.google.com/p/ratproxy/
   
   PR:             ports/125249
   Submitted by:   Steven Kreuzer <skreuzer@exit2shell.com>
   
   Revision  Changes    Path
   1.982     +1 -0      ports/security/Makefile
   1.1       +28 -0     ports/security/ratproxy/Makefile (new)
   1.1       +3 -0      ports/security/ratproxy/distinfo (new)
   1.1       +22 -0     ports/security/ratproxy/files/patch-Makefile (new)
   1.1       +8 -0      ports/security/ratproxy/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
