Is it possible to have it run ldconfig after deb install?
#!/bin/sh set -e case "$1" in install|upgrade) ;; configure) # Create directories for pid file if test ! -d /var/run/lprng; then mkdir /var/run/lprng fi chown root.lp /var/run/lprng chmod 0775 /var/run/lprng for fname in `ls /var/spool/lpd 2>/dev/null`; do if [ -d $fname ] ; then chown -R lp:lp /var/spool/lpd/$fname chmod 0700 /var/spool/lpd/$fname fi done chown daemon.lp /var/spool/lpd chmod 0700 /var/spool/lpd for fname in lpr lprm lpq; do chown root.lp /usr/bin/$fname chmod u+s /usr/bin/$fname chmod g+s /usr/bin/$fname done if [ ! -e /etc/printcap ] ; then cp /etc/lprng/printcap.example /etc/printcap fi ;; abort-upgrade) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac # Have to manually start lprng as a failed startup is not a failed install if [ -x "/etc/init.d/lprng" ]; then update-rc.d lprng defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lprng start || true else /etc/init.d/lprng start || true fi fi