aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorkoitsu <koitsu@FreeBSD.org>2008-09-02 19:11:14 +0800
committerkoitsu <koitsu@FreeBSD.org>2008-09-02 19:11:14 +0800
commit3260cbd8a8cead534a68d08d064ad41b84806c57 (patch)
treea504ff39ebda31a98d4bbb383ed122a33895d644 /databases
parent4cdf845643b53a09a6fde8d74e630e0c010f1991 (diff)
downloadfreebsd-ports-gnome-3260cbd8a8cead534a68d08d064ad41b84806c57.tar.gz
freebsd-ports-gnome-3260cbd8a8cead534a68d08d064ad41b84806c57.tar.zst
freebsd-ports-gnome-3260cbd8a8cead534a68d08d064ad41b84806c57.zip
Addition of databases/rrdtool12, for those of us who prefer to
use the previous release of RRDTool. Also incorporate the CONFIGURE_TARGET changes (PR ports/126524).
Diffstat (limited to 'databases')
-rw-r--r--databases/rrdtool12/Makefile97
-rw-r--r--databases/rrdtool12/distinfo3
-rw-r--r--databases/rrdtool12/files/patch-bindings-Makefile.in24
-rw-r--r--databases/rrdtool12/files/patch-doc-Makefile.in14
-rw-r--r--databases/rrdtool12/files/patch-examples-Makefile.in11
-rw-r--r--databases/rrdtool12/pkg-descr10
-rw-r--r--databases/rrdtool12/pkg-plist119
7 files changed, 278 insertions, 0 deletions
diff --git a/databases/rrdtool12/Makefile b/databases/rrdtool12/Makefile
new file mode 100644
index 000000000000..1589b567140a
--- /dev/null
+++ b/databases/rrdtool12/Makefile
@@ -0,0 +1,97 @@
+# New ports collection makefile for: rrdtool12
+# Date created: 2 September 2008
+# Whom: Jeremy Chadwick <koitsu@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rrdtool
+PORTVERSION= 1.2.26
+PORTREVISION= 1
+CATEGORIES= databases graphics
+MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/
+
+MAINTAINER= koitsu@FreeBSD.org
+COMMENT= Round Robin Database Tools v1.2
+
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
+ art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl \
+ png.5:${PORTSDIR}/graphics/png
+
+CONFLICTS= rrdtool-1.0* rrdtool-1.3*
+
+USE_AUTOTOOLS= libtool:15
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+WANT_PERL= yes
+
+CONFIGURE_ARGS= --disable-tcl
+
+OPTIONS= PYTHON_MODULE "Build PYTHON bindings" off \
+ RUBY_MODULE "Build RUBY bindings" off \
+ PERL_MODULE "Build PERL module" on
+
+.include <bsd.port.pre.mk>
+.if defined(WITH_PYTHON_MODULE)
+USE_PYTHON= yes
+.include "${PORTSDIR}/Mk/bsd.python.mk"
+PLIST_SUB+= WITH_PYTHON=""
+CONFIGURE_ARGS+= --enable-python
+.else
+CONFIGURE_ARGS+= --disable-python
+PLIST_SUB+= WITH_PYTHON="@comment "
+.endif
+
+.if defined(WITH_RUBY_MODULE)
+USE_RUBY= yes
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+PLIST_SUB+= WITH_RUBY=""
+CONFIGURE_ARGS+= --enable-ruby
+.else
+CONFIGURE_ARGS+= --disable-ruby
+PLIST_SUB+= WITH_RUBY="@comment "
+.endif
+
+.if !defined(WITHOUT_PERL_MODULE)
+USE_PERL5= yes
+CONFIGURE_ARGS+= --enable-perl --enable-perl-site-install
+PLIST_SUB+= WITH_PERL=""
+.else
+CONFIGURE_ARGS+= --disable-perl
+PLIST_SUB+= WITH_PERL="@comment "
+.endif
+
+CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 -I${LOCALBASE}/include/freetype2
+LDFLAGS+= -L${LOCALBASE}/lib
+CFLAGS:= ${CFLAGS:N-ffast-math}
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+
+MAN1= bin_dec_hex.1 cdeftutorial.1 rpntutorial.1 rrd-beginners.1 \
+ rrdbuild.1 rrdcgi.1 rrdcreate.1 rrddump.1 rrdfetch.1 rrdfirst.1 \
+ rrdgraph.1 rrdgraph_data.1 rrdgraph_examples.1 rrdgraph_graph.1 \
+ rrdgraph_rpn.1 rrdinfo.1 rrdlast.1 rrdresize.1 rrdrestore.1 \
+ rrdthreads.1 rrdtool.1 rrdtune.1 rrdtutorial.1 rrdupdate.1 \
+ rrdxport.1 rrdlastupdate.1
+
+.if !defined(WITHOUT_PERL_MODULE)
+MAN3= RRDp.3 RRDs.3
+MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+.endif
+
+post-extract:
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e 's/install-idocDATA install-ihtmlDATA//g' \
+ -e 's/^ cd .* rrdtool.html index.html/ #/' \
+ ${WRKSRC}/doc/Makefile.in
+.endif
+
+post-install:
+.if !defined(BATCH)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "############################################################################"
+ @${ECHO_MSG} "# See ${PREFIX}/share/examples/rrdtool for some demonstration code #"
+ @${ECHO_MSG} "############################################################################"
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/rrdtool12/distinfo b/databases/rrdtool12/distinfo
new file mode 100644
index 000000000000..fa06623b8a1a
--- /dev/null
+++ b/databases/rrdtool12/distinfo
@@ -0,0 +1,3 @@
+MD5 (rrdtool-1.2.26.tar.gz) = b2c179e2d2ec2a92969648c4ebd382dc
+SHA256 (rrdtool-1.2.26.tar.gz) = 685088c51e63fd9d41387cd39615036baed4460beb87c1ab7127f9325b348b24
+SIZE (rrdtool-1.2.26.tar.gz) = 1080151
diff --git a/databases/rrdtool12/files/patch-bindings-Makefile.in b/databases/rrdtool12/files/patch-bindings-Makefile.in
new file mode 100644
index 000000000000..fe6cb3333f02
--- /dev/null
+++ b/databases/rrdtool12/files/patch-bindings-Makefile.in
@@ -0,0 +1,24 @@
+--- ./bindings/Makefile.in.orig 2008-01-08 10:36:56.000000000 +0800
++++ ./bindings/Makefile.in 2008-01-08 10:38:18.000000000 +0800
+@@ -544,9 +544,9 @@
+ all-local: @COMP_PERL@ @COMP_RUBY@ @COMP_PYTHON@
+
+ install-data-local:
+- test -f perl-piped/Makefile && cd perl-piped && $(MAKE) install || true
+- test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true
+- test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(DESTDIR)$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true
++ test -f perl-piped/Makefile && cd perl-piped && $(MAKE) pure_install || true
++ test -f perl-shared/Makefile && cd perl-shared && $(MAKE) pure_install || true
++ test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) install || true
+ test -d python/build && cd python && env BUILDLIBDIR=../../src/.libs $(PYTHON) setup.py install --skip-build --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix) || true
+
+ # rules for buildung the ruby module
+@@ -557,7 +557,7 @@
+
+ # rules for buildung the pyton module
+ python:
+- cd python && env BUILDLIBDIR=../../src/.libs $(PYTHON) setup.py build_ext --rpath=$(libdir) && env LIBDIR=../../src/.libs $(PYTHON) setup.py build
++ cd python && env INCDIR=../../src BUILDLIBDIR=../../src/.libs $(PYTHON) setup.py build_ext --rpath=$(libdir) && env LIBDIR=../../src/.libs $(PYTHON) setup.py build
+
+ # rules for building the perl module
+ perl_piped: perl-piped/Makefile
diff --git a/databases/rrdtool12/files/patch-doc-Makefile.in b/databases/rrdtool12/files/patch-doc-Makefile.in
new file mode 100644
index 000000000000..844bcc780935
--- /dev/null
+++ b/databases/rrdtool12/files/patch-doc-Makefile.in
@@ -0,0 +1,14 @@
+--- doc/Makefile.in.orig Thu May 3 12:26:06 2007
++++ doc/Makefile.in Thu May 3 12:26:35 2007
+@@ -239,9 +239,9 @@
+
+ # what should go into the distribution
+ EXTRA_DIST = $(POD) $(HTML) $(MAN) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd
+-idocdir = $(RRDDOCDIR)/txt
++idocdir = $(datadir)/doc/rrdtool/txt
+ idoc_DATA = $(POD) $(TXT)
+-ihtmldir = $(RRDDOCDIR)/html
++ihtmldir = $(datadir)/doc/rrdtool/html
+ ihtml_DATA = $(HTML)
+ imandir = $(mandir)/man1
+ iman_DATA = $(MAN)
diff --git a/databases/rrdtool12/files/patch-examples-Makefile.in b/databases/rrdtool12/files/patch-examples-Makefile.in
new file mode 100644
index 000000000000..a44b80f7eba4
--- /dev/null
+++ b/databases/rrdtool12/files/patch-examples-Makefile.in
@@ -0,0 +1,11 @@
+--- examples/Makefile.in.orig Thu May 3 12:27:17 2007
++++ examples/Makefile.in Thu May 3 12:27:41 2007
+@@ -219,7 +219,7 @@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+ EXTRA_DIST = cgi-demo.cgi.in
+-examplesdir = $(pkgdatadir)/examples
++examplesdir = $(datadir)/examples/rrdtool
+ examples_SCRIPTS = cgi-demo.cgi piped-demo.pl shared-demo.pl \
+ stripes.pl bigtops.pl minmax.pl 4charts.pl perftest.pl
+
diff --git a/databases/rrdtool12/pkg-descr b/databases/rrdtool12/pkg-descr
new file mode 100644
index 000000000000..2d47a2220ffc
--- /dev/null
+++ b/databases/rrdtool12/pkg-descr
@@ -0,0 +1,10 @@
+It is pretty easy to gather status information from all sorts of things,
+ranging from the temperature in your office to the number of octets which
+have passed through the FDDI interface of your router. But it is not so
+trivial to store this data in a efficient and systematic manner. This is
+where RRDtool kicks in. It lets you log and analyze the data you gather from
+all kinds of data-sources. The data analysis part of RRDtool is based
+on the ability to quickly generate graphical representations of the data
+values collected over a definable time period.
+
+WWW: http://www.rrdtool.org/
diff --git a/databases/rrdtool12/pkg-plist b/databases/rrdtool12/pkg-plist
new file mode 100644
index 000000000000..2206eaf88e22
--- /dev/null
+++ b/databases/rrdtool12/pkg-plist
@@ -0,0 +1,119 @@
+bin/rrdtool
+bin/rrdcgi
+bin/rrdupdate
+lib/librrd.a
+lib/librrd.la
+lib/librrd.so
+lib/librrd.so.2
+lib/librrd_th.a
+lib/librrd_th.la
+lib/librrd_th.so
+lib/librrd_th.so.2
+include/rrd.h
+%%EXAMPLESDIR%%/4charts.pl
+%%EXAMPLESDIR%%/bigtops.pl
+%%EXAMPLESDIR%%/cgi-demo.cgi
+%%EXAMPLESDIR%%/minmax.pl
+%%EXAMPLESDIR%%/piped-demo.pl
+%%EXAMPLESDIR%%/perftest.pl
+%%EXAMPLESDIR%%/shared-demo.pl
+%%EXAMPLESDIR%%/stripes.pl
+%%PORTDOCS%%%%DOCSDIR%%/html/RRDp.html
+%%PORTDOCS%%%%DOCSDIR%%/html/RRDs.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bin_dec_hex.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cdeftutorial.html
+%%PORTDOCS%%%%DOCSDIR%%/html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rpntutorial.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrd-beginners.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdbuild.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdcgi.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdcreate.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrddump.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdfetch.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdfirst.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdgraph.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdgraph_data.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdgraph_examples.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdgraph_graph.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdgraph_rpn.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdinfo.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdlast.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdlastupdate.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdresize.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdrestore.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdthreads.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdtool.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdtune.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdtutorial.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdupdate.html
+%%PORTDOCS%%%%DOCSDIR%%/html/rrdxport.html
+%%PORTDOCS%%%%DOCSDIR%%/txt/bin_dec_hex.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/bin_dec_hex.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/cdeftutorial.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/cdeftutorial.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rpntutorial.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rpntutorial.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrd-beginners.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrd-beginners.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdbuild.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdbuild.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdcgi.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdcgi.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdcreate.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdcreate.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrddump.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrddump.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdfetch.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdfetch.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdfirst.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdfirst.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_data.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_data.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_examples.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_examples.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_graph.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_graph.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_rpn.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdgraph_rpn.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdinfo.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdinfo.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdlast.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdlast.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdlastupdate.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdlastupdate.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdresize.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdresize.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdrestore.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdrestore.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdthreads.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdthreads.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdtool.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdtool.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdtune.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdtune.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdtutorial.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdtutorial.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdupdate.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdupdate.txt
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdxport.pod
+%%PORTDOCS%%%%DOCSDIR%%/txt/rrdxport.txt
+%%DATADIR%%/fonts/DejaVuSansMono-Roman.ttf
+%%WITH_PERL%%%%SITE_PERL%%/RRDp.pm
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp/.packlist
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RRDs.pm
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/ntmake.pl
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.so
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.bs
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/.packlist
+%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/rrdtoolmodule.so
+%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/RRD.so
+@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%/fonts
+@dirrm %%DATADIR%%
+%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp
+%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs