diff options
author | steve <steve@FreeBSD.org> | 1999-11-01 03:26:37 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-11-01 03:26:37 +0000 |
commit | c9769f619c955a27bf113731832d89db9f3b1c65 (patch) | |
tree | 776a7631ba609e5328e7ba08fbe5de9d2a2c402a /mail/biffer | |
parent | 38cc3ae86fe675afb1d7783541170579612a8832 (diff) | |
download | FreeBSD-ports-c9769f619c955a27bf113731832d89db9f3b1c65.zip FreeBSD-ports-c9769f619c955a27bf113731832d89db9f3b1c65.tar.gz |
Initial import of biffer version 1.0.
A better mail notification server.
PR: 13906
Submitted by: John Sellens <jsellens@generalconcepts.com>
Diffstat (limited to 'mail/biffer')
-rw-r--r-- | mail/biffer/Makefile | 35 | ||||
-rw-r--r-- | mail/biffer/distinfo | 1 | ||||
-rw-r--r-- | mail/biffer/pkg-comment | 1 | ||||
-rw-r--r-- | mail/biffer/pkg-deinstall | 14 | ||||
-rw-r--r-- | mail/biffer/pkg-descr | 14 | ||||
-rw-r--r-- | mail/biffer/pkg-install | 46 | ||||
-rw-r--r-- | mail/biffer/pkg-plist | 3 |
7 files changed, 114 insertions, 0 deletions
diff --git a/mail/biffer/Makefile b/mail/biffer/Makefile new file mode 100644 index 0000000..2d50f00 --- /dev/null +++ b/mail/biffer/Makefile @@ -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> diff --git a/mail/biffer/distinfo b/mail/biffer/distinfo new file mode 100644 index 0000000..e43459e --- /dev/null +++ b/mail/biffer/distinfo @@ -0,0 +1 @@ +MD5 (biffer-1.0.tar.gz) = bd5d2167b11131212507561c88ff0647 diff --git a/mail/biffer/pkg-comment b/mail/biffer/pkg-comment new file mode 100644 index 0000000..2c18e74 --- /dev/null +++ b/mail/biffer/pkg-comment @@ -0,0 +1 @@ +A better mail notification server diff --git a/mail/biffer/pkg-deinstall b/mail/biffer/pkg-deinstall new file mode 100644 index 0000000..11aa64c --- /dev/null +++ b/mail/biffer/pkg-deinstall @@ -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 diff --git a/mail/biffer/pkg-descr b/mail/biffer/pkg-descr new file mode 100644 index 0000000..d2025ed --- /dev/null +++ b/mail/biffer/pkg-descr @@ -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 diff --git a/mail/biffer/pkg-install b/mail/biffer/pkg-install new file mode 100644 index 0000000..e4b3b5d --- /dev/null +++ b/mail/biffer/pkg-install @@ -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 diff --git a/mail/biffer/pkg-plist b/mail/biffer/pkg-plist new file mode 100644 index 0000000..1a3f5ee --- /dev/null +++ b/mail/biffer/pkg-plist @@ -0,0 +1,3 @@ +bin/biffopt +libexec/biffer +libexec/biffer_comsat |