ports/176336: www/mysar: Fix paths to php, fix build with clang
Guido Falsi
madpilot at FreeBSD.org
Thu Feb 21 22:20:02 UTC 2013
>Number: 176336
>Category: ports
>Synopsis: www/mysar: Fix paths to php, fix build with clang
>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: Thu Feb 21 22:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Guido Falsi
>Release: FreeBSD 9.1-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD micro.madpilot.net 9.1-STABLE FreeBSD 9.1-STABLE #18 r244955: Wed Jan 2 10:46:21 CET 2013 root at micro.madpilot.net:/usr/obj/usr/src/sys/MICRO amd64
>Description:
- Fixed REINPLACE expressions to put correct path to php executable
in scripts
- Remove deprecated mktime() usages from php files
- Fix build with clang by using USE_CSTD=gnu89
- While here I trimmed the Makefile headers
- Also removed a no more needed REINPLACE expression
- Bumped PORTREVISION
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
--- Makefile (revision 312743)
+++ Makefile (working copy)
@@ -1,14 +1,9 @@
-#
-# ports collection makefile for: mysar
-# Whom: Edwin Groothuis <edwin at mavetju.org>
-# Date created: 2006-01-10
-#
+# Created by: Edwin Groothuis <edwin at mavetju.org>
# $FreeBSD$
-#
PORTNAME= mySAR
PORTVERSION= 2.1.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= SF
DISTNAME= ${PORTNAME:L}-${PORTVERSION}
@@ -23,6 +18,7 @@
GNU_CONFIGURE= yes
USE_MYSQL= yes
USE_PHP= mysql pcre
+USE_CSTD= gnu89
CONFIGURE_ARGS= --with-mysql-lib=${LOCALBASE}
@@ -46,10 +42,8 @@
${WRKROOT}/etc/mysar.apache
${REINPLACE_CMD} \
- -e 's,%%MYSARDIR%%,${MYSARDIR},g' \
- `find ${WRKROOT}/etc -type f`
- ${REINPLACE_CMD} \
- -e 's,%%PHP%%,${LOCALBASE}/bin/php,g' \
+ -e 's,/usr/bin/php,${LOCALBASE}/bin/php,g' \
+ -e 's,\([=,. ]\)mktime(),\1time(),g' \
`find ${WRKROOT}/bin -type f`
${REINPLACE_CMD} \
-e 's,/bin/sh,${LOCALBASE}/bin/bash,g' \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list