1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00

- update pkg-message; now gives instructions to the user on how to run fam

from inetd
- remove rc.d/fam.sh on deinstall if it exists
- start fam with better arguments from fam.sh

PR:		38960
Submitted by:	maintainer
This commit is contained in:
Pete Fritchman 2002-06-08 04:21:23 +00:00
parent 487510c5f6
commit c2ee9ef579
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60827
4 changed files with 27 additions and 2 deletions

View File

@ -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}

View File

@ -7,7 +7,8 @@ fi
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'

View File

@ -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
************************************************************************

View File

@ -7,3 +7,4 @@ lib/libfam.a
lib/libfam.so
lib/libfam.so.0
@dirrm lib/fam
@unexec rm -f %D/etc/rc.d/fam.sh || true