]> git.deb.at Git - deb/packages.git/commitdiff
050checkinst: Use dpkg-checkbuilddeps to test for missing packages
authorFrank Lichtenheld <frank@lichtenheld.de>
Sun, 28 Oct 2007 21:11:51 +0000 (22:11 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sun, 28 Oct 2007 21:11:51 +0000 (22:11 +0100)
This allows the use of more complex dependencies like
locales | locales-all.

cron.d/050checkinst
debian/control [new file with mode: 0644]

index 9dc6689d5db49af1cbb84539a87cea34c2de86e7..3dd1c75625d30e433a53b3b173ae88e212f30f03 100755 (executable)
@@ -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 (file)
index 0000000..4a4d48a
--- /dev/null
@@ -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