Annotation of fam/Makefile.am, Revision 1.1.1.1
1.1 trev 1: include $(top_srcdir)/common.am
2:
3: SUBDIRS = util include support libfam fam man test build
4:
5: EXTRA_DIST = common.am INSTALL.rpm
6:
7: rpm: dist
8: @cd build && $(MAKE) $(AM_MAKEFLAGS) rpm
9:
10: # We proceed even if these commands fail because this might be an install
11: # into $DESTDIR by a non-root user.
12: install-exec-hook:
13: -@if test "no$(LDCONFIG)" != "no"; then \
14: ## echo "Adding $(libdir) to ld.so.conf..."; \
15: $(EDITCONF) ld.so.conf add $(DESTDIR)$(libdir) $(DESTDIR)$(libdir); \
16: exec $(LDCONFIG); \
17: fi
18: ## @echo "Adding fam to rpc..."
19: -@$(EDITCONF) rpc add 391002 "sgi_fam 391002"
20: ## @echo "Adding fam to inetd.conf..."
21: -@$(EDITCONF) inetd.conf add '\b(fam|FAM)\b' \
22: "# fam, the File Alteration Monitor, http://oss.sgi.com/projects/fam/" \
23: "sgi_fam/1-2 stream rpc/tcp wait root $(DESTDIR)$(bindir)/fam fam"
24: @echo "Restarting inetd..."
25: -@killall -HUP inetd
26:
27: # We don't remove $(libdir) from ld.so.conf here because we don't have
28: # a way to tell whether we're the ones who added it, and other things
29: # probably use it as well.
30: uninstall-local:
31: ## @echo "Removing fam from rpc..."
32: -@$(EDITCONF) rpc remove 391002
33: ## @echo "Removing fam from inetd.conf..."
34: -@$(EDITCONF) inetd.conf remove '\b(fam|FAM)\b'
35: @echo "Restarting inetd..."
36: -@killall -HUP inetd
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>