aboutsummaryrefslogtreecommitdiffstats
path: root/devel/fam
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-06-08 12:21:23 +0800
committerpetef <petef@FreeBSD.org>2002-06-08 12:21:23 +0800
commitd9926746e80b343aa897911b7724c64cad7e4e22 (patch)
treeb4bfce77fdb0bd8d090e5dabf8a922a237b028ed /devel/fam
parentac61d3a6303744f5889cc3184076e49f34844b7d (diff)
downloadfreebsd-ports-gnome-d9926746e80b343aa897911b7724c64cad7e4e22.tar.gz
freebsd-ports-gnome-d9926746e80b343aa897911b7724c64cad7e4e22.tar.zst
freebsd-ports-gnome-d9926746e80b343aa897911b7724c64cad7e4e22.zip
- 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
Diffstat (limited to 'devel/fam')
-rw-r--r--devel/fam/Makefile1
-rw-r--r--devel/fam/files/fam.sh.sample3
-rw-r--r--devel/fam/pkg-message24
-rw-r--r--devel/fam/pkg-plist1
4 files changed, 27 insertions, 2 deletions
diff --git a/devel/fam/Makefile b/devel/fam/Makefile
index 5682ca9e1056..5db30a80704a 100644
--- a/devel/fam/Makefile
+++ b/devel/fam/Makefile
@@ -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}
diff --git a/devel/fam/files/fam.sh.sample b/devel/fam/files/fam.sh.sample
index e1c252bdb2a0..3ed1a018563f 100644
--- a/devel/fam/files/fam.sh.sample
+++ b/devel/fam/files/fam.sh.sample
@@ -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'
diff --git a/devel/fam/pkg-message b/devel/fam/pkg-message
index d28d68afc971..467f8ba901ef 100644
--- a/devel/fam/pkg-message
+++ b/devel/fam/pkg-message
@@ -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
************************************************************************
diff --git a/devel/fam/pkg-plist b/devel/fam/pkg-plist
index 690e520775d2..a427fd997e05 100644
--- a/devel/fam/pkg-plist
+++ b/devel/fam/pkg-plist
@@ -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