From nobody@FreeBSD.org  Thu Aug 18 21:13:46 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6CC0A1065675
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <scheidell@secnap.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [NEW-PORT] databases/php52-rrdtool
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159894
>Category:       ports
>Synopsis:       [new port] databases/php52-rrdtool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    scheidell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 18 21:20:04 UTC 2011
>Closed-Date:    Thu Dec 08 19:55:47 UTC 2011
>Last-Modified:  Thu Dec 08 19:55:47 UTC 2011
>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 <bsd.port.pre.mk>

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 <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 700000
XBROKEN=		does not configure on 6.X
X.endif
X
X.include <bsd.port.post.mk>
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:
Responsible-Changed-From-To: freebsd-ports-bugs->scheidell  
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Sun Nov 27 22:13:19 UTC 2011 
Responsible-Changed-Why:  
I will take this from myself. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=159894 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159894: commit references a PR
Date: Thu,  8 Dec 2011 19:46:43 +0000 (UTC)

 scheidell    2011-12-08 19:46:29 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases            Makefile 
   Added files:
     databases/php52-rrdtool Makefile distinfo pkg-descr 
     databases/php52-rrdtool/files patch-config.m4 
   Log:
   - New port, copy of databases/php5-rrdtool, needed for companies
   - stuck on php52
   
   PR:             ports/159894 [1]
   Submitted by:   scheidell@secnap.net [1]
   Approved by:    gabor (mentor)
   Feature safe:   yes
   
   Revision  Changes    Path
   1.1058    +1 -0      ports/databases/Makefile
   1.1       +34 -0     ports/databases/php52-rrdtool/Makefile (new)
   1.1       +2 -0      ports/databases/php52-rrdtool/distinfo (new)
   1.1       +55 -0     ports/databases/php52-rrdtool/files/patch-config.m4 (new)
   1.1       +5 -0      ports/databases/php52-rrdtool/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed  
State-Changed-By: scheidell 
State-Changed-When: Thu Dec 8 19:55:24 UTC 2011 
State-Changed-Why:  
Committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159894 
>Unformatted:
