Skip site navigation (1)Skip section navigation (2)
Date:      13 Jun 2003 23:59:00 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Janos.Mohacsi@bsd.hu
Subject:   ports/53304: [PATCH] net/tcpreen: unbreak on 5.x
Message-ID:  <20030613235900.38582.qmail@kolobov.com>
Resent-Message-ID: <200306140000.h5E00KJm025651@freefall.freebsd.org>

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

>Number:         53304
>Category:       ports
>Synopsis:       [PATCH] net/tcpreen: unbreak on 5.x
>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:   Fri Jun 13 17:00:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD elf.chetwood.ru 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Thu Jun  5 02:19:41 MSD
>Description:
- Unbreak on 5.x by using CONFIGURE_TARGET
- Add explicit LIB_DEPENDS on iconv.3
- Properly conditionalize getopt_long(3) dependency with USE_GETOPT_LONG
- Use canonical form of DOCS in preparation of making it automatical
- Update WWW in pkg-descr

Tested on:	5.1-CURRENT, 4.8-STABLE (i386)

Port maintainer - Janos.Mohacsi@bsd.hu - has been copied.
>How-To-Repeat:
>Fix:

--- tcpreen-1.2.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/tcpreen/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	2003/05/18 11:34:19	1.7
+++ Makefile	2003/06/13 23:54:50
@@ -14,31 +14,24 @@
 MAINTAINER=	Janos.Mohacsi@bsd.hu
 COMMENT=	A simple TCP session re-engineering tool
 
-LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext
+LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext \
+		iconv.3:${PORTSDIR}/converters/libiconv
 
 USE_BZIP2=	yes
+USE_GETOPT_LONG=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
-MAN1=		tcpreen.1
-
-DOC_FILES=	README
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+CFLAGS=		-I${LOCALBASE}/include
+LDFLAGS=	-L${LOCALBASE}/lib
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN=         "Configure fails"
-.endif
-
-.if ${OSVERSION} < 500000
-LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-.endif
+MAN1=		tcpreen.1
+DOCS=		README
 
+.if !defined(NOPORTDOCS)
 post-install:
-.ifndef(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-.for file in ${DOC_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/net/tcpreen/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	2002/08/27 19:19:51	1.1
+++ pkg-descr	2003/06/13 23:54:50
@@ -3,6 +3,6 @@
 stream (software/socket layer), not on the lower level transmission
 protocol as packet sniffers do.
 
-WWW: http://www.simphalempin.com/dev/tcpreen/
+WWW:	http://sourceforge.net/projects/tcpreen/
 
 Janos Mohacsi <janos.mohacsi@bsd.hu>
--- tcpreen-1.2.2.patch ends here ---

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



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