From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 21 18:40:45 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BC5E16A424 for ; Tue, 21 Feb 2006 18:40:45 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B12DF43D8A for ; Tue, 21 Feb 2006 18:40:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1LIe402013175 for ; Tue, 21 Feb 2006 18:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1LIe45q013174; Tue, 21 Feb 2006 18:40:04 GMT (envelope-from gnats) Resent-Date: Tue, 21 Feb 2006 18:40:04 GMT Resent-Message-Id: <200602211840.k1LIe45q013174@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Buchanon Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D42216A43E for ; Tue, 21 Feb 2006 18:37:02 +0000 (GMT) (envelope-from buchanon@manetheren.cl.msu.edu) Received: from manetheren.cl.msu.edu (manetheren.cl.msu.edu [35.8.3.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95E7843DB3 for ; Tue, 21 Feb 2006 18:36:49 +0000 (GMT) (envelope-from buchanon@manetheren.cl.msu.edu) Received: from manetheren.cl.msu.edu (localhost [127.0.0.1]) by manetheren.cl.msu.edu (8.13.5/8.12.10) with ESMTP id k1LIVEp9010765 for ; Tue, 21 Feb 2006 13:31:14 -0500 (EST) (envelope-from buchanon@manetheren.cl.msu.edu) Received: (from buchanon@localhost) by manetheren.cl.msu.edu (8.13.5/8.12.10/Submit) id k1LIVEJa010764; Tue, 21 Feb 2006 13:31:14 -0500 (EST) (envelope-from buchanon) Message-Id: <200602211831.k1LIVEJa010764@manetheren.cl.msu.edu> Date: Tue, 21 Feb 2006 13:31:14 -0500 (EST) From: Mike Buchanon To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/93669: port upgrade for devel/bcpp X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Buchanon List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 18:40:45 -0000 >Number: 93669 >Category: ports >Synopsis: port upgrade for devel/bcpp >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: Tue Feb 21 18:40:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mike Buchanon >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD manetheren.cl.msu.edu 5.4-STABLE FreeBSD 5.4-STABLE #2: Thu Apr 21 14:14:14 EDT 2005 root@manetheren.cl.msu.edu:/usr/obj/usr/src/sys/MANETHEREN i386 >Description: Update port bcpp to latest version >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # bcpp # bcpp/files # bcpp/files/bcpp.patch # bcpp/distinfo # bcpp/pkg-descr # bcpp/Makefile # bcpp/pkg-plist # bcpp/pkg-message # echo c - bcpp mkdir -p bcpp > /dev/null 2>&1 echo c - bcpp/files mkdir -p bcpp/files > /dev/null 2>&1 echo x - bcpp/files/bcpp.patch sed 's/^X//' >bcpp/files/bcpp.patch << 'END-of-bcpp/files/bcpp.patch' X--- bcpp.cpp.orig Tue Feb 21 09:48:50 2006 X+++ bcpp.cpp Tue Feb 21 09:53:06 2006 X@@ -3096,6 +3096,7 @@ X char* pSPath = getenv ("PATH"); X char* pEPath = NULL; X char* pNameMem = NULL; X+ char* tmpCfgName = new char[strlen("%%PREFIX%%/etc/") + strlen(pCfgName) + 1]; X char sepChar = NULLC; X const char* pathSepChar; X char backUp; X@@ -3104,6 +3105,12 @@ X // test to see if file is in current directory first ! X if ((pCfgFile = fopen(pCfgName, "r")) != NULL) X return; X+ X+ // look to see if it's in %%PREFIX%%/etc X+ tmpCfgName = strcat ( tmpCfgName, "%%PREFIX%%/etc/" ); X+ tmpCfgName = strcat ( tmpCfgName, pCfgName ); X+ if ((pCfgFile = fopen(tmpCfgName, "r")) != NULL) X+ return; X X // environment variable not found, lord knows what it is ! X if (pSPath == NULL) END-of-bcpp/files/bcpp.patch echo x - bcpp/distinfo sed 's/^X//' >bcpp/distinfo << 'END-of-bcpp/distinfo' XMD5 (bcpp-20050725.tgz) = 6894cd9cb3a2ef173050810103b209c9 XSHA256 (bcpp-20050725.tgz) = 1a4b5e8e741d6be400eb68b7c4a3eebc6dabe29948a72a7a0bccb1db075eaa2a XSIZE (bcpp-20020518.tgz) = 132649 END-of-bcpp/distinfo echo x - bcpp/pkg-descr sed 's/^X//' >bcpp/pkg-descr << 'END-of-bcpp/pkg-descr' XA utility similar to indent for C++ code X XWWW: http://invisible-island.net/bcpp/bcpp.html END-of-bcpp/pkg-descr echo x - bcpp/Makefile sed 's/^X//' >bcpp/Makefile << 'END-of-bcpp/Makefile' X# New ports collection makefile for: bcpp X# Date created: 07 November 2001 X# Whom: Mike Buchanon X# X# $FreeBSD: ports/devel/bcpp/Makefile,v 1.6 2003/02/21 11:22:27 knu Exp $ X# X XPORTNAME= bcpp XPORTVERSION= 20050725 XCATEGORIES= devel XMASTER_SITES= ftp://invisible-island.net/bcpp/ XEXTRACT_SUFX= .tgz X XMAINTAINER= buchanon@msu.edu XCOMMENT= A utility similar to indent for C++ code X XWRKSRC= ${WRKDIR}/${DISTNAME} XMAKEFILE= makefile XGNU_CONFIGURE= yes X Xpre-patch: X @cd ${WRKSRC}/code && ${PATCH} < ${PATCHDIR}/bcpp.patch Xpost-patch: X @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/code/bcpp.cpp X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/code/${PORTNAME} ${PREFIX}/bin X ${INSTALL_DATA} ${WRKSRC}/code/${PORTNAME}.cfg \ X ${PREFIX}/etc/${PORTNAME}.cfg.sample X X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt ${DOCSDIR} X ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/manual.txt ${DOCSDIR} X.endif X Xpost-install: X @${ECHO} "************************************************************" X @${CAT} ${PKGMESSAGE} X @${ECHO} "************************************************************" X X.include END-of-bcpp/Makefile echo x - bcpp/pkg-plist sed 's/^X//' >bcpp/pkg-plist << 'END-of-bcpp/pkg-plist' Xbin/bcpp Xetc/bcpp.cfg.sample X%%PORTDOCS%%share/doc/bcpp/hirachy.txt X%%PORTDOCS%%share/doc/bcpp/manual.txt X%%PORTDOCS%%@dirrm share/doc/bcpp END-of-bcpp/pkg-plist echo x - bcpp/pkg-message sed 's/^X//' >bcpp/pkg-message << 'END-of-bcpp/pkg-message' XYou should modify /usr/local/etc/bcpp.cfg.sample to your liking and Xcopy it to /usr/local/etc/bcpp.cfg END-of-bcpp/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted: