diff options
| author | Hong Liu <hongl.fnst@cn.fujitsu.com> | 2018-05-22 13:15:02 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-05-26 21:10:55 -0700 |
| commit | 13e9c8fc79cdc6c03c6a16cfe789b4cb8ca76304 (patch) | |
| tree | a6ff49261c2f3a4c09e906a8bb2681baa7df16d0 /meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb | |
| parent | b475e300fd5602a5aa4b35cc7b4b3427875ad25d (diff) | |
| download | meta-openembedded-13e9c8fc79cdc6c03c6a16cfe789b4cb8ca76304.tar.gz | |
rrdtool: 1.6.0 -> 1.7.0
Upgrade rrdtool from 1.6.0 to 1.7.0.
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb')
| -rw-r--r-- | meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb b/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb new file mode 100644 index 0000000000..ff9957480c --- /dev/null +++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.7.0.bb | |||
| @@ -0,0 +1,128 @@ | |||
| 1 | SUMMARY = "High performance data logging and graphing system for time series data" | ||
| 2 | HOMEPAGE = "http://oss.oetiker.ch/rrdtool/" | ||
| 3 | |||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=3349111ed0533471494beec99715bc9d" | ||
| 6 | |||
| 7 | DEPENDS = "libpng zlib cairo pango glib-2.0 libxml2 groff-native python-setuptools-native" | ||
| 8 | |||
| 9 | SRCREV = "bfc82d5242855628b826018479df00e0ec4e8360" | ||
| 10 | PV = "1.7.0" | ||
| 11 | |||
| 12 | SRC_URI = "\ | ||
| 13 | git://github.com/oetiker/rrdtool-1.x.git;branch=master;protocol=http; \ | ||
| 14 | " | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit cpan autotools-brokensep gettext pythonnative python-dir systemd | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "native" | ||
| 21 | |||
| 22 | SYSTEMD_PACKAGES = "rrdcached" | ||
| 23 | SYSTEMD_SERVICE_rrdcached = "rrdcached.socket rrdcached.service" | ||
| 24 | |||
| 25 | EXTRA_AUTORECONF = "-I m4 --exclude=autopoint" | ||
| 26 | |||
| 27 | PACKAGECONFIG ??= "python perl ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
| 28 | |||
| 29 | PACKAGECONFIG[python] = "--enable-python=yes \ | ||
| 30 | am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \ | ||
| 31 | am_cv_python_pyexecdir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages,\ | ||
| 32 | --disable-python,python," | ||
| 33 | |||
| 34 | PACKAGECONFIG[perl] = \ | ||
| 35 | "--enable-perl=yes --with-perl-options='INSTALLDIRS="vendor"' \ | ||
| 36 | ac_cv_path_PERL_CC='${CC}', \ | ||
| 37 | --disable-perl,perl," | ||
| 38 | |||
| 39 | PACKAGECONFIG[dbi] = "--enable-libdbi,--disable-libdbi,libdbi" | ||
| 40 | |||
| 41 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd," | ||
| 42 | |||
| 43 | EXTRA_OECONF = " \ | ||
| 44 | --enable-shared \ | ||
| 45 | --disable-libwrap \ | ||
| 46 | --program-prefix='' \ | ||
| 47 | rd_cv_ieee_works=yes \ | ||
| 48 | --disable-ruby \ | ||
| 49 | --disable-lua \ | ||
| 50 | --disable-tcl \ | ||
| 51 | --disable-rpath \ | ||
| 52 | --enable-nls=${USE_NLS} \ | ||
| 53 | " | ||
| 54 | |||
| 55 | export STAGING_LIBDIR | ||
| 56 | export STAGING_INCDIR | ||
| 57 | |||
| 58 | # emulate cpan_do_configure | ||
| 59 | EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" ' | ||
| 60 | # Avoid do_configure error on some hosts | ||
| 61 | |||
| 62 | do_configure() { | ||
| 63 | unset PERLHOSTLIB | ||
| 64 | #fix the pkglib problem with newer automake | ||
| 65 | #perl | ||
| 66 | sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \ | ||
| 67 | ${S}/bindings/perl-shared/Makefile.PL | ||
| 68 | |||
| 69 | #python | ||
| 70 | sed -i -e '/PYTHON_INCLUDES="-I${/c \ | ||
| 71 | PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \ | ||
| 72 | ${S}/m4/acinclude.m4 | ||
| 73 | #remove the useless RPATH from the rrdtool.so | ||
| 74 | sed -i -e 's|LD_RUN_PATH=$(libdir)||g' ${S}/bindings/Makefile.am | ||
| 75 | |||
| 76 | autotools_do_configure | ||
| 77 | |||
| 78 | #modify python sitepkg | ||
| 79 | #remove the dependency of perl-shared:Makefile | ||
| 80 | #or perl-shared/Makefile will be regenerated | ||
| 81 | #if any code touch bindings/Makefile after below perl bindings code | ||
| 82 | sed -i -e "s:python/setup.py install:python/setup.py install \ | ||
| 83 | --install-lib=${PYTHON_SITEPACKAGES_DIR}:" \ | ||
| 84 | -e "s:perl-shared/Makefile.PL Makefile:perl-shared/Makefile.PL:" \ | ||
| 85 | ${B}/bindings/Makefile | ||
| 86 | |||
| 87 | #redo the perl bindings | ||
| 88 | ( | ||
| 89 | cd ${S}/bindings/perl-shared; | ||
| 90 | perl Makefile.PL INSTALLDIRS="vendor" INSTALLPRIVLIB="abc"; | ||
| 91 | |||
| 92 | cd ../../bindings/perl-piped; | ||
| 93 | perl Makefile.PL INSTALLDIRS="vendor"; | ||
| 94 | ) | ||
| 95 | |||
| 96 | #change the interpreter in file | ||
| 97 | sed -i -e "s|^PERL = ${STAGING_BINDIR_NATIVE}/.*|PERL = /usr/bin/perl|g" \ | ||
| 98 | ${B}/examples/Makefile | ||
| 99 | sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" \ | ||
| 100 | ${B}/examples/*.pl | ||
| 101 | } | ||
| 102 | |||
| 103 | PACKAGES =+ "${PN}-perl ${PN}-python" | ||
| 104 | PACKAGES =+ "rrdcached" | ||
| 105 | |||
| 106 | DESCRIPTION_rrdcached = \ | ||
| 107 | "The rrdcached package contains the data caching daemon for RRDtool." | ||
| 108 | |||
| 109 | FILES_rrdcached = "${bindir}/rrdcached \ | ||
| 110 | ${systemd_unitdir}/system/rrdcached.service \ | ||
| 111 | ${systemd_unitdir}/system/rrdcached.socket" | ||
| 112 | |||
| 113 | FILES_${PN}-doc += "${datadir}/rrdtool/examples" | ||
| 114 | |||
| 115 | DESCRIPTION_${PN}-perl = \ | ||
| 116 | "The ${PN}-perl package includes RRDtool bindings for perl." | ||
| 117 | FILES_${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm \ | ||
| 118 | ${libdir}/perl/vendor_perl/*/auto/RRDs/RRDs.*" | ||
| 119 | RDEPENDS_${PN}-perl = "perl perl-module-lib perl-module-getopt-long perl-module-time-hires \ | ||
| 120 | perl-module-io-file perl-module-ipc-open2 perl-module-io-socket" | ||
| 121 | |||
| 122 | DESCRIPTION_${PN}-python = \ | ||
| 123 | "The ${PN}-python package includes RRDtool bindings for python." | ||
| 124 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | ||
| 125 | RDEPENDS_${PN}-python = "python" | ||
| 126 | |||
| 127 | FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \ | ||
| 128 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug" | ||
