svn commit: r315122 - head/www/mysar

Guido Falsi madpilot at FreeBSD.org
Sun Mar 24 14:19:45 UTC 2013


Author: madpilot
Date: Sun Mar 24 14:19:44 2013
New Revision: 315122
URL: http://svnweb.freebsd.org/changeset/ports/315122

Log:
  - 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)

Modified:
  head/www/mysar/Makefile   (contents, props changed)

Modified: head/www/mysar/Makefile
==============================================================================
--- head/www/mysar/Makefile	Sun Mar 24 14:19:01 2013	(r315121)
+++ head/www/mysar/Makefile	Sun Mar 24 14:19:44 2013	(r315122)
@@ -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 @@ WRKSRC=		${WRKROOT}/bin/mysar-binary-imp
 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' \


More information about the svn-ports-head mailing list