Date: Wed, 14 Mar 2007 00:33:36 +0800 (CST) From: chinsan <chinsan@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: shaun@FreeBSD.org Subject: ports/110746: [PATCH] ports-mgmt/portscout: Add WITH_LOCALTIME knob to support localtime Message-ID: <20070324030759.AC58851869@blog.homiya.com> Resent-Message-ID: <200703240330.l2O3U3p9066930@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 110746 >Category: ports >Synopsis: [PATCH] ports-mgmt/portscout: Add WITH_LOCALTIME knob to support localtime >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: Sat Mar 24 03:30:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 6.2-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD blog.homiya.com 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Mar 1 12:18:06 CST >Description: - Add WITH_LOCALTIME knob to support localtime instead of gmtime only. Port maintainer (shaun@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- portscout-0.7.2_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/ports-mgmt/portscout/Makefile /home/chinsan/projects/portscout/Makefile --- /usr/ports/ports-mgmt/portscout/Makefile Mon Feb 5 09:08:31 2007 +++ /home/chinsan/projects/portscout/Makefile Wed Mar 14 00:31:23 2007 @@ -7,6 +7,7 @@ PORTNAME= portscout PORTVERSION= 0.7.2 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/ \ http://www.inerd.com/software/${PORTNAME}/ @@ -49,6 +50,10 @@ post-patch: .if defined(WITH_MYSQL) @${REINPLACE_CMD} 's/DBI:Pg/DBI:mysql/g' ${WRKSRC}/portscout.conf +.endif +.if defined(WITH_LOCALTIME) + @${REINPLACE_CMD} -e "s,gmtime,localtime," ${WRKSRC}/portscout.pl + @${FIND} ${WRKSRC} -name "*.bak" -delete .endif @${REINPLACE_CMD} -e "s#^\(templates .*\)/etc#\1/share#" \ -e "s#^prefix\( *= *\).*#prefix\1${PREFIX}#" \ --- portscout-0.7.2_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070324030759.AC58851869>