diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-09-14 15:30:41 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-09-14 15:30:41 +0000 |
commit | 5052e9320f7492fce7c151e8c3affd9a1782e34f (patch) | |
tree | d32f1a994cda580429f18daf9f7ae96f1f6cbc8f /net-analyzer/rrdtool | |
parent | Readd lost keywords (diff) | |
download | gentoo-2-5052e9320f7492fce7c151e8c3affd9a1782e34f.tar.gz gentoo-2-5052e9320f7492fce7c151e8c3affd9a1782e34f.tar.bz2 gentoo-2-5052e9320f7492fce7c151e8c3affd9a1782e34f.zip |
Add 1.0 series for FlowScan
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-analyzer/rrdtool')
-rw-r--r-- | net-analyzer/rrdtool/ChangeLog | 5 | ||||
-rw-r--r-- | net-analyzer/rrdtool/files/digest-rrdtool-1.0.49 | 3 | ||||
-rw-r--r-- | net-analyzer/rrdtool/rrdtool-1.0.49.ebuild | 121 |
3 files changed, 128 insertions, 1 deletions
diff --git a/net-analyzer/rrdtool/ChangeLog b/net-analyzer/rrdtool/ChangeLog index 5e57df6b96a7..f95dfa8c95de 100644 --- a/net-analyzer/rrdtool/ChangeLog +++ b/net-analyzer/rrdtool/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-analyzer/rrdtool # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.130 2007/09/06 17:54:16 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.131 2007/09/14 15:30:40 jokey Exp $ + + 14 Sep 2007; Markus Ullmann <jokey@gentoo.org> +rrdtool-1.0.49.ebuild: + Add 1.0 series for FlowScan 06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -files/rrdtool-1.2.19-as-needed.patch, diff --git a/net-analyzer/rrdtool/files/digest-rrdtool-1.0.49 b/net-analyzer/rrdtool/files/digest-rrdtool-1.0.49 new file mode 100644 index 000000000000..d6349af35891 --- /dev/null +++ b/net-analyzer/rrdtool/files/digest-rrdtool-1.0.49 @@ -0,0 +1,3 @@ +MD5 fbe492dbf3d68abb1d86c2322e7ed44a rrdtool-1.0.49.tar.gz 1466897 +RMD160 965cf352b4d3da64fdf44e0af5d1cf95072a283e rrdtool-1.0.49.tar.gz 1466897 +SHA256 20acb0aa347f1629c4d5529ab8afbe4986fe820555049af3f905653300e5ea74 rrdtool-1.0.49.tar.gz 1466897 diff --git a/net-analyzer/rrdtool/rrdtool-1.0.49.ebuild b/net-analyzer/rrdtool/rrdtool-1.0.49.ebuild new file mode 100644 index 000000000000..e22e2e854542 --- /dev/null +++ b/net-analyzer/rrdtool/rrdtool-1.0.49.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.0.49.ebuild,v 1.12 2007/09/14 15:30:40 jokey Exp $ + +inherit perl-module flag-o-matic eutils + +DESCRIPTION="A system to store and display time-series data" +HOMEPAGE="http://oss.oetiker.ch/rrdtool/" +SRC_URI="ftp://ftp.bit.nl/mirror/rrdtool/rrdtool-1.0.49.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" +IUSE="perl tcl" + +DEPEND="perl? ( dev-lang/perl ) + sys-apps/gawk + >=media-libs/gd-1.8.3" +RDEPEND="tcl? ( dev-lang/tcl )" + +TCL_VER="" + +pkg_setup() { + if use perl ; then + perl-module_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + sed -e 's/^LTCOMPILE = $(LIBTOOL) --mode=compile $(CC)/& -prefer-pic/' -i src/Makefile.in + + if [[ ! $(grep '^LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -prefer-pic' src/Makefile.in) ]]; then + die "Makefile.in sed failed" + fi +} + +src_compile() { + filter-mfpmath sse + filter-flags -ffast-math + + local myconf + myconf="${myconf} --datadir=/usr/share --enable-shared" + + if use tcl ; then + myconf="${myconf} --with-tcllib=/usr/lib" + else + myconf="${myconf} --without-tcllib" + fi + + if use perl; then + econf ${myconf} --with-perl-options='PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D}' || die "econf failed" + + # libraries without -fPIC? feh! + for libdir in cgilib* gd* libpng* zlib*; do + sed -i -e 's/^CFLAGS.*/& -fPIC/' ${libdir}/Makefile + done + else + econf ${myconf} || die "econf failed" + fi + + make || die "make failed" +} + +src_install() { + einstall || die + + # this package completely ignores mandir settings + + doman doc/*.1 + dohtml doc/*.html + dodoc doc/*.pod + dodoc doc/*.txt + + rm -rf ${D}/usr/doc + rm -rf ${D}/usr/html + rm -rf ${D}/usr/man + rm -rf ${D}/usr/contrib + rm -rf ${D}/usr/examples + + insinto /usr/share/doc/${PF}/examples + doins examples/* + insinto /usr/share/doc/${PF}/contrib + doins contrib/* + + if use perl ; then + perlinfo + mytargets="site-perl-install" + perl-module_src_install || die + + # remove duplicate installation into /usr/lib/perl + rm -Rf ${D}/usr/lib/perl + fi + + if use tcl ; then +# mv ${S}/tcl/tclrrd.so ${S}/tcl/tclrrd${PV}.so +# insinto /usr/lib/tcl${TCL_VER}/tclrrd${PV} +# doins ${S}/tcl/tclrrd${PV}.so + echo "package ifneeded Rrd ${PV} [list load [file join \$$dir .. tclrrd${PV}.so]]" \ + >> ${D}/usr/lib/tcl${TCL_VER}/tclrrd${PV}/pkgIndex.tcl + fi + + dodoc COPY* CONTR* README TODO +} + +pkg_preinst() { + use perl && perl-module_pkg_preinst +} + +pkg_postinst() { + use perl && perl-module_pkg_postinst +} + +pkg_prerm() { + use perl && perl-module_pkg_prerm +} + +pkg_postrm() { + use perl && perl-module_pkg_postrm +} |