Date: Thu, 21 Feb 2013 23:11:08 +0100 (CET) From: Guido Falsi <madpilot@FreeBSD.org> To: FreeBSD-gnats-submit@freebsd.org Cc: Edwin Groothuis <edwin@mavetju.org> Subject: ports/176336: www/mysar: Fix paths to php, fix build with clang Message-ID: <3ZBqdS5R9rzVD@micro.madpilot.net> Resent-Message-ID: <201302212220.r1LMK172043520@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@mavetju.org> -# Date created: 2006-01-10 -# +# Created by: Edwin Groothuis <edwin@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ZBqdS5R9rzVD>