/usr/share/sadms-2.0.15/pre/_preinstall-ubuntu.sh is in sadms 2.0.15.repack-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/bash
# bbou@ac-toulouse.fr
# 2007-04-06
# _preinstall-ubuntu.sh
### P A R A M S
package="$1"
### I N C L U D E
. ./_include.sh
### H E L P E R S
function debdeps()
{
dpkg --info $1 | grep 'Depends:' | sed 's/Depends://' | sed 's/([^)]*)//g' | sed 's/, / /g'
}
### S T A R T
repositories=`grep -v "^#" /etc/apt/sources.list | grep -v "^$"`
if echo "${repositories}" | grep 'universe';then
echo "apt has universe repository"
else
echo "WARNING"
echo "It is necessary to add the universe repository as an install source."
echo "Use Synaptics or uncomment the following line (or the like) in"
echo "/etc/apt/sources.list :"
echo "deb http://archive.ubuntu.com/ubuntu breezy universe main restricted"
exit 1
fi
echo "+UBUNTU PACKAGES"
packages=`debdeps "${package}"`
for p in ${packages}; do
echo -n "+${p}"
if ! ${PACKAGETEST} ${p} > /dev/null 2> /dev/null; then
echo
${PACKAGEINSTALL} -y ${p}
else
echo " OK"
fi
done
|