depends perl-cgi  &&
depends date-format &&
depends dbi              &&
depends file-spec &&
depends template-toolkit &&
depends email-send &&
depends email-mime-modifier &&


if [[ "$BUGZILLA_DATABASE" == "mysql" ]]; then
  depends dbd-mysql
elif [[ "$BUGZILLA_DATABASE" == "postgresql" ]]; then
  depends dbd-pg
fi &&

if [[ "$BUGZILLA_PATCH" == "y" ]]; then
  depends patchutils &&
  depends patchreader
fi

if [[ "$BUGZILLA_CHARTING" == "y" ]]; then
  depends perl-gd  &&
  depends gd-graph &&
  depends gd-text  &&
  depends template-gd &&
  depends chart    
fi &&

if [[ "$BUGZILLA_DEPENDENCY_CHARTS" == "y" ]]; then
  depends graphviz
fi &&

if [[ "$BUGZILLA_IMPORT_EXPORT" == "y" ]]; then
  depends mime-tools &&
  depends xml-twig
fi &&

if [[ "$BUGZILLA_INBOUND_MAIL" == "y" ]]; then
  depends email-mime-attachment-stripper &&
  depends email-reply
fi &&

if [[ "$BUGZILLA_HTML" == "y" ]]; then
  depends html-parser &&
  depends html-scrubber
fi &&

optional_depends imagemagick   '' '' 'to convert bmp attachments to png' &&
optional_depends net-ldap      '' '' 'for LDAP authentication'           &&
optional_depends soap-lite     '' '' 'For the web services interface'    &&
optional_depends lwp           '' '' 'For automatic update notifications'
