From: Frank Lichtenheld Date: Sun, 28 Oct 2007 21:11:51 +0000 (+0100) Subject: 050checkinst: Use dpkg-checkbuilddeps to test for missing packages X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=2c644c36736052f4bd1abff4101375848203fb66;p=deb%2Fpackages.git 050checkinst: Use dpkg-checkbuilddeps to test for missing packages This allows the use of more complex dependencies like locales | locales-all. --- diff --git a/cron.d/050checkinst b/cron.d/050checkinst index 9dc6689..3dd1c75 100755 --- a/cron.d/050checkinst +++ b/cron.d/050checkinst @@ -5,16 +5,6 @@ # 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` @@ -22,14 +12,8 @@ locs=`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 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4a4d48a --- /dev/null +++ b/debian/control @@ -0,0 +1,9 @@ +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