# Test whether all required packages are installed and generate a mail
# if they aren't, so that the admin is informed.
-required="git-core gettext locales rsync dpkg-dev procmail"
-required="$required libcompress-zlib-perl"
-required="$required libhtml-parser-perl libio-stringy-perl"
-required="$required liblocale-gettext-perl libmldbm-perl"
-required="$required libtext-iconv-perl libhtml-template-perl"
-required="$required libclass-accessor-perl"
-required="$required liburi-perl libxml-rss-perl"
-required="$required libtemplate-perl libi18n-acceptlanguage-perl"
-required="$required liblingua-stem-perl"
-
locales="de_DE.UTF-8 en_US.UTF-8 nl_NL fr_FR.UTF-8 uk_UA.UTF-8"
packages=`tempfile`
cache=`tempfile`
trap "rm -f $packages $locs" INT EXIT
-for p in $required
-do
- if [ -z "$(dpkg -l $p|grep ^ii)" ]
- then
- echo "Package $p missing." >> $packages
- echo >> $packages
- fi
-done
+cd $topdir
+dpkg-checkbuilddeps >> $packages 2>&1
for l in $locales
do
--- /dev/null
+Source: packages
+Build-Depends: git-core, rsync, dpkg-dev, procmail,
+ gettext, liblocale-gettext-perl, locales | locales-all, libi18n-acceptlanguage-perl,
+ libcompress-zlib-perl, libhtml-parser-perl, libio-stringy-perl,
+ libmldbm-perl, libtext-iconv-perl, libhtml-template-perl,
+ libclass-accessor-perl, liburi-perl, libxml-rss-perl, libtemplate-perl,
+ liblingua-stem-perl
+
+Package: packages