1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/mail/biffer/pkg-install
Steve Price 05af8da9f1 Initial import of biffer version 1.0.
A better mail notification server.

PR:		13906
Submitted by:	John Sellens <jsellens@generalconcepts.com>
1999-11-01 03:26:37 +00:00

47 lines
1.3 KiB
Bash

#!/bin/sh
if [ x$2 != xPOST-INSTALL ]; then
exit
fi
needHUP="no"
echo -n "/etc/services needs to mention biffer, checking... "
egrep '^biffer[[:space:]]+1243/tcp' /etc/services > /dev/null
if [ $? -eq 0 ]; then
echo "already there"
else
echo "adding entry"
echo 'biffer 1243/tcp # biffer(8) under inetd' >> \
/etc/services
fi
echo -n "/etc/inetd.conf needs to mention biffer, checking... "
egrep '^biffer[[:space:]]+stream' /etc/inetd.conf > /dev/null
if [ $? -eq 0 ]; then
echo "already there"
else
echo "adding entry"
echo "biffer stream tcp nowait root ${PKG_PREFIX}/libexec/biffer biffer" >> /etc/inetd.conf
needHUP="yes"
fi
echo -n "/etc/inetd.conf needs to mentionn biffer_comsat, checking... "
egrep '^comsat[[:space:]]+.*[[:space:]]+biffer_comsat' /etc/inetd.conf > /dev/null
if [ $? -eq 0 ]; then
echo "already there"
else
echo "adding entry"
echo "comsat stream tcp nowait root ${PKG_PREFIX}/libexec/biffer_comsat biffer_comsat" >> /etc/inetd.conf
needHUP="yes"
fi
if [ "$needHUP" = "yes" ]; then
echo
echo "------------------------------------------------------------------"
echo "inetd(8) needs to re-read /etc/inetd.conf. Please either kill -HUP"
echo "the inetd process, or reboot to allow biffer(8) to work."
echo "------------------------------------------------------------------"
echo
fi