#!/bin/sh -e
#
# Debian package postinst
# UKAI Fumitoshi <ukai@debian.or.jp>

case "$1" in
 configure)
	# continue below
 ;;
 abort-upgrade|abort-remove|abort-deconfigure)
	exit 0
 ;;
 *)
   echo "postinst called with unknown argument \`$1'" >&2
   exit 0
 ;;
esac

## default facility
#facility=local5
#logfile=/var/log/smtpfeed.log
#
#if test -f /etc/syslog.conf; then
# syslogline="$facility.info  $logfile"
# restartsyslog=0
#
# if grep "^$syslogline$" /etc/syslog.conf > /dev/null; then
#   echo "You have already configured syslog facility $facility logged to $logfile"
# elif grep "^$facility" /etc/syslog.conf > /dev/null; then
#   echo "syslog facility \`$facility' already used"
#   echo "Not fixed: you should check your syslog configuration yourself."
# else
#   echo "In syslog file, facility $facility does not used yet."
#   echo -n "Adding to syslog.conf..."
#   cp -p /etc/syslog.conf /etc/syslog.conf.dpkg-old
#   echo "# Added by smtpfeed package" >> /etc/syslog.conf
#   echo $syslogline >> /etc/syslog.conf
#   echo "done"
#   restartsyslog=1
# fi
#
# case "$restartsyslog" in
# 1)
#    (umask 027; touch $logfile)
#    if [ -x /etc/init.d/sysklogd ]; then
#	/etc/init.d/sysklogd restart
#    fi
#    ;;
# esac
#fi
#DEBHELPER#


