From: Bernd Zeimetz Date: Sat, 9 Feb 2008 17:10:25 +0000 (+0100) Subject: Fixing library version numbers and symlinks. X-Git-Tag: debian/1.2.26-1~32 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7b2d73ca17293568d2f98a84765f5b2d9ae2858e;p=pkg-rrdtool.git Fixing library version numbers and symlinks. --- diff --git a/debian/rules b/debian/rules index 995f605..1ed79fa 100755 --- a/debian/rules +++ b/debian/rules @@ -7,10 +7,10 @@ #library versions LIB_version := $(shell grep '^librrd_la_LDFLAGS' src/Makefile.am | \ - sed 's,^[^0-9]*,,g;s,:,.,g') + sed 's,^[^0-9]*,,g;s,\([0-9]*\):\([0-9]*\):\([0-9]*\),\1.\3.\2,g') LIB_major := $(shell echo $(LIB_version) | sed 's,\..*,,g') LIB_TH_version := $(shell grep '^librrd_th_la_LDFLAGS' src/Makefile.am | \ - sed 's,^[^0-9]*,,g;s,:,.,g') + sed 's,^[^0-9]*,,g;s,\([0-9]*\):\([0-9]*\):\([0-9]*\),\1.\3.\2,g') LIB_TH_major := $(shell echo $(LIB_TH_version) | sed 's,\..*,,g') @@ -189,10 +189,10 @@ binary-arch: build-arch install-arch dh_pysupport -ppython-rrd dh_perl -a dh_installman -a - dh_link -plibrrd-dev librrd.so.$(LIB_version) /usr/lib/librrd.so - dh_link -plibrrd-dev librrd_th.so.$(LIB_TH_version) /usr/lib/librrd_th.so - dh_link -plibrrd$(LIB_major) librrd.so.$(LIB_version) /usr/lib/librrd.so.$(LIB_major) - dh_link -plibrrd$(LIB_major) librrd_th.so.$(LIB_TH_version) /usr/lib/librrd_th.so.$(LIB_TH_major) + dh_link -plibrrd-dev /usr/lib/librrd.so.$(LIB_version) /usr/lib/librrd.so + dh_link -plibrrd-dev /usr/lib/librrd_th.so.$(LIB_TH_version) /usr/lib/librrd_th.so + dh_link -plibrrd$(LIB_major) /usr/lib/librrd.so.$(LIB_version) /usr/lib/librrd.so.$(LIB_major) + dh_link -plibrrd$(LIB_major) /usr/lib/librrd_th.so.$(LIB_TH_version) /usr/lib/librrd_th.so.$(LIB_TH_major) dh_link -a dh_strip -a dh_compress -a