From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 18 21:20:04 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 989BC106566C for ; Thu, 18 Aug 2011 21:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 750A28FC15 for ; Thu, 18 Aug 2011 21:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7ILK4Ex089591 for ; Thu, 18 Aug 2011 21:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7ILK4OO089590; Thu, 18 Aug 2011 21:20:04 GMT (envelope-from gnats) Resent-Date: Thu, 18 Aug 2011 21:20:04 GMT Resent-Message-Id: <201108182120.p7ILK4OO089590@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Scheidell Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CC0A1065675 for ; Thu, 18 Aug 2011 21:13:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5BB7D8FC15 for ; Thu, 18 Aug 2011 21:13:46 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7ILDk6S015854 for ; Thu, 18 Aug 2011 21:13:46 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7ILDkDL015832; Thu, 18 Aug 2011 21:13:46 GMT (envelope-from nobody) Message-Id: <201108182113.p7ILDkDL015832@red.freebsd.org> Date: Thu, 18 Aug 2011 21:13:46 GMT From: Michael Scheidell To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/159894: [NEW-PORT] databases/php52-rrdtool X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2011 21:20:04 -0000 >Number: 159894 >Category: ports >Synopsis: [NEW-PORT] databases/php52-rrdtool >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Aug 18 21:20:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: 7.3 >Organization: SECNAP Network Security >Environment: 7.3 amd64 >Description: I am stuck on php52- for now, but need to use the php5-rrdtool that rick@wzoeterwoude.net maintains (greets rick) I notice there was a php5-rrdtool, I took it, make two minor changes (so it would 'like' php52) it seems to compile, and install (and has same cli segfault that we all know and love in php5 rrdtool..) but, I have a 'patch' if you want it that way, or the whole shar. >How-To-Repeat: >Fix: here are the changes from php5-rrtdool to php52-rrdtool: diff -bBru php5-rrdtool/ php52-rrdtool/ diff -bBru php5-rrdtool/Makefile php52-rrdtool/Makefile --- php5-rrdtool/Makefile 2010-05-25 17:08:19.000000000 -0400 +++ php52-rrdtool/Makefile 2011-08-18 16:50:13.000000000 -0400 @@ -12,7 +12,7 @@ MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/contrib/ \ http://ftp.ntua.gr/pub/net/monitoring/rrdtool/contrib/ \ http://www.mirrors.wiretapped.net/security/network-monitoring/rrdtool/contrib/ -PKGNAMEPREFIX= php5- +PKGNAMEPREFIX= php52- DISTNAME= php_rrdtool MAINTAINER= rick@wzoeterwoude.net @@ -23,7 +23,7 @@ WRKSRC= ${WRKDIR}/rrdtool USE_PHP= yes -DEFAULT_PHP_VER=5 +DEFAULT_PHP_VER=52 USE_PHPEXT= yes .include and attached is shar. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # php52-rrdtool # php52-rrdtool/files # php52-rrdtool/files/patch-config.m4 # php52-rrdtool/Makefile # php52-rrdtool/distinfo # php52-rrdtool/pkg-descr # echo c - php52-rrdtool mkdir -p php52-rrdtool > /dev/null 2>&1 echo c - php52-rrdtool/files mkdir -p php52-rrdtool/files > /dev/null 2>&1 echo x - php52-rrdtool/files/patch-config.m4 sed 's/^X//' >php52-rrdtool/files/patch-config.m4 << '369c614d9ddbbaa7944e22f4ec9e807e' X--- config.m4.orig Wed Nov 30 19:44:51 2005 X+++ config.m4 Sun Mar 19 20:48:34 2006 X@@ -13,7 +13,7 @@ X [ --with-rrdtool[=DIR] Include rrdtool support (requires rrdtool >= 1.0.49).]) X X if test "$PHP_RRDTOOL" != "no"; then X- X+ PHP_NEW_EXTENSION(rrdtool, rrdtool.c, $ext_shared) X if test "$PHP_RRDTOOL" != "yes"; then X AC_MSG_CHECKING(if rrdtool specified path is valid) X if test -r $PHP_RRDTOOL/include/rrd.h && test -f $PHP_RRDTOOL/lib/librrd.$SHLIB_SUFFIX_NAME -o -f $PHP_RRDTOOL/lib/librrd.a; then # path given as parameter X@@ -51,7 +51,14 @@ X fi X fi X X-dnl Finish the setup X+ X+ dnl PHP Libaries include X+ AC_DEFINE(HAVE_RRDTOOL,1,[ ]) X+ PHP_SUBST(RRDTOOL_SHARED_LIBADD) X+ PHP_ADD_LIBRARY_WITH_PATH(rrd, $RRDTOOL_LIBDIR, RRDTOOL_SHARED_LIBADD) X+ PHP_ADD_INCLUDE($RRDTOOL_INCDIR) X+ X+ dnl Finish the setup X X RRD_H_PATH="$RRDTOOL_INCDIR/rrd.h" X PHP_RRDTOOL_DIR=$RRDTOOL_DIR X@@ -59,14 +66,9 @@ X X PHP_CHECK_LIBRARY(rrd, rrd_create, X [],[ X- PHP_CHECK_LIBRARY(rrd, rrd_create, X- [],[ X- AC_MSG_ERROR([wrong rrd lib version or lib not found]) X- ],[ X- -L$RRDTOOL_LIBDIR -ldl X- ]) X+ AC_MSG_ERROR([wrong rrd lib version or lib not found]) X ],[ X- -L$RRDTOOL_LIBDIR -ldl X+ -L$RRDTOOL_LIBDIR X ]) X X AC_MSG_CHECKING([rrdtool version]) X@@ -87,10 +89,4 @@ X if test "$ac_cv_rrdversion" = yes; then X AC_DEFINE(HAVE_RRD_12X, 1, [Whether you have rrd_verion]) X fi X- X- PHP_ADD_LIBRARY_WITH_PATH(rrd, $RRDTOOL_LIBDIR, RRDTOOL_SHARED_LIBADD) X- X- PHP_NEW_EXTENSION(rrdtool, rrdtool.c, $ext_shared) X- PHP_SUBST(RRDTOOL_SHARED_LIBADD) X- AC_DEFINE(HAVE_RRDTOOL, 1, [ ]) X fi 369c614d9ddbbaa7944e22f4ec9e807e echo x - php52-rrdtool/Makefile sed 's/^X//' >php52-rrdtool/Makefile << '1d8e97b21ef65780d48088d22c9215a3' X# New ports collection makefile for: php5-rrdtool X# Date created: 19 Mar 2006 X# Whom: rick@wzoeterwoude.net X# Credits: mat X# X# $FreeBSD: ports/databases/php5-rrdtool/Makefile,v 1.8 2010/05/25 21:08:19 pav Exp $ X XPORTNAME= rrdtool XPORTVERSION= 1.00 XPORTREVISION= 1 XCATEGORIES= databases XMASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/contrib/ \ X http://ftp.ntua.gr/pub/net/monitoring/rrdtool/contrib/ \ X http://www.mirrors.wiretapped.net/security/network-monitoring/rrdtool/contrib/ XPKGNAMEPREFIX= php52- XDISTNAME= php_rrdtool X XMAINTAINER= rick@wzoeterwoude.net XCOMMENT= A php 5 rrdtool glue X XLIB_DEPENDS= rrd:${PORTSDIR}/databases/rrdtool X XWRKSRC= ${WRKDIR}/rrdtool X XUSE_PHP= yes XDEFAULT_PHP_VER=52 XUSE_PHPEXT= yes X X.include X X.if ${OSVERSION} < 700000 XBROKEN= does not configure on 6.X X.endif X X.include 1d8e97b21ef65780d48088d22c9215a3 echo x - php52-rrdtool/distinfo sed 's/^X//' >php52-rrdtool/distinfo << 'fac82c7e97f7809f5dacf615648c2389' XSHA256 (php_rrdtool.tar.gz) = 922719f2dd8772512339e82856ed4f102b493ef5d34d6cb389eded57c0a1bce4 XSIZE (php_rrdtool.tar.gz) = 9353 fac82c7e97f7809f5dacf615648c2389 echo x - php52-rrdtool/pkg-descr sed 's/^X//' >php52-rrdtool/pkg-descr << '3460005539b37d0d9c259351382569aa' XContained herein are bindings to allow you to interface php scripts with RRD Xtool directly via RRD tool's 'librrd' library, thus avoiding the need to use Xsystem() calls to the rrdtool binary. X XWWW: http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.txt 3460005539b37d0d9c259351382569aa exit >Release-Note: >Audit-Trail: >Unformatted: