ports/53304: [PATCH] net/tcpreen: unbreak on 5.x
Sergei Kolobov
sergei at kolobov.com
Sat Jun 14 00:00:21 UTC 2003
>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 at 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 at 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 at bsd.hu>
--- tcpreen-1.2.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list