correct build script

This commit is contained in:
Mario Fetka 2017-11-01 12:13:51 +01:00
parent 1c03890432
commit 485b02a84a
4 changed files with 25 additions and 0 deletions

7
debian/changelog vendored
View File

@ -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 <mario.fetka@gmail.com> Wed, 01 Nov 2017 12:10:11 +0100
arcconf (2.05.1) UNRELEASED; urgency=medium
* Non-maintainer upload.

3
debian/postinst vendored
View File

@ -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#

3
debian/prerm vendored
View File

@ -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#

12
debian/rules vendored
View File

@ -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