From 8f21505399e2b9c3a48624399b44ec4a7682d5e4 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Sun, 24 Mar 2013 14:19:44 +0000 Subject: - Fix 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 trim Makefile headers - Also remove a REINPLACE expression which is not needed anymore - Bumped PORTREVISION PR: ports/176336 Submitted by: Myself Approved by: Maintainer timeout (30 days) --- www/mysar/Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/www/mysar/Makefile b/www/mysar/Makefile index fcaf81a6c20f..55a89802e594 100644 --- a/www/mysar/Makefile +++ b/www/mysar/Makefile @@ -1,14 +1,9 @@ -# -# ports collection makefile for: mysar -# Whom: Edwin Groothuis -# Date created: 2006-01-10 -# +# Created by: Edwin Groothuis # $FreeBSD$ -# PORTNAME= mySAR PORTVERSION= 2.1.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= SF DISTNAME= ${PORTNAME:L}-${PORTVERSION} @@ -23,6 +18,7 @@ WRKSRC= ${WRKROOT}/bin/mysar-binary-importer/ GNU_CONFIGURE= yes USE_MYSQL= yes USE_PHP= mysql pcre +USE_CSTD= gnu89 CONFIGURE_ARGS= --with-mysql-lib=${LOCALBASE} @@ -46,10 +42,8 @@ post-patch: ${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' \ -- cgit v1.2.3