depends perl-cgi  &&
depends timedate &&
depends datetime &&
depends datetime-timezone &&
depends dbi              &&
depends template-toolkit &&
depends email-send &&
depends email-mime &&
depends uri &&
depends list-moreutils &&
depends math-random-isaac &&

if [[ "$BUGZILLA_DATABASE" == "mysql" ]]; then
  depends dbd-mysql
elif [[ "$BUGZILLA_DATABASE" == "postgresql" ]]; then
  depends dbd-pg
elif [[ "$BUGZILLA_DATABASE" == "sqlite" ]]; then
  depends dbd-sqlite
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 authen-sasl "" "" "for SMTP authentication support" &&
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'
