# 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