X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Frules;h=390eb8d46a8a4f39240c20df6c5edac4a62feb45;hb=ce043308de93b4f533652e345a3bf7686ad7c2a0;hp=040c37240496395af9ec933b699a1e49a991536c;hpb=d9b2787163d4598b1fc8c5c61c05f3cbc39a6ce7;p=pkg-rrdtool.git diff --git a/debian/rules b/debian/rules index 040c372..390eb8d 100755 --- a/debian/rules +++ b/debian/rules @@ -19,10 +19,6 @@ endif -#Ruby versions to build for -RUBY_VERS := 1.8 1.9.1 -RUBY_DEFAULT_VERS := 1.8 - PY_VERS := $(shell pyversions -vr) #tcl version we're building for @@ -76,6 +72,8 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif + dh_autoreconf + LDFLAGS="$(LINKER_FLAGS)" \ CFLAGS="$(CFLAGS)" \ RRDDOCDIR=/usr/share/doc/rrdtool \ @@ -131,6 +129,8 @@ endif rm -f src/librrd.sym rm -f config.h + dh_autoreconf_clean + dh_clean clean-python%: unpatch @@ -163,15 +163,7 @@ install-common-stamp: build-arch-stamp install-arch: install-common-stamp $(PY_VERS:%=install-python%) #build and install ruby - set -e; \ - cd bindings/ruby ;\ - for rbv in $(RUBY_VERS); do \ - ruby$$rbv extconf.rb ;\ - make ;\ - make install sitelibdir=$(CURDIR)/debian/librrd-ruby$$rbv`ruby$$rbv -r rbconfig -e 'print Config::CONFIG["rubylibdir"]'` \ - sitearchdir=$(CURDIR)/debian/librrd-ruby$$rbv`ruby$$rbv -r rbconfig -e 'print Config::CONFIG["archdir"]'` ;\ - make distclean ;\ - done + dh_ruby --install dh_installexamples -s chmod 644 debian/rrdcached/usr/share/doc/rrdcached/examples/RRDCached.pm @@ -193,11 +185,9 @@ install-python%: install-common-stamp binary-indep: build-indep install-indep dh_testdir dh_testroot - dh_link -plibrrd-ruby /usr/share/doc/librrd-ruby$(RUBY_DEFAULT_VERS) /usr/share/doc/librrd-ruby - dh_installchangelogs -i -Nlibrrd-ruby CHANGES - dh_installdocs -i -Nlibrrd-ruby -A CONTRIBUTORS NEWS - dh_link -i -Nlibrrd-ruby - echo 'rubydefault:Depends=librrd-ruby$(RUBY_DEFAULT_VERS)' >> debian/librrd-ruby.substvars + dh_installchangelogs -i CHANGES + dh_installdocs -i -A CONTRIBUTORS NEWS + dh_link -i dh_perl -i dh_compress -i dh_fixperms -i