ports/87550: Update port: misc/zaptel to build on 4.x

Marcus Alves Grando mnag at FreeBSD.org
Mon Oct 17 02:50:14 UTC 2005


>Number:         87550
>Category:       ports
>Synopsis:       Update port: misc/zaptel to build on 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 17 02:50:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Alves Grando
>Release:        FreeBSD 6.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD marcus.grupos.com.br 6.0-RC1 FreeBSD 6.0-RC1 #50: Mon Oct 17 00:32:03 BRST 2005 root at marcus.grupos.com.br:/space/obj/usr/src/sys/MARCUS i386


	
>Description:

Fix build on 4.x

	
>How-To-Repeat:
	
>Fix:

	

--- zaptel.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/misc/zaptel/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	30 Sep 2005 01:25:58 -0000	1.14
+++ Makefile	15 Oct 2005 20:35:37 -0000
@@ -17,6 +17,8 @@
 
 LIB_DEPENDS=	newt.51:${PORTSDIR}/devel/newt
 
+USE_REINPLACE=	yes
+
 NO_PACKAGE=	Should be in sync with the kernel to work correctly
 
 ONLY_FOR_ARCHS=	i386
@@ -31,6 +33,11 @@
 		${FALSE}; \
 	fi
 
+post-patch:
+	@${REINPLACE_CMD} -e "s|<getopt.h>|<unistd.h>|g" \
+		${WRKSRC}/test/ztmonitor.c ${WRKSRC}/test/zttool.c \
+		${WRKSRC}/ztcfg/ztcfg.c
+
 pre-install:
 	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
 		${PKGMESSAGE}
--- zaptel.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list