From 19d85885b9eba376c7fc96c2f0b69c22776ba077 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 20 Mar 2007 10:04:16 +1100 Subject: [PATCH] sm-notify - compile and install Add sm-notify to the compile/install scripts, (and fix a compile warning). --- utils/statd/Makefile.am | 11 +++++++---- utils/statd/sm-notify.c | 1 + utils/statd/{sm-notify.8 => sm-notify.man} | 0 3 files changed, 8 insertions(+), 4 deletions(-) rename utils/statd/{sm-notify.8 => sm-notify.man} (100%) diff --git a/utils/statd/Makefile.am b/utils/statd/Makefile.am index 26800ea..093659a 100644 --- a/utils/statd/Makefile.am +++ b/utils/statd/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -man8_MANS = statd.man +man8_MANS = statd.man sm-notify.man RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen @@ -13,16 +13,19 @@ GENFILES = $(GENFILES_CLNT) $(GENFILES_SVC) $(GENFILES_XDR) $(GENFILES_H) RPCPREFIX = rpc. KPREFIX = @kprefix@ -sbin_PROGRAMS = statd +sbin_PROGRAMS = statd sm-notify statd_SOURCES = callback.c notlist.c log.c misc.c monitor.c notify.c \ simu.c stat.c statd.c state.c svc_run.c rmtcall.c \ sm_inter_clnt.c sm_inter_svc.c sm_inter_xdr.c log.h \ notlist.h statd.h system.h version.h sm_inter.h +sm_notify_SOURCES = sm-notify.c + BUILT_SOURCES = $(GENFILES) statd_LDADD = ../../support/export/libexport.a \ ../../support/nfs/libnfs.a \ ../../support/misc/libmisc.a \ $(LIBWRAP) $(LIBNSL) +sm_notify_LDADD = $(LIBNSL) EXTRA_DIST = sim_sm_inter.x sm_inter.x $(man8_MANS) COPYRIGHT simulate.c @@ -60,12 +63,12 @@ CLEANFILES = $(GENFILES) install-exec-hook: (cd $(DESTDIR)$(sbindir) && \ for p in $(sbin_PROGRAMS); do \ - mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\ + [ $$p = sm-notify ] || mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\ done) uninstall-hook: (cd $(DESTDIR)$(sbindir) && \ for p in $(sbin_PROGRAMS); do \ - rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\ + [ $$p = sm-notify ] || rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\ done) diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index c62e7eb..0ea3977 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -22,6 +22,7 @@ #include #include #include +#include #ifndef BASEDIR #define BASEDIR "/var/lib/nfs" diff --git a/utils/statd/sm-notify.8 b/utils/statd/sm-notify.man similarity index 100% rename from utils/statd/sm-notify.8 rename to utils/statd/sm-notify.man -- 2.39.2