mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Initial import of biffer version 1.0.
A better mail notification server. PR: 13906 Submitted by: John Sellens <jsellens@generalconcepts.com>
This commit is contained in:
parent
c21918f8ca
commit
05af8da9f1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22808
35
mail/biffer/Makefile
Normal file
35
mail/biffer/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# New ports collection makefile for: biffer
|
||||
# Version required: 1.0
|
||||
# Date created: 21 September 1999
|
||||
# Whom: jsellens
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
DISTNAME= biffer-1.0
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://www.generalconcepts.com/resources/software/
|
||||
|
||||
MAINTAINER= jsellens@generalconcepts.com
|
||||
|
||||
RUN_DEPENDS= xmsg:${PORTSDIR}/x11/xmsg
|
||||
|
||||
MAN1= biffopt.1
|
||||
MAN8= biffer.8 biffer_comsat.8
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} \
|
||||
${WRKDIR}/${DISTNAME}/biffer/biffer ${PREFIX}/libexec
|
||||
${INSTALL_PROGRAM} \
|
||||
${WRKDIR}/${DISTNAME}/biffopt/biffopt ${PREFIX}/bin
|
||||
${INSTALL_MAN} \
|
||||
${WRKDIR}/${DISTNAME}/biffopt/biffopt.1 ${MAN1PREFIX}/man/man1
|
||||
${INSTALL_MAN} \
|
||||
${WRKDIR}/${DISTNAME}/biffer/biffer.8 ${MAN8PREFIX}/man/man8
|
||||
cd ${WRKDIR}/${DISTNAME}/biffer_comsat && ${MAKE} ${MFLAGS} install
|
||||
|
||||
post-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} \
|
||||
POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/biffer/distinfo
Normal file
1
mail/biffer/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (biffer-1.0.tar.gz) = bd5d2167b11131212507561c88ff0647
|
1
mail/biffer/pkg-comment
Normal file
1
mail/biffer/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A better mail notification server
|
14
mail/biffer/pkg-deinstall
Normal file
14
mail/biffer/pkg-deinstall
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ x$2 != xDEINSTALL ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "Removing biffer from /etc/services ..."
|
||||
cp /etc/services /etc/services.bak
|
||||
egrep -v '^biffer' /etc/services.bak > /etc/services
|
||||
|
||||
echo "Removing biffer and biffer_comsat from /etc/inetd.conf ..."
|
||||
cp /etc/inetd.conf /etc/inetd.conf.bak
|
||||
egrep -v '^biffer' /etc/inetd.conf.bak | egrep -v \
|
||||
'^comsat[[:space:]]+.*[[:space:]]+biffer_comsat' > /etc/inetd.conf
|
14
mail/biffer/pkg-descr
Normal file
14
mail/biffer/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
biffer replaces and enhances the normal result of "biff(1)". It
|
||||
can forward notifications between machines and userids (even if
|
||||
the mail recipient is not currently signed on), ignore messages
|
||||
that match user-specified patterns in mail headers, do text or X
|
||||
notifications, and also run an arbitrary program.
|
||||
|
||||
Needs a slight modification to the stock comsat, included here
|
||||
as biffer_comsat.
|
||||
|
||||
Written at the University of Waterloo circa 1988, and in use since
|
||||
then with some modifications.
|
||||
|
||||
John Sellens
|
||||
jsellens@generalconcepts.com
|
46
mail/biffer/pkg-install
Normal file
46
mail/biffer/pkg-install
Normal file
@ -0,0 +1,46 @@
|
||||
#!/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
|
3
mail/biffer/pkg-plist
Normal file
3
mail/biffer/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/biffopt
|
||||
libexec/biffer
|
||||
libexec/biffer_comsat
|
Loading…
Reference in New Issue
Block a user