deborphan: drop deprecated packages
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 40-deborphan
index 5a1a8d5..04662ed 100755 (executable)
@@ -1,22 +1,19 @@
-#!/bin/sh
-# Filename:      /etc/grml/fai/config/scripts/GRMLBASE/40-deborphan
-# Purpose:       set up /etc/network/interfaces of live-system
+#!/bin/bash
+# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/40-deborphan
+# Purpose:       configure packages for deborphan (usually exception rules)
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Dec 16 21:54:29 CET 2007 [mika]
 ################################################################################
 
 set -u
 set -e
 
-if [ -r $target/lib/shadowfs/liblogfs.so -a -x $target/usr/bin/deborphan ] ; then
-   $ROOTCMD deborphan --add-keep shadowfs || /bin/true
-fi
-
-if [ -r $target/usr/bin/bsdtar -a -x $target/usr/bin/deborphan ] ; then
-   $ROOTCMD deborphan --add-keep bsdtar || /bin/true
+# 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=3
+# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2