deborphan: add workaround for transitional package dnsutils
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 40-deborphan
index b465379..b95eaa4 100755 (executable)
@@ -25,5 +25,11 @@ if [ -r $target/usr/lib/libstdc++-libc6.2-2.so.3 -a -x $target/usr/bin/deborphan
    $ROOTCMD deborphan --add-keep libstdc++2.10-glibc2.2 || /bin/true
 fi
 
+# workaround for dnsutils transitional package, drop as soon as bind9-dnsutils
+# is available in all supported releases
+if [[ -r "${target}/usr/share/doc/dnsutils" ]] && [ -x "${target}/usr/bin/deborphan" ] ; then
+  $ROOTCMD deborphan --add-keep dnsutils || /bin/true
+fi
+
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2