|
|
@@ -13,7 +13,9 @@ cd ${executabledir}
|
|
|
if [ "${executable}" == "./hlds_run" ];then
|
|
|
executable=hlds_linux
|
|
|
elif [ "${executable}" == "./srcds_run" ]||[ "${executable}" == "./dabds.sh" ];then
|
|
|
- executable=srcds_linux
|
|
|
+ executable=srcds_linux
|
|
|
+elif [ "${executable}" == "./server_linux32" ];then
|
|
|
+ executable=libSpark_Core.so
|
|
|
fi
|
|
|
readelf -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > ${rootdir}/.depdetect_readelf
|
|
|
|
|
|
@@ -24,7 +26,7 @@ echo "apt-get install " > ${rootdir}/.depdetect_debian_list_uniq
|
|
|
while read lib; do
|
|
|
sharedlib=${lib}
|
|
|
if [ "${lib}" == "libm.so.6" ]||[ ${lib} == "libc.so.6" ]||[ ${lib} == "libpthread.so.0" ]||[ ${lib} == "libdl.so.2" ]||[ ${lib} == "libnsl.so.1" ]||[ "${lib}" == "libgcc_s.so.1" ]||[ "${lib}" == "librt.so.1" ]||[ "${lib}" == "ld-linux.so.2" ];then
|
|
|
- echo "glibc.i386" >> ${rootdir}/.depdetect_centos_list
|
|
|
+ echo "glibc.i686" >> ${rootdir}/.depdetect_centos_list
|
|
|
echo "lib32gcc1" >> ${rootdir}/.depdetect_ubuntu_list
|
|
|
echo "lib32gcc1" >> ${rootdir}/.depdetect_debian_list
|
|
|
|
|
|
@@ -36,7 +38,16 @@ while read lib; do
|
|
|
elif [ "${lib}" == "libstdc++.so.5" ];then
|
|
|
echo "compat-libstdc++-33.i686" >> ${rootdir}/.depdetect_centos_list
|
|
|
echo "libstdc++5:i386" >> ${rootdir}/.depdetect_ubuntu_list
|
|
|
- echo "libstdc++5:i386" >> ${rootdir}/.depdetect_debian_list
|
|
|
+ echo "libstdc++5:i386" >> ${rootdir}/.depdetect_debian_list
|
|
|
+ elif [ "${lib}" == "libspeex.so.1" ]||[ "${lib}" == "libspeexdsp.so.1" ];then
|
|
|
+ echo "speex.i686" >> ${rootdir}/.depdetect_centos_list
|
|
|
+ echo "speex:i386" >> ${rootdir}/.depdetect_ubuntu_list
|
|
|
+ echo "speex:i386" >> ${rootdir}/.depdetect_debian_list
|
|
|
+
|
|
|
+ elif [ "${lib}" == "libtbb.so.2" ];then
|
|
|
+ echo "tbb.i686" >> ${rootdir}/.depdetect_centos_list
|
|
|
+ echo "libtbb2:i386" >> ${rootdir}/.depdetect_ubuntu_list
|
|
|
+ echo "libtbb2:i386" >> ${rootdir}/.depdetect_debian_list
|
|
|
|
|
|
elif [ "${lib}" == "libtier0.so" ]||[ "${lib}" == "Core.so" ]||[ "${lib}" == "Editor.so" ]||[ "${lib}" == "Engine.so" ]||[ "${lib}" == "liblua.so" ]||[ "${lib}" == "libsteam_api.so" ];then
|
|
|
# Known shared libs what dont requires dependencies
|