ports/110291: [PATCH] ports-mgmt/portscout: Add WITH_LOCALTIME knob
chinsan
chinsan at FreeBSD.org
Wed Mar 14 01:40:07 UTC 2007
>Number: 110291
>Category: ports
>Synopsis: [PATCH] ports-mgmt/portscout: Add WITH_LOCALTIME knob
>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: Wed Mar 14 01:40:06 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: chinsan
>Release: FreeBSD 6.2-STABLE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD chinsan.twbbs.org 6.2-STABLE FreeBSD 6.2-STABLE #6: Mon Feb 5 23:22:25 CST
>Description:
- Add WITH_LOCALTIME knob to support the timedate as localtime instead of gmtime(GMT)
Port maintainer (shaun at 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 /usr/home/chinsan/project/portscout/Makefile
--- /usr/ports/ports-mgmt/portscout/Makefile Mon Feb 5 09:08:31 2007
+++ /usr/home/chinsan/project/portscout/Makefile Wed Mar 14 09:34:51 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:
More information about the freebsd-ports-bugs
mailing list