
file list + perms:


drwxr-xr-x  20 root root 4096 Aug 17 12:23 /usr//
drwxr-xr-x  565 root root 20480 Aug 17 12:23 /usr/doc//
drwxr-xr-x  2 root root 45056 Aug 21 15:56 /usr/bin//
-rwxr-xr-x  1 root root 35 Jan 26  2005 /usr/bin/bnbt*
-rwxr-xr-x  1 root root 40 Jan 26  2005 /usr/bin/bnbtmysql*
drwxr-xr-x  103 root root 36864 Feb 19  2005 /usr/lib//
drwxr-xr-x  2 root root 4096 Aug  1 00:18 /usr/lib/bnbt//
-rwxr-xr-x  1 root root 820914 Aug  1 00:16 /usr/lib/bnbt/bnbt*
-rw-rw-rw-  1 root root 189 Aug  1 00:06 /usr/lib/bnbt/footer.html.new
-rw-rw-rw-  1 root root 476 Aug  1 00:06 /usr/lib/bnbt/header.html.new
-rwxr-xr-x  1 root root 848836 Aug  1 00:16 /usr/lib/bnbt/bnbtmysql*
drwxr-xr-x  62 root root 8192 Sep  4 13:06 /etc//
drwxr-xr-x  2 root root 4096 Feb  6  2005 /etc/rc.d//
-rwxr-xr-x  1 root root 468 Jun  5  2004 /etc/rc.d/rc.bnbt.new*
drwxr-xr-x  19 root root 4096 Jun  5  2004 /var//
drwxr-xr-x  18 root root 4096 Sep  4 04:40 /var/log//
drwxr-xr-x  2 nobody root 16384 Sep  4 00:00 /var/log/bnbt//
drwxr-xr-x  21 root root 4096 Jun  5  2004 /var/lib//
drwxr-xr-x  3 nobody root 4096 Aug 17 10:48 /var/lib/bnbt//
drwxr-xr-x  2 nobody root 4096 Aug 17 10:54 /var/lib/bnbt/upload//
-rw-r--r--  1 nobody root 1950 Jun  5  2004 /var/lib/bnbt/bnbt.cfg.new


install script:


# taken from pat's cups package
config() {
  NEW="$1"
  OLD="`dirname $NEW`/`basename $NEW .new`"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}
for file in var/lib/bnbt/*.new etc/rc.d/rc.bnbt.new usr/lib/bnbt/*.html.new ; do
  config $file
done

( cd usr/lib/bnbt ; rm -rf bnbt.cfg )
( cd usr/lib/bnbt ; ln -sf /var/lib/bnbt/bnbt.cfg bnbt.cfg )
