From anrays@gmail.com  Fri Jan 27 13:33:30 2006
Return-Path: <anrays@gmail.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8CF9116A420
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jan 2006 13:33:30 +0000 (GMT)
	(envelope-from anrays@gmail.com)
Received: from tor.farlep.net (tor.farlep.net [213.130.1.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DAE8F43D49
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jan 2006 13:33:29 +0000 (GMT)
	(envelope-from anrays@gmail.com)
Received: from santinel.home.ua (990-56.dialup.farlep.net [213.130.7.186]) 
	by tor.farlep.net with ESMTP id k0RDXK1I015641; Fri, 27 Jan 2006 15:33:25 +0200
Received: from anray by santinel.home.ua with local (Exim 4.60; FreeBSD)
	id 1F2Tj5-000Gwl-Qn; Fri, 27 Jan 2006 15:33:19 +0200
Message-Id: <E1F2Tj5-000Gwl-Qn@santinel.home.ua>
Date: Fri, 27 Jan 2006 15:33:19 +0200
From: Andrey Slusar <anray@freebsd.org>
Reply-To: Andrey Slusar <anray@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: kirill@solaris.ru
Subject: [PATCH] comms/gammu: fix works on 4.x systems
X-Send-Pr-Version: 3.113
X-GNATS-Notify: kirill@solaris.ru

>Number:         92421
>Category:       ports
>Synopsis:       [PATCH] comms/gammu: fix works on 4.x systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    anray
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 27 13:40:04 GMT 2006
>Closed-Date:    Tue Feb 14 11:23:23 GMT 2006
>Last-Modified:  Tue Feb 14 11:23:23 GMT 2006
>Originator:     Andrey Slusar
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Jan 12 02:56:04 EET 2006 anray@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
	
>Description:
	Note: maintainer(kirill@solaris.ru) CC'ed.

	On FreeBSD < 5.0 change format %zd -> %d and %zi -> %i.
>How-To-Repeat:
	
>Fix:

--- gammu.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/comms/gammu/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile	19 Jan 2006 17:03:21 -0000	1.16
+++ Makefile	23 Jan 2006 01:21:45 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	gammu
 PORTVERSION=	1.04.0
+PORTREVISION=	1
 CATEGORIES=	comms
 MASTER_SITES=	http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/
 
@@ -26,10 +27,18 @@
 CONFIGURE_ARGS=	--disable-bluerfsearch
 CONFIGURE_ENV=	CFLAGS="${CFLAGS} -fPIC"
 
+.include <bsd.port.pre.mk>
+
 post-patch:
+.if ${OSVERSION} < 500000
+	@${REINPLACE_CMD} -e 's|%zd|%d|g' -e 's|%zi|%i|g' \
+		${WRKSRC}/common/phone/at/atgen.c \
+		${WRKSRC}/common/phone/obex/obexgen.c \
+		${WRKSRC}/gammu/depend/nokia/dct3trac/wmx-gsm.c
+.endif
 .if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e 's@ installdocs@@g' \
 		${WRKSRC}/cfg/Makefile.glo
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- gammu.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Fri Jan 27 13:44:21 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92421 
Responsible-Changed-From-To: freebsd-ports-bugs->anray 
Responsible-Changed-By: anray 
Responsible-Changed-When: Fri Jan 27 21:43:19 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92421 
State-Changed-From-To: feedback->closed 
State-Changed-By: anray 
State-Changed-When: Tue Feb 14 11:23:21 UTC 2006 
State-Changed-Why:  
Committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92421 
>Unformatted:
