Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 20:26:09 -0400 (EDT)
From:      Alan Eldridge <ports@geeksrus.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38960: MAINTAINER UPDATE: devel/fam: support inetd	
Message-ID:  <200206070026.g570Q90t065756@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         38960
>Category:       ports
>Synopsis:       MAINTAINER UPDATE: devel/fam: support inetd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 06 17:30:07 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:

This PR supercedes ports/38896, which has been closed.

1. Add instructions for running fam from inetd.
2. Add instructions for running fam as a system daemon.
3. When uninstalling, remove fam.sh if user created it.
4. add '-T 0' flag when running as system service so it won't exit.

>How-To-Repeat:
>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.3
diff -u -3 -r1.3 Makefile
--- devel/fam/Makefile	6 Jun 2002 19:33:14 -0000	1.3
+++ devel/fam/Makefile	7 Jun 2002 00:02: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}
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	7 Jun 2002 00:00:12 -0000
@@ -1,8 +1,30 @@
 ************************************************************************
 
-In order to run this port, please add the following line to /etc/rpc if
+1. In order to run this port, please add the following line to /etc/rpc if
 it is not already there:
 
+==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
 sgi_fam		391002
+==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
+
+2. If you wish to run fam from inetd (the recommended method), then
+please add the following lines to /etc/inetd.conf if they are not
+already there:
+
+==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
+# FAM: File Alteration Monitor [devel/fam]
+sgi_fam/1-2	stream rpc/tcp wait root /usr/local/bin/fam	fam
+==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
+
+After modifying /etc/inetd.conf, you must (as root) run:
+
+	killall -HUP inetd
+
+3. If, instead, you wish to run fam as a system daemon, then (as root)
+do the following:
+
+	cd /usr/local/etc/rc.d
+	cp fam.sh.sample fam.sh
+	/usr/local/etc/rc.d/fam.sh start
 
 ************************************************************************
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	7 Jun 2002 00:02:48 -0000
@@ -7,3 +7,4 @@
 lib/libfam.so
 lib/libfam.so.0
 @dirrm lib/fam
+@unexec rm -f %D/etc/rc.d/fam.sh || true
Index: devel/fam/files/fam.sh.sample
===================================================================
RCS file: /home/ncvs/ports/devel/fam/files/fam.sh.sample,v
retrieving revision 1.1
diff -u -3 -r1.1 fam.sh.sample
--- devel/fam/files/fam.sh.sample	31 Mar 2001 02:45:55 -0000	1.1
+++ devel/fam/files/fam.sh.sample	6 Jun 2002 23:50:37 -0000
@@ -7,7 +7,8 @@
 
 case "$1" in
 start)
-	[ -x ${PREFIX}/bin/fam ] && ( ${PREFIX}/bin/fam & ) && echo -n ' fam'
+	[ -x ${PREFIX}/bin/fam ] && ( ${PREFIX}/bin/fam -T 0 & ) \
+	    && echo -n ' fam'
 	;;
 stop)
 	killall fam && echo -n ' fam'
==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==


>Release-Note:
>Audit-Trail:
>Unformatted:

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?200206070026.g570Q90t065756>