ports/110746: [PATCH] ports-mgmt/portscout: Add WITH_LOCALTIME knob to support localtime

chinsan chinsan at FreeBSD.org
Sat Mar 24 03:30:03 UTC 2007


>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 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 /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:



More information about the freebsd-ports-bugs mailing list