From 485b02a84a041753d75ad00f9d22db575a03234a Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 1 Nov 2017 12:13:51 +0100 Subject: [PATCH] correct build script --- debian/changelog | 7 +++++++ debian/postinst | 3 +++ debian/prerm | 3 +++ debian/rules | 12 ++++++++++++ 4 files changed, 25 insertions(+) diff --git a/debian/changelog b/debian/changelog index d19af8e..40b3683 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +arcconf (2.05.3-1) UNRELEASED; urgency=medium + + * new integrated version + * add old 7.31 version of arcconf for compatiility + + -- Mario Fetka Wed, 01 Nov 2017 12:10:11 +0100 + arcconf (2.05.1) UNRELEASED; urgency=medium * Non-maintainer upload. diff --git a/debian/postinst b/debian/postinst index 33c92e0..ead7d16 100644 --- a/debian/postinst +++ b/debian/postinst @@ -35,6 +35,9 @@ fi if [ -f "/usr/lib/arcconf/arcconf-1.04" ]; then update-alternatives --install /usr/lib/arcconf/arcconf arcconf /usr/lib/arcconf/arcconf-1.04 104 fi +if [ -f "/usr/lib/arcconf/arcconf-7.31" ]; then + update-alternatives --install /usr/lib/arcconf/arcconf arcconf /usr/lib/arcconf/arcconf-7.31 100 +fi #DEBHELPER# diff --git a/debian/prerm b/debian/prerm index 48c754f..0a4a5d5 100644 --- a/debian/prerm +++ b/debian/prerm @@ -35,6 +35,9 @@ fi if [ -f "/usr/lib/arcconf/arcconf-1.04" ]; then update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.04 fi +if [ -f "/usr/lib/arcconf/arcconf-7.31" ]; then + update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-7.31 +fi #DEBHELPER# diff --git a/debian/rules b/debian/rules index a0636f0..1331f9c 100755 --- a/debian/rules +++ b/debian/rules @@ -53,6 +53,12 @@ ifeq ($(DEB_BUILD_ARCH),amd64) sed -i "s/libstdc++.so.6/libstdcv4.so.6/g" amd64/1.04/arcconf install -D -m 0755 amd64/1.04/arcconf \ debian/arcconf/usr/lib/arcconf/arcconf-1.04 + sed -i "s/libstdc++.so.5/libstdcv3.so.5/g" amd64/7.31/libstdc++.so.5 + install -D -m 0755 amd64/7.31libstdc++.so.5 \ + debian/arcconf/usr/lib/arcconf/libstdcv3.so.5 + sed -i "s/libstdc++.so.5/libstdcv3.so.5/g" amd64/7.31/arcconf + install -D -m 0755 amd64/7.31/arcconf \ + debian/arcconf/usr/lib/arcconf/arcconf-7.31 endif ifeq ($(DEB_BUILD_ARCH),i386) install -D -m 0755 debian/arcconf.wrapper \ @@ -82,6 +88,12 @@ ifeq ($(DEB_BUILD_ARCH),i386) sed -i "s/libstdc++.so.6/libstdcv4.so.6/g" i386/1.04/arcconf install -D -m 0755 i386/1.04/arcconf \ debian/arcconf/usr/lib/arcconf/arcconf-1.04 + sed -i "s/libstdc++.so.5/libstdcv3.so.5/g" i386/7.31/libstdc++.so.5 + install -D -m 0755 i386/7.31libstdc++.so.5 \ + debian/arcconf/usr/lib/arcconf/libstdcv3.so.5 + sed -i "s/libstdc++.so.5/libstdcv3.so.5/g" i386/7.31/arcconf + install -D -m 0755 i386/7.31/arcconf \ + debian/arcconf/usr/lib/arcconf/arcconf-7.31 endif dh_install