case "$TARGET" in
    debian* | ubuntu*)
        fpm_depends+=('postgresql' 'libpq-dev' 'nginx | apache2')
        ;;
    centos*)
        fpm_depends+=('postgresql-server' 'postgresql-devel')
        ;;
esac

# Exclude all files and directories matched by .gitignore
for i in `git status --ignored --porcelain |grep '^!!' |sed -e 's/^!! //' |grep -v git-commit.version |grep -v vendor/bundle`; do
  fpm_exclude+=("var/www/arvados-sso/current/$i")
done

fpm_args+=(--iteration 5)

case "$TARGET" in
    debian* | ubuntu*)
        fpm_depends+=('libpq-dev' 'nginx | apache2')
        ;;
    centos*)
        fpm_depends+=('postgresql-devel')
        ;;
esac

# Exclude all files and directories matched by .gitignore
for i in `git status --ignored --porcelain |grep '^!!' |sed -e 's/^!! //' |grep -v git-commit.version |grep -v vendor/bundle`; do
  fpm_exclude+=("var/www/arvados-sso/current/$i")
done

Remove package dependency on PostgreSQL server.
Remove package dependency on PostgreSQL server.

The database server could be on another host, so the package should
not require it.  Closes #8905.  Tom and Ward both approve.
