#!/bin/sh -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # PUMA_CONFIG=/etc/puma.config case "$1" in configure) echo generating ${PUMA_CONFIG} (cd /etc; ag++ --gen_config) echo '-D "__cplusplus=199711L"' >> ${PUMA_CONFIG} chown root:root $PUMA_CONFIG chmod 644 $PUMA_CONFIG ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0