aboutsummaryrefslogtreecommitdiff
path: root/www/mysar
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2013-03-24 14:19:44 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2013-03-24 14:19:44 +0000
commit8f21505399e2b9c3a48624399b44ec4a7682d5e4 (patch)
treefc18aa34176db40769fe6fd89a1f21b9eebe6849 /www/mysar
parent664030a972ccd300cb16eed7425dc4ffca12883e (diff)
downloadports-8f21505399e2b9c3a48624399b44ec4a7682d5e4.tar.gz
ports-8f21505399e2b9c3a48624399b44ec4a7682d5e4.zip
Notes
Diffstat (limited to 'www/mysar')
-rw-r--r--www/mysar/Makefile16
1 files 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 <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 @@ 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' \