diff options
author | Steve Price <steve@FreeBSD.org> | 1999-11-01 03:26:37 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-11-01 03:26:37 +0000 |
commit | 05af8da9f1ab7632f5294792f9b797d18d3d8560 (patch) | |
tree | 7e8ec390696cf419819f7b77c803b08a9ada2a6f /mail/biffer | |
parent | c21918f8cad6afbed31b2cceccfea7e831a188af (diff) | |
download | ports-05af8da9f1ab7632f5294792f9b797d18d3d8560.tar.gz ports-05af8da9f1ab7632f5294792f9b797d18d3d8560.zip |
Notes
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 000000000000..2d50f0018270 --- /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 000000000000..e43459ee208e --- /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 000000000000..2c18e74066e4 --- /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 000000000000..11aa64cf820a --- /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 000000000000..d2025edd15ae --- /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 000000000000..e4b3b5d682ef --- /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 000000000000..1a3f5eee1fcf --- /dev/null +++ b/mail/biffer/pkg-plist @@ -0,0 +1,3 @@ +bin/biffopt +libexec/biffer +libexec/biffer_comsat |