From 76cec77ec4d266dc3b9cfcac55adb76fa930bbaf Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 18 May 2004 18:40:31 +0000 Subject: [PATCH] initial debian build system added -- Mike Slifcak git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@251 a5681a0c-68f1-0310-ab6d-d61299d08faa --- debian/README.Debian | 33 ++++ debian/build_freetype.sh | 42 +++++ debian/changelog | 371 ++++++++++++++++++++++++++++++++++++++ debian/control | 99 ++++++++++ debian/copyright | 30 +++ debian/librrd0-dev.files | 5 + debian/librrd0.files | 6 + debian/librrd0.postinst | 49 +++++ debian/librrd0.postrm | 37 ++++ debian/librrd0.shlibs | 1 + debian/librrdp-perl.files | 2 + debian/librrds-perl.files | 3 + debian/rrdtool-tcl.files | 1 + debian/rrdtool.files | 4 + debian/rules | 170 +++++++++++++++++ debian/watch | 1 + 16 files changed, 854 insertions(+) create mode 100644 debian/README.Debian create mode 100755 debian/build_freetype.sh create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/librrd0-dev.files create mode 100644 debian/librrd0.files create mode 100644 debian/librrd0.postinst create mode 100644 debian/librrd0.postrm create mode 100644 debian/librrd0.shlibs create mode 100644 debian/librrdp-perl.files create mode 100644 debian/librrds-perl.files create mode 100644 debian/rrdtool-tcl.files create mode 100644 debian/rrdtool.files create mode 100755 debian/rules create mode 100644 debian/watch diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..ad7db63 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,33 @@ +rrdtool for Debian +---------------------- + +The RRDtool distribution is split into several packages: + + +Package: rrdtool + Command-line utilities and documentation + +Package: librrd0 + Shared library + +Package: librrd0-dev + Static library + +Package: librrds-perl + Perl interface using the shared library (RRDs) + +Package: librrdp-perl + Perl interface using command pipes to the rrdtool program (RRDp) + +Package: rrdtool-tcl + TCL interface using the shared library (librrd) + + +Original by + + -- Matt Zimmerman , Fri, 10 Sep 1999 10:53:19 -0700 + +Hacked for 1.1.x by + + -- Mike Slifcak , Tue , 18 May 2004 20:38:40 +0200 + diff --git a/debian/build_freetype.sh b/debian/build_freetype.sh new file mode 100755 index 0000000..8edc669 --- /dev/null +++ b/debian/build_freetype.sh @@ -0,0 +1,42 @@ +: +# Build freetype2 for rrdtool on Debian/Linux +# 12-May-2004 Mike Slifcak + +FOUND=`find /lib /usr/lib /usr/local/lib -name libfreetype.a | wc -l` +FOUND=`echo $FOUND` +if [ $FOUND -lt 1 ] ; then +######################################## +## Build the independent object freetype2 +######################################## +cd /tmp +rm -rf freetype*/ +if [ ! -e freetype*gz ] ; then + echo "get freetype-2.1.8 or stable from http://freetype.sf.net/" + exit 1 +fi +tar tzf freetype*gz > /dev/null 2>&1 +RC=$? +if [ $RC -ne 0 ] ; then + echo "Need one good freetype*gz. Just one. In /tmp. Thanks!" + exit 1 +fi + +echo -n "Testing " +ls freetype*gz +tar xzf freetype*gz +echo "Building freetype" +cd freetype-*/ +./configure --disable-shared > cfg.out 2>&1 +make > make.out 2>&1 +make install > inst.out 2>&1 +grep Error *.out +if [ $? -ne 1 ] ; then + echo "Building freetype failed. See `pwd`/*.out for details" + exit 1 +fi +cd .. +fi ## skip freetype build + +echo "Building freetype succeeded." + +exit 0 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e2d76b5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,371 @@ +rrdtool (1.1.0) unstable; urgency=low + + * grafted "debian" directory from 1.0.46 source + * no tcl package support due to build failures (see ##NO_TCL ) + + -- Mike Slifcak <> Wed, 12 May 2004 20:53:16 -0400 + +rrdtool (1.0.46-3) unstable; urgency=low + + * Add dependencies to librrd0-dev to ensure that static linking is + possible: libgd-gif1-dev, zlib1g-dev + * #include in rrd.h (Closes: #238849) + * Only link rrdcgi with -lcgi, not librrd + + -- Matt Zimmerman Fri, 19 Mar 2004 11:38:39 -0800 + +rrdtool (1.0.46-2) unstable; urgency=medium + + * Fix tcl module installation (Closes: #231171) + + -- Matt Zimmerman Wed, 4 Feb 2004 15:35:46 -0800 + +rrdtool (1.0.46-1) unstable; urgency=low + + * New upstream release + + -- Matt Zimmerman Mon, 12 Jan 2004 23:22:09 -0800 + +rrdtool (1.0.45-1) unstable; urgency=low + + * New upstream release + * Deal with changed tclrrd naming scheme + * Build with tcl8.4 + * Remove old dpkg-dev build-dependency; even woody is new enough + + -- Matt Zimmerman Wed, 17 Dec 2003 14:09:11 -0800 + +rrdtool (1.0.42-2) unstable; urgency=low + + * Build-Depends: libpng12-dev instead of libpng3-dev (when will the madness end?) + (Closes: #195224 + I hope this will also fix weird version mismatch problems (Closes: #194900) + + -- Matt Zimmerman Sat, 31 May 2003 15:06:42 -0400 + +rrdtool (1.0.42-1) unstable; urgency=low + + * New upstream release + * librrd0-dev Section: libdevel + * librrd[sp]-perl Section: perl + * Build with libpng3 (Closes: #189493) + + -- Matt Zimmerman Thu, 15 May 2003 19:44:37 -0400 + +rrdtool (1.0.40-2) unstable; urgency=low + + * Correctly suppress non-image output when writing image to stdout + (Closes: #182217) + + -- Matt Zimmerman Sat, 1 Mar 2003 16:59:39 -0500 + +rrdtool (1.0.40-1) unstable; urgency=low + + * New upstream release + * Remove unnecessary rrd_free to avoid crash on invalid option + (Closes: #166156) + * Clean example source code; some libtool cruft was getting installed in + /usr/share/doc/examples + + -- Matt Zimmerman Tue, 17 Dec 2002 22:11:46 -0500 + +rrdtool (1.0.39-2) unstable; urgency=low + + * Rebuild for perl 5.8 (Closes: #158728) + + -- Matt Zimmerman Sun, 25 Aug 2002 17:29:41 -0400 + +rrdtool (1.0.39-1) unstable; urgency=low + + * New upstream release + + -- Matt Zimmerman Wed, 31 Jul 2002 00:40:00 -0400 + +rrdtool (1.0.38-1) unstable; urgency=low + + * New upstream release (Closes: #148486) + + -- Matt Zimmerman Wed, 29 May 2002 12:28:28 -0400 + +rrdtool (1.0.35-2) unstable; urgency=low + + * Remove CVS directories with rm -rf. This broke autobuilds entirely. + (Closes: #140075) + + -- Matt Zimmerman Tue, 26 Mar 2002 17:15:01 -0500 + +rrdtool (1.0.35-1) unstable; urgency=low + + * New upstream release. + + -- Matt Zimmerman Sun, 24 Mar 2002 11:29:10 -0500 + +rrdtool (1.0.33-9) unstable; urgency=low + + * Call dh_shlibdeps with -l to allow it to find dependencies correctly + (Closes: #118629) + * Add call to ldconfig in postrm of librrd0 + * Remove .cvsignore files from installed examples + + -- Matt Zimmerman Sat, 10 Nov 2001 14:14:51 -0500 + +rrdtool (1.0.33-8) unstable; urgency=low + + * Use AM_MAINTAINER_MODE to keep the makefiles from trying to rebuild + autoconf/automake stuff during the build (Closes: #117599) + * Regenerated everything AGAIN. + * Use DESTDIR instead of prefix= during "make install" + + -- Matt Zimmerman Mon, 29 Oct 2001 22:22:07 -0500 + +rrdtool (1.0.33-7) unstable; urgency=low + + * Add an example to the rrddump documentation showing what is necessary + to transfer an RRD from one architecture to another. (Closes: #117147) + * Regenerated autoconf/automake configs + + -- Matt Zimmerman Mon, 29 Oct 2001 02:28:16 -0500 + +rrdtool (1.0.33-6) unstable; urgency=low + + * Spelling corrections from Martin Schulze (Closes: #110784) + + -- Matt Zimmerman Sat, 8 Sep 2001 13:13:22 -0400 + +rrdtool (1.0.33-5) unstable; urgency=low + + * Ship with pre-generated files from autoconf2.50/automake, rather than + pulling them in at build-time, in order to work around the current + libtool mess. This makes the diff less manageable, but should make + the build more stable. + * debian/control: remove build-dependencies on autoconf/automake/libtool + * debian/rules: don't call autoconf/automake + * Fix shlibs file (it was trying to use a substitution) + * configure.in: remove makefiles that no longer exist from AC_OUTPUT. + Apparently this is an error in autoconf 2.50. + * configure.in: Remove wacky logic to pull PIC flags out of libtool, and + let libtool do the right thing. + * debian/rules: shlibs.local hackery is no longer necessary, removed + + -- Matt Zimmerman Fri, 3 Aug 2001 17:36:43 -0400 + +rrdtool (1.0.33-4) unstable; urgency=low + + * Add build-dependencies on libtool and autoconf (Closes: #105655) + + -- Matt Zimmerman Tue, 17 Jul 2001 15:44:25 -0400 + +rrdtool (1.0.33-3) unstable; urgency=low + + * Update config.{sub,guess} from autotools-dev 20010702.1 + (Closes: #105037) + * Update ltmain.sh for good measure, from libtool 1.4-1 + * Build-Depend on autoconf, and run autoconf and aclocal from + debian/rules (in addition to automake) + + -- Matt Zimmerman Sat, 14 Jul 2001 03:19:22 -0400 + +rrdtool (1.0.33-2) unstable; urgency=low + + * Rebuild with latest tcl8.3-dev, to fix shared object extension + + -- Matt Zimmerman Sat, 3 Mar 2001 17:28:24 -0500 + +rrdtool (1.0.33-1) unstable; urgency=low + + * New upstream version. + * This is yet another patch release to fix some distribution/compilation + problems. There should be no visible changes for Debian users from + 1.0.32-3. + + -- Matt Zimmerman Thu, 1 Mar 2001 02:27:53 -0500 + +rrdtool (1.0.32-3) unstable; urgency=low + + * Fix the tcl extension module to build against tcl8.3, rather than + tcl8.0 (Closes: #87357) + * debian/control: Build-depend on tcl8.3-dev + * debian/rules: tclconfigdir = /usr/lib/tcl8.3 + * tcl/Makefile.am: (upstream) -I/usr/include/tcl@TCL_VERSION@ + * configure.in: (upstream) AC_SUBST(TCL_VERSION) + + -- Matt Zimmerman Sat, 24 Feb 2001 02:25:46 -0500 + +rrdtool (1.0.32-2) unstable; urgency=low + + * List changes to upstream source in the copyright file (as well as the + changelog) + * Link against libgd-gif instead of libgd, to restore GIF support + + -- Matt Zimmerman Fri, 23 Feb 2001 15:27:37 -0500 + +rrdtool (1.0.32-1) unstable; urgency=low + + * New upstream version. Hopefully this one will last more than 24 + hours (Closes: #75771) + + -- Matt Zimmerman Wed, 21 Feb 2001 20:13:09 -0500 + +rrdtool (1.0.27-7) unstable; urgency=low + + * debian/rules: Updated for new Perl policy + * debian/rules: Don't use install-stamp; it causes more problems than it + prevents + * debian/rules: Don't call dh_suidregister; we didn't use it anyway + * debian/control: Build-depend on the new debhelper for dh_perl + * debian/control: rrdtool-tcl only seems to work with 8.0, so depend on + tcl8.0 + * debian/control: Build-depend on perl 5.6.0+ + * debian/librrd?-perl: Updated for new Perl filesystem layout + + -- Matt Zimmerman Thu, 15 Feb 2001 19:04:11 -0500 + +rrdtool (1.0.27-6) unstable; urgency=low + + * debian/rules: Handle DEB_BUILD_OPTIONS debug, nostrip + * debian/rules: Separate out "configure" target + * debian/rules: Miscellaneous cleanup + * Recompile librrds-perl against perl-5.6 + + -- Matt Zimmerman Tue, 19 Dec 2000 21:23:55 -0500 + +rrdtool (1.0.27-5) unstable; urgency=low + + * Fix Build-Depends to reflect our dependency on dpkg-dev >= 1.7.0 | + librrd0. The old dpkg can only calculate our dependencies correctly + if the runtime library is installed on the system, so potato users + must either install the potato librrd0 or the new dpkg-dev + (Closes: #77479) + + -- Matt Zimmerman Mon, 20 Nov 2000 20:39:55 -0500 + +rrdtool (1.0.27-4) unstable; urgency=low + + * Updated to comply with policy 3.2.1.0: + - Don't build with -g by default + * Build-Depend on tcl8.0-dev (not tcl-dev), since that is the only + version we currently work with. + * Added automake to Build-Depends (oops) + + -- Matt Zimmerman Sat, 18 Nov 2000 22:29:02 -0500 + +rrdtool (1.0.27-3) unstable; urgency=low + + * Big packaging cleanup release. + * Fixed perl module compilation to link with the shared library, rather + than including a copy of the static library inside the .so (also fixes + a lintian error, shlib-with-non-pic-code in librrds-perl) + * Fixed tcl module compilation to link with the shared library, rather + than including a copy of the static library inside the .so (also fixes + a lintian error, shlib-with-non-pic-code in rrdtool-tcl) + * The above shrunk the size of the perl and tcl library packages from + 60k each to about 20k (perl) and 16k (tcl) + * We can now use shlibdeps to calculate the dependencies for + librrds-perl, so those will be more correct now + * Rather than include Makefile.in changes in the .diff.gz, just keep our + modifications to Makefile.am and run automake in debian/rules. This + makes the .diff.gz much smaller and cleaner + * Fixed shared library dependencies all around to be smarter + * rrdtool package now Suggests librrds-perl (rather than depending on + perl), as it is only needed for an auxiliary script for converting + mrtg data + + -- Matt Zimmerman Fri, 10 Nov 2000 19:34:05 -0500 + +rrdtool (1.0.27-2) unstable; urgency=low + + * Updated maintainer email address (now official maintainer) + + -- Matt Zimmerman Wed, 1 Nov 2000 22:44:41 -0500 + +rrdtool (1.0.27-1) unstable; urgency=low + + * New upstream version. + + -- Matt Zimmerman Wed, 13 Sep 2000 13:10:14 -0400 + +rrdtool (1.0.26-1) unstable; urgency=low + + * New upstream version. + + -- Matt Zimmerman Sun, 10 Sep 2000 16:34:08 -0400 + +rrdtool (1.0.25-1) unstable; urgency=low + + * New upstream version. + + -- Matt Zimmerman Sun, 23 Jul 2000 02:23:53 -0400 + +rrdtool (1.0.24-2) unstable; urgency=low + + * Updated for libgd 1.8.3 (build depends, recompile) + + -- Matt Zimmerman Fri, 7 Jul 2000 19:33:29 -0400 + +rrdtool (1.0.24-1) unstable; urgency=low + + * New upstream version (Closes: #61997). + + -- Matt Zimmerman Fri, 30 Jun 2000 13:53:27 -0400 + +rrdtool (1.0.17-1) unstable; urgency=low + + * New upstream version. + * Now creates rrdtool-tcl, containing tcl bindings. + + -- Matt Zimmerman Wed, 26 Apr 2000 13:16:24 -0700 + +rrdtool (1.0.16-1) unstable; urgency=low + + * New upstream version. + * Not released. + + -- Matt Zimmerman Wed, 26 Apr 2000 10:53:36 -0700 + +rrdtool (1.0.13-2) unstable; urgency=low + + * Build-Depends: cgilib, zlib1g-dev, libpng2-dev, libgd1g-dev, groff, + debhelper. Hopefully that's everything. + + -- Matt Zimmerman Fri, 7 Apr 2000 14:16:55 -0700 + +rrdtool (1.0.13-1) unstable; urgency=low + + * New upstream version (Closes: #58583) + * Added Build-Depends for cgilib (Closes: #55270) + + -- Matt Zimmerman Thu, 23 Mar 2000 15:55:37 -0800 + +rrdtool (1.0.10-1) unstable; urgency=low + + * New upstream version. + + -- Matt Zimmerman Mon, 10 Jan 2000 16:46:33 -0800 + +rrdtool (1.0.7-3) unstable; urgency=low + + * Non-i386 fixes, thanks to Christopher C Chimelis : + * Changed 'clean' target in debian/rules to remove the auto-generated + Makefiles for the Perl modules + * Changed Depends: for librrds-perl to use shlibdeps + + -- Matt Zimmerman Mon, 22 Nov 1999 10:47:13 -0800 + +rrdtool (1.0.7-2) unstable; urgency=low + + * Linked RRDs.so against libpng, closes: #49701 + + -- Matt Zimmerman Tue, 9 Nov 1999 15:02:40 -0800 + +rrdtool (1.0.7-1) unstable; urgency=low + + * Initial Release. + * Upstream source ships with cgilib-0.4, gd-1.3, libpng-1.0.3, and + zlib-1.3.3 (!). Build process is modified to skip building these, and + instead link with the Debian versions. + * Modifications for gd 1.6.1 included removal of GIF support (no longer + included with gd as of 1.6) + + -- Matt Zimmerman Sat, 11 Sep 1999 13:29:29 -0700 + + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e66302e --- /dev/null +++ b/debian/control @@ -0,0 +1,99 @@ +Source: rrdtool +Section: utils +Priority: extra +Maintainer: Matt Zimmerman +Standards-Version: 3.2.1 +Build-Depends: debhelper (>= 3.0.5), cgilib (>= 0.5), zlib (>= 1.2.1), tcl8.4-dev, perl (>= 5.8.0) +Build-Depends: libart-2.0-dev (>= 2.3.16), libpng12-dev (>= 1.2.5) + +Package: rrdtool +Architecture: any +Depends: ${shlibs:Depends} +Suggests: librrds-perl +Description: Time-series data storage and display system (programs) + RRD is the Acronym for Round Robin Database. RRD is a system to store and + display time-series data (i.e. network bandwidth, machine-room temperature, + server load average). It stores the data in a very compact way that will + not expand over time, and it presents useful graphs by processing the data + to enforce a certain data density. It can be used either via simple wrapper + scripts (from shell or Perl) or via frontends that poll network devices and + put friendly user interface on it. + . + This package contains command line programs used to access and manipulate + RRDs. + +Package: librrd0 +Architecture: any +Section: libs +Priority: optional +Depends: ${shlibs:Depends} +Description: Time-series data storage and display system (runtime) + RRD is the Acronym for Round Robin Database. RRD is a system to store and + display time-series data (i.e. network bandwidth, machine-room temperature, + server load average). It stores the data in a very compact way that will + not expand over time, and it presents useful graphs by processing the data + to enforce a certain data density. It can be used either via simple wrapper + scripts (from shell or Perl) or via frontends that poll network devices and + put friendly user interface on it. + . + This package contains shared libraries used to access and manipulate RRDs. + +Package: librrd0-dev +Architecture: any +Section: libdevel +Depends: librrd0 (= ${Source-Version}), ${shlibs:Depends} +Description: Time-series data storage and display system (development) + RRD is the Acronym for Round Robin Database. RRD is a system to store and + display time-series data (i.e. network bandwidth, machine-room temperature, + server load average). It stores the data in a very compact way that will + not expand over time, and it presents useful graphs by processing the data + to enforce a certain data density. It can be used either via simple wrapper + scripts (from shell or Perl) or via frontends that poll network devices and + put friendly user interface on it. + . + This package contains libraries used to develop software that uses RRDs. + +Package: librrds-perl +Architecture: any +Section: perl +Depends: ${perl:Depends}, ${shlibs:Depends} +Description: Time-series data storage and display system (perl-shared) + RRD is the Acronym for Round Robin Database. RRD is a system to store and + display time-series data (i.e. network bandwidth, machine-room temperature, + server load average). It stores the data in a very compact way that will + not expand over time, and it presents useful graphs by processing the data + to enforce a certain data density. It can be used either via simple wrapper + scripts (from shell or Perl) or via frontends that poll network devices and + put friendly user interface on it. + . + This package contains a Perl interface to RRDs using a shared library. + +Package: librrdp-perl +Architecture: all +Section: perl +Depends: ${perl:Depends}, rrdtool +Description: Time-series data storage and display system (perl-piped) + RRD is the Acronym for Round Robin Database. RRD is a system to store and + display time-series data (i.e. network bandwidth, machine-room temperature, + server load average). It stores the data in a very compact way that will + not expand over time, and it presents useful graphs by processing the data + to enforce a certain data density. It can be used either via simple wrapper + scripts (from shell or Perl) or via frontends that poll network devices and + put friendly user interface on it. + . + This package contains a Perl interface to RRDs using command pipes. + +#NO_TCL Package: rrdtool-tcl +#NO_TCL Architecture: any +#NO_TCL Section: utils +#NO_TCL Depends: ${shlibs:Depends}, tcl8.4 +#NO_TCL Description: Time-series data storage and display system (tcl) +#NO_TCL RRD is the Acronym for Round Robin Database. RRD is a system to store and +#NO_TCL display time-series data (i.e. network bandwidth, machine-room temperature, +#NO_TCL server load average). It stores the data in a very compact way that will +#NO_TCL not expand over time, and it presents useful graphs by processing the data +#NO_TCL to enforce a certain data density. It can be used either via simple wrapper +#NO_TCL scripts (from shell or Perl) or via frontends that poll network devices and +#NO_TCL put friendly user interface on it. +#NO_TCL . +#NO_TCL This package contains a tcl interface to RRDs. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a6f32a9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Matt Zimmerman on +Fri, 10 Sep 1999 10:53:19 -0700. + +Copied from 1.0.46 to 1.1.0 snapshot by Mike Slifcak on Wed May 12 20:53:16 EDT 2004 + +The source package was downloaded from + http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/beta/ + +Upstream Author(s): Tobias Oetiker + +Modifications to upstream source: + - Build and install shared libraries + - Link everything dynamically + - Link with Debian versions of libraries rather than using the + supplied (old) versions + +Copyright: + + RRDTOOL - Round Robin Database Tool + A tool for fast logging of numerical data graphical display + of this data. + + Copyright (c) 1998, 1999 Tobias Oetiker + All rights reserved. + + RRDtool is distributed under the terms of the GNU General Public License, + version 2. + + On Debian GNU/Linux systems, you can find a copy of the GNU General Public + License in `/usr/share/common-licenses/GPL'. diff --git a/debian/librrd0-dev.files b/debian/librrd0-dev.files new file mode 100644 index 0000000..957ce46 --- /dev/null +++ b/debian/librrd0-dev.files @@ -0,0 +1,5 @@ +usr/lib/librrd.a +usr/lib/librrd.so +usr/lib/librrd_th.a +usr/lib/librrd_th.so +usr/include/* diff --git a/debian/librrd0.files b/debian/librrd0.files new file mode 100644 index 0000000..c198f71 --- /dev/null +++ b/debian/librrd0.files @@ -0,0 +1,6 @@ +usr/lib/librrd.so.1.0.0 +usr/lib/librrd.so.1 +usr/lib/librrd.la +usr/lib/librrd_th.so.1.0.0 +usr/lib/librrd_th.so.1 +usr/lib/librrd_th.la diff --git a/debian/librrd0.postinst b/debian/librrd0.postinst new file mode 100644 index 0000000..8b92694 --- /dev/null +++ b/debian/librrd0.postinst @@ -0,0 +1,49 @@ +#! /bin/sh +# postinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + + ldconfig + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/librrd0.postrm b/debian/librrd0.postrm new file mode 100644 index 0000000..a828228 --- /dev/null +++ b/debian/librrd0.postrm @@ -0,0 +1,37 @@ +#! /bin/sh +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove) + ldconfig + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + diff --git a/debian/librrd0.shlibs b/debian/librrd0.shlibs new file mode 100644 index 0000000..d0e06dd --- /dev/null +++ b/debian/librrd0.shlibs @@ -0,0 +1 @@ +librrd 0 librrd0 (>= 1.0.10-1) diff --git a/debian/librrdp-perl.files b/debian/librrdp-perl.files new file mode 100644 index 0000000..75adff6 --- /dev/null +++ b/debian/librrdp-perl.files @@ -0,0 +1,2 @@ +usr/lib/perl5/RRDp.pm +usr/share/man/man3/RRDp.3pm diff --git a/debian/librrds-perl.files b/debian/librrds-perl.files new file mode 100644 index 0000000..5e50edb --- /dev/null +++ b/debian/librrds-perl.files @@ -0,0 +1,3 @@ +usr/lib/perl5/auto +usr/lib/perl5/RRDs.pm +usr/share/man/man3/RRDs.3pm diff --git a/debian/rrdtool-tcl.files b/debian/rrdtool-tcl.files new file mode 100644 index 0000000..af83bca --- /dev/null +++ b/debian/rrdtool-tcl.files @@ -0,0 +1 @@ +usr/lib/tclrrd* diff --git a/debian/rrdtool.files b/debian/rrdtool.files new file mode 100644 index 0000000..b08aa5d --- /dev/null +++ b/debian/rrdtool.files @@ -0,0 +1,4 @@ +usr/bin +usr/share/man/man1 +usr/share/doc/rrdtool +usr/share/rrdtool diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ed736c3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,170 @@ +#!/usr/bin/make -f +#-*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independant +# package. + +package:=rrdtool + +top_srcdir:=$(shell pwd) +tmp:=$(top_srcdir)/debian/tmp + +# TCL installation stuff (must match tcl/Makefile.am) +tclconfigdir = /usr/lib/tcl8.4 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +# Defaults +CFLAGS := -O2 + +# Handle DEB_BUILD_OPTIONS +ifneq "$(findstring debug,$(DEB_BUILD_OPTIONS))" "" +CFLAGS += -g +endif + +# Whack the flags to compile additional dependent pieces +CFLAGS += -I/usr/include/libart-2.0 -I/usr/local/include/freetype2 + +##NO_TCL CFLAGS += -I/usr/include/tcl8.4 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Make sure we can find tcl stuff (configure won't fail) + test -f $(tclconfigdir)/tclConfig.sh + + # Configure C and Tcl stuff +##NO_TCL CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --enable-shared=yes --enable-static=yes --with-tcllib=$(tclconfigdir) --enable-local-libpng=yes --enable-local-zlib=yes + CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --enable-shared=yes --enable-static=yes --enable-local-libpng=yes --enable-local-zlib=yes + + # Configure Perl stuff + cd bindings/perl-piped && \ + rm -f Makefile && \ + perl Makefile.PL INSTALLDIRS=vendor + + cd bindings/perl-shared && \ + rm -f Makefile && \ + perl Makefile.PL INSTALLDIRS=vendor + + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Build most stuff + $(MAKE) + + # We now build perl-piped and perl-shared separately + cd bindings/perl-piped && make OPTIMIZE="$(CFLAGS)" + cd bindings/perl-shared && make OPTIMIZE="$(CFLAGS)" + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + -rm bindings/perl*/Makefile.old bindings/perl*/Makefile + + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. +##NO_TCL $(MAKE) install site-tcl-install DESTDIR=$(tmp) + $(MAKE) install DESTDIR=$(tmp) + + mkdir -p $(tmp)/usr/share/doc + mv $(tmp)/usr/doc $(tmp)/usr/share/doc/rrdtool + mkdir -p $(tmp)/usr/share/rrdtool + mv $(tmp)/usr/examples $(tmp)/usr/share/rrdtool + mv $(tmp)/usr/html $(tmp)/usr/share/rrdtool + + ## touch-up perl docs + mv $(tmp)/usr/man $(tmp)/usr/share + mkdir -p $(tmp)/usr/share/man/man3 + mv $(tmp)/usr/share/man/man1/RRDs.1 $(tmp)/usr/share/man/man3/RRDs.3pm + mv $(tmp)/usr/share/man/man1/RRDp.1 $(tmp)/usr/share/man/man3/RRDp.3pm + mv $(tmp)/usr/lib/perl $(tmp)/usr/lib/perl5 + + dh_movefiles + +# Build architecture-independent files here. +binary-indep: build install +# dh_testversion + dh_testdir -i + dh_testroot -i + dh_installdocs -i +# dh_installexamples -i +# dh_installmenu -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installinit -i +# dh_installcron -i +# dh_installmanpages -i +# dh_installinfo -i +# dh_undocumented +#LATER dh_installchangelogs -i ChangeLog + dh_link -i + dh_compress -i + dh_fixperms -i + # You may want to make some executables suid here. +# dh_suidregister -i + dh_installdeb -i + dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir -a + dh_testroot -a + dh_installdocs -a +# dh_installexamples -a +# dh_installmenu -a +# dh_installemacsen -a +# dh_installpam -a +# dh_installinit -a +# dh_installcron -a +# dh_installmanpages -a +# dh_installinfo -a +# dh_undocumented +#LATER dh_installchangelogs -a ChangeLog +ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" "" + dh_strip -a +endif + dh_link -a + dh_compress -a -Xexamples/ + dh_fixperms -a + # You may want to make some executables suid here. +# dh_suidregister -a +# dh_makeshlibs -a + dh_installdeb -a + dh_perl -a + dh_shlibdeps -a -ldebian/librrd0/usr/lib + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9792b1f --- /dev/null +++ b/debian/watch @@ -0,0 +1 @@ +http://people.ee.ethz.ch /~oetiker/webtools/rrdtool/pub rrdtool-(.*)\.tar\.gz debian -- 2.30.2