Date: Sun, 2 Jun 2002 14:06:45 -0400 (EDT) From: Alan Eldridge <ports@geeksrus.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ishmael27@home.com Subject: ports/38832: devel/fam: give instructions to run from inetd (the way Message-ID: <200206021806.g52I6jl9040421@wwweasel.geeksrus.net>
next in thread | raw e-mail | index | archive | help
>Number: 38832 >Category: ports >Synopsis: devel/fam: give instructions to run from inetd (the way >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 02 11:10:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alan Eldridge >Release: FreeBSD 4.6-RC i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.6-RC FreeBSD 4.6-RC #1: Sun May 26 13:08:49 EDT 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: fam exists when it becomes idle. If started from /usr/local/etc/rc.d, it will die the first time you exit KDE and not be restarted. SGI recommends running fam via inetd. The patch adds the instructions to do this; it also removes /usr/local/etc/rc.d/fam.sh.sample which isno longer needed. >How-To-Repeat: see above. >Fix: ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== Index: devel/fam/Makefile =================================================================== RCS file: /home/ncvs/ports/devel/fam/Makefile,v retrieving revision 1.2 diff -u -3 -r1.2 Makefile --- devel/fam/Makefile 6 Jan 2002 06:20:18 -0000 1.2 +++ devel/fam/Makefile 2 Jun 2002 17:47:01 -0000 @@ -7,6 +7,7 @@ PORTNAME= fam PORTVERSION= 2.6.4 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ftp://oss.sgi.com/projects/fam/download/ DISTNAME= ${PORTNAME}-oss-${PORTVERSION} @@ -23,7 +24,6 @@ MAN3= fam.3x post-install: - @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/fam.sh.sample ${PREFIX}/etc/rc.d/fam.sh.sample @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> Index: devel/fam/pkg-message =================================================================== RCS file: /home/ncvs/ports/devel/fam/pkg-message,v retrieving revision 1.1 diff -u -3 -r1.1 pkg-message --- devel/fam/pkg-message 31 Mar 2001 02:45:55 -0000 1.1 +++ devel/fam/pkg-message 2 Jun 2002 17:30:29 -0000 @@ -5,4 +5,12 @@ sgi_fam 391002 +Please also add the following lines to /etc/inetd.conf if they are not +already there: + +# FAM: File Alteration Monitor [devel/fam] +sgi_fam/1-2 stream rpc/tcp wait root /usr/local/bin/fam fam + +After that, you must (as root) 'killall -HUP inetd'. + ************************************************************************ Index: devel/fam/pkg-plist =================================================================== RCS file: /home/ncvs/ports/devel/fam/pkg-plist,v retrieving revision 1.2 diff -u -3 -r1.2 pkg-plist --- devel/fam/pkg-plist 21 May 2001 07:13:05 -0000 1.2 +++ devel/fam/pkg-plist 2 Jun 2002 17:41:41 -0000 @@ -1,6 +1,5 @@ bin/fam etc/fam.conf -etc/rc.d/fam.sh.sample include/fam.h lib/fam/editconf.perl lib/libfam.a Index: devel/fam/files/fam.sh.sample =================================================================== RCS file: devel/fam/files/fam.sh.sample diff -N devel/fam/files/fam.sh.sample --- devel/fam/files/fam.sh.sample 31 Mar 2001 02:45:55 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,20 +0,0 @@ -#!/bin/sh - -if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then - echo "$0: Cannot determine the PREFIX" >&2 - exit 1 -fi - -case "$1" in -start) - [ -x ${PREFIX}/bin/fam ] && ( ${PREFIX}/bin/fam & ) && echo -n ' fam' - ;; -stop) - killall fam && echo -n ' fam' - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - ;; -esac - -exit 0 ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== >Release-Note: >Audit-Trail: >Unformatted: SGI intended it to run To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206021806.g52I6jl9040421>