ports/112623: [PATCH] misc/zaptel: enable amd64

Phillip Neumann pneumann at gmail.com
Sun May 13 00:50:05 UTC 2007


>Number:         112623
>Category:       ports
>Synopsis:       [PATCH] misc/zaptel: enable amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 13 00:50:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Phillip Neumann
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD negro.transtel.cl 6.2-STABLE FreeBSD 6.2-STABLE #1: Sun Feb 11 18:00:14 CLST 2007
>Description:
- Enable amd64
- Drop check for version < 5

thanks!

Port maintainer (sobomax at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- zaptel-1.4.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/zaptel/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	26 Apr 2007 00:11:35 -0000	1.27
+++ Makefile	13 May 2007 00:41:13 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	zaptel
 PORTVERSION=	1.4.1
+PORTREVISION=	1
 CATEGORIES=	misc
 MASTER_SITES=	http://www.pbxpress.com/~gonzo/
 DISTNAME=	${PORTNAME}-bsd-${PORTVERSION}
@@ -18,7 +19,7 @@
 
 NO_PACKAGE=	Should be in sync with the kernel to work correctly
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 
 MAKE_ENV=	KMODDIR=${PREFIX}/lib/zaptel
 SUB_FILES=	pkg-message
@@ -26,10 +27,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 500000
-IGNORE=	does not build on FreeBSD \< 5.x
-.endif
-
 pre-everything::
 	@if [ ! -f /usr/src/sys/Makefile ]; then \
 		${ECHO_MSG} ">> The zaptel port needs FreeBSD kernel source code to compile."; \
@@ -41,6 +38,12 @@
 	@${REINPLACE_CMD} -e "s|<getopt.h>|<unistd.h>|g" \
 		${WRKSRC}/test/ztmonitor.c ${WRKSRC}/test/zttool.c \
 		${WRKSRC}/ztcfg/ztcfg.c
+.if ${ARCH} == "amd64"
+	@${REINPLACE_CMD} "s|HWMODULES+=tau32pci||g" ${WRKSRC}/Makefile
+PLIST_SUB+=	I386="@comment "
+.else
+PLIST_SUB+=	I386=""
+.endif
 
 pre-su-install:
 	@${MKDIR} ${PREFIX}/lib/zaptel
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/misc/zaptel/pkg-plist,v
retrieving revision 1.9
diff -u -r1.9 pkg-plist
--- pkg-plist	26 Apr 2007 00:11:35 -0000	1.9
+++ pkg-plist	13 May 2007 00:41:13 -0000
@@ -10,7 +10,7 @@
 lib/libtonezone.a
 lib/zaptel/linker.hints
 lib/zaptel/qozap.ko
-lib/zaptel/tau32pci.ko
+%%I386%%lib/zaptel/tau32pci.ko
 lib/zaptel/wcfxo.ko
 lib/zaptel/wcfxs.ko
 lib/zaptel/wct1xxp.ko
--- zaptel-1.4.1_1.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list