This commit is contained in:
Mario Fetka 2019-08-13 15:13:03 +02:00
parent d2f9a836fe
commit 6089a5c77b
3 changed files with 8 additions and 0 deletions

3
debian/postinst vendored
View File

@ -2,6 +2,9 @@
set -e
if [ -f "/usr/lib/arcconf/arcconf-3.01" ]; then
update-alternatives --install /usr/lib/arcconf/arcconf arcconf /usr/lib/arcconf/arcconf-3.01 301
fi
if [ -f "/usr/lib/arcconf/arcconf-3.00" ]; then
update-alternatives --install /usr/lib/arcconf/arcconf arcconf /usr/lib/arcconf/arcconf-3.00 300
fi

3
debian/prerm vendored
View File

@ -2,6 +2,9 @@
set -e
if [ -f "/usr/lib/arcconf/arcconf-3.01" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-3.01
fi
if [ -f "/usr/lib/arcconf/arcconf-3.00" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-3.00
fi

2
debian/rules vendored
View File

@ -21,6 +21,8 @@ ifeq ($(DEB_BUILD_ARCH),amd64)
install -D -m 0755 amd64/centos5/libstdc++.so.6.0.8 \
debian/arcconf/usr/lib/arcconf/libstdcv4.so.6.0.8
ln -s libstdcv4.so.6.0.8 debian/arcconf/usr/lib/arcconf/libstdcv4.so.6
install -D -m 0755 amd64/3.01/arcconf \
debian/arcconf/usr/lib/arcconf/arcconf-3.01
install -D -m 0755 amd64/3.00/arcconf \
debian/arcconf/usr/lib/arcconf/arcconf-3.00
sed -i "s/libstdc++.so.6/libstdcv4.so.6/g" amd64/2.06/arcconf