|
@@ -42,62 +42,62 @@ else
|
|
|
echo "readelf/eu-readelf not installed"
|
|
echo "readelf/eu-readelf not installed"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
-${readelf} -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > "${lgsmdir}/tmp/.depdetect_readelf"
|
|
|
|
|
|
|
+${readelf} -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > "${tmpdir}/.depdetect_readelf"
|
|
|
|
|
|
|
|
|
|
|
|
|
-echo "yum install " > "${lgsmdir}/tmp/.depdetect_centos_list_uniq"
|
|
|
|
|
-echo "apt-get install " > "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq"
|
|
|
|
|
-echo "apt-get install " > "${lgsmdir}/tmp/.depdetect_debian_list_uniq"
|
|
|
|
|
|
|
+echo "yum install " > "${tmpdir}/.depdetect_centos_list_uniq"
|
|
|
|
|
+echo "apt-get install " > "${tmpdir}/.depdetect_ubuntu_list_uniq"
|
|
|
|
|
+echo "apt-get install " > "${tmpdir}/.depdetect_debian_list_uniq"
|
|
|
while read lib; do
|
|
while read lib; do
|
|
|
sharedlib=${lib}
|
|
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
|
|
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.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
- echo "lib32gcc1" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
- echo "lib32gcc1" >> "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
|
|
+ echo "glibc.i686" >> "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+ echo "lib32gcc1" >> "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+ echo "lib32gcc1" >> "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
|
|
|
elif [ "${lib}" == "libstdc++.so.6" ]; then
|
|
elif [ "${lib}" == "libstdc++.so.6" ]; then
|
|
|
- echo "libstdc++.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
- echo "libstdc++6:i386" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
- echo "libstdc++6:i386" >> "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
|
|
+ echo "libstdc++.i686" >> "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+ echo "libstdc++6:i386" >> "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+ echo "libstdc++6:i386" >> "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
|
|
|
elif [ "${lib}" == "libstdc++.so.5" ]; then
|
|
elif [ "${lib}" == "libstdc++.so.5" ]; then
|
|
|
- echo "compat-libstdc++-33.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
- echo "libstdc++5:i386" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
- echo "libstdc++5:i386" >> "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
|
|
+ echo "compat-libstdc++-33.i686" >> "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+ echo "libstdc++5:i386" >> "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+ echo "libstdc++5:i386" >> "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
|
|
|
elif [ "${lib}" == "libspeex.so.1" ]||[ "${lib}" == "libspeexdsp.so.1" ]; then
|
|
elif [ "${lib}" == "libspeex.so.1" ]||[ "${lib}" == "libspeexdsp.so.1" ]; then
|
|
|
- echo "speex.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
- echo "speex:i386" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
- echo "speex:i386" >> "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
|
|
+ echo "speex.i686" >> "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+ echo "speex:i386" >> "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+ echo "speex:i386" >> "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
|
|
|
elif [ "${lib}" == "./libSDL-1.2.so.0" ]||[ "${lib}" == "libSDL-1.2.so.0" ]; then
|
|
elif [ "${lib}" == "./libSDL-1.2.so.0" ]||[ "${lib}" == "libSDL-1.2.so.0" ]; then
|
|
|
- echo "SDL.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
- echo "libsdl1.2debian" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
- echo "libsdl1.2debian" >> "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
|
|
+ echo "SDL.i686" >> "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+ echo "libsdl1.2debian" >> "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+ echo "libsdl1.2debian" >> "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
|
|
|
elif [ "${lib}" == "libtbb.so.2" ]; then
|
|
elif [ "${lib}" == "libtbb.so.2" ]; then
|
|
|
- echo "tbb.i686" >> "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
- echo "libtbb2" >> "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
- echo "libtbb2" >> "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
|
|
+ echo "tbb.i686" >> "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+ echo "libtbb2" >> "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+ echo "libtbb2" >> "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
|
|
|
elif [ "${lib}" == "libtier0.so" ]||[ "${lib}" == "Core.so" ]||[ "${lib}" == "Editor.so" ]||[ "${lib}" == "Engine.so" ]||[ "${lib}" == "liblua.so" ]||[ "${lib}" == "libsteam_api.so" ]||[ "${lib}" == "ld-linux-x86-64.so.2" ]||[ "${lib}" == "libPhysX3_x86.so" ]||[ "${lib}" == "libPhysX3Common_x86.so" ]||[ "${lib}" == "libPhysX3Cooking_x86.so" ]; then
|
|
elif [ "${lib}" == "libtier0.so" ]||[ "${lib}" == "Core.so" ]||[ "${lib}" == "Editor.so" ]||[ "${lib}" == "Engine.so" ]||[ "${lib}" == "liblua.so" ]||[ "${lib}" == "libsteam_api.so" ]||[ "${lib}" == "ld-linux-x86-64.so.2" ]||[ "${lib}" == "libPhysX3_x86.so" ]||[ "${lib}" == "libPhysX3Common_x86.so" ]||[ "${lib}" == "libPhysX3Cooking_x86.so" ]; then
|
|
|
# Known shared libs what dont requires dependencies
|
|
# Known shared libs what dont requires dependencies
|
|
|
:
|
|
:
|
|
|
else
|
|
else
|
|
|
unknownlib=1
|
|
unknownlib=1
|
|
|
- echo "${lib}" >> "${lgsmdir}/tmp/.depdetect_unknown"
|
|
|
|
|
|
|
+ echo "${lib}" >> "${tmpdir}/.depdetect_unknown"
|
|
|
fi
|
|
fi
|
|
|
-done < "${lgsmdir}/tmp/.depdetect_readelf"
|
|
|
|
|
-sort "${lgsmdir}/tmp/.depdetect_centos_list" | uniq >> "${lgsmdir}/tmp/.depdetect_centos_list_uniq"
|
|
|
|
|
-sort "${lgsmdir}/tmp/.depdetect_ubuntu_list" | uniq >> "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq"
|
|
|
|
|
-sort "${lgsmdir}/tmp/.depdetect_debian_list" | uniq >> "${lgsmdir}/tmp/.depdetect_debian_list_uniq"
|
|
|
|
|
|
|
+done < "${tmpdir}/.depdetect_readelf"
|
|
|
|
|
+sort "${tmpdir}/.depdetect_centos_list" | uniq >> "${tmpdir}/.depdetect_centos_list_uniq"
|
|
|
|
|
+sort "${tmpdir}/.depdetect_ubuntu_list" | uniq >> "${tmpdir}/.depdetect_ubuntu_list_uniq"
|
|
|
|
|
+sort "${tmpdir}/.depdetect_debian_list" | uniq >> "${tmpdir}/.depdetect_debian_list_uniq"
|
|
|
if [ "${unknownlib}" == "1" ]; then
|
|
if [ "${unknownlib}" == "1" ]; then
|
|
|
- sort "${lgsmdir}/tmp/.depdetect_unknown" | uniq >> "${lgsmdir}/tmp/.depdetect_unknown_uniq"
|
|
|
|
|
|
|
+ sort "${tmpdir}/.depdetect_unknown" | uniq >> "${tmpdir}/.depdetect_unknown_uniq"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
-awk -vORS=' ' '{ print $1, $2 }' "${lgsmdir}/tmp/.depdetect_centos_list_uniq" > "${lgsmdir}/tmp/.depdetect_centos_line"
|
|
|
|
|
-awk -vORS=' ' '{ print $1, $2 }' "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq" > "${lgsmdir}/tmp/.depdetect_ubuntu_line"
|
|
|
|
|
-awk -vORS=' ' '{ print $1, $2 }' "${lgsmdir}/tmp/.depdetect_debian_list_uniq" > "${lgsmdir}/tmp/.depdetect_debian_line"
|
|
|
|
|
|
|
+awk -vORS=' ' '{ print $1, $2 }' "${tmpdir}/.depdetect_centos_list_uniq" > "${tmpdir}/.depdetect_centos_line"
|
|
|
|
|
+awk -vORS=' ' '{ print $1, $2 }' "${tmpdir}/.depdetect_ubuntu_list_uniq" > "${tmpdir}/.depdetect_ubuntu_line"
|
|
|
|
|
+awk -vORS=' ' '{ print $1, $2 }' "${tmpdir}/.depdetect_debian_list_uniq" > "${tmpdir}/.depdetect_debian_line"
|
|
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "Required Dependencies"
|
|
echo "Required Dependencies"
|
|
@@ -106,46 +106,46 @@ echo "${executable}"
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "CentOS"
|
|
echo "CentOS"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
-cat "${lgsmdir}/tmp/.depdetect_centos_line"
|
|
|
|
|
|
|
+cat "${tmpdir}/.depdetect_centos_line"
|
|
|
echo ""
|
|
echo ""
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "Ubuntu"
|
|
echo "Ubuntu"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
-cat "${lgsmdir}/tmp/.depdetect_ubuntu_line"
|
|
|
|
|
|
|
+cat "${tmpdir}/.depdetect_ubuntu_line"
|
|
|
echo ""
|
|
echo ""
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "Debian"
|
|
echo "Debian"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
-cat "${lgsmdir}/tmp/.depdetect_debian_line"
|
|
|
|
|
|
|
+cat "${tmpdir}/.depdetect_debian_line"
|
|
|
echo ""
|
|
echo ""
|
|
|
if [ "${unknownlib}" == "1" ]; then
|
|
if [ "${unknownlib}" == "1" ]; then
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "Unknown shared Library"
|
|
echo "Unknown shared Library"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
- cat "${lgsmdir}/tmp/.depdetect_unknown"
|
|
|
|
|
|
|
+ cat "${tmpdir}/.depdetect_unknown"
|
|
|
fi
|
|
fi
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "Required Librarys"
|
|
echo "Required Librarys"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
-sort "${lgsmdir}/tmp/.depdetect_readelf" |uniq
|
|
|
|
|
|
|
+sort "${tmpdir}/.depdetect_readelf" |uniq
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "ldd"
|
|
echo "ldd"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
ldd ${executable}
|
|
ldd ${executable}
|
|
|
echo -en "\n"
|
|
echo -en "\n"
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_centos_line"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_centos_list"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_centos_list_uniq"
|
|
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_centos_line"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_centos_list"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_centos_list_uniq"
|
|
|
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_debian_line"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_debian_list"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_debian_list_uniq"
|
|
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_debian_line"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_debian_list"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_debian_list_uniq"
|
|
|
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_ubuntu_line"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_ubuntu_list"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_ubuntu_list_uniq"
|
|
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_ubuntu_line"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_ubuntu_list"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_ubuntu_list_uniq"
|
|
|
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_readelf"
|
|
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_readelf"
|
|
|
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_unknown"
|
|
|
|
|
-rm -f "${lgsmdir}/tmp/.depdetect_unknown_uniq"
|
|
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_unknown"
|
|
|
|
|
+rm -f "${tmpdir}/.depdetect_unknown_uniq"
|