From 2d0de072dd7dd22bb5499272c70beb1d719ee6a2 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 18 May 2004 21:46:39 +0000 Subject: Installation and other small fixes --- srcx/Makefile.am | 10 ++++++++++ srcx/jkill.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/srcx/Makefile.am b/srcx/Makefile.am index 3011de8..c0930a4 100644 --- a/srcx/Makefile.am +++ b/srcx/Makefile.am @@ -7,6 +7,16 @@ jails_SOURCES = jails.c util.h util.c jid_SOURCES = jid.c util.h util.c jps_SOURCES = jps.c util.h util.c +install-exec-hook: + ln -f $(DESTDIR)$(sbindir)/jkill$(EXEEXT) \ + $(DESTDIR)$(sbindir)/killjail$(EXEEXT) + +# Uninstall hook doesn't work :( +# uninstall-hook: +uninstall-local: + rm -f $(DESTDIR)$(sbindir)/killjail$(EXEEXT) + man_MANS = jstart.8 jkill.8 jails.8 jid.8 jps.8 EXTRA_DIST = $(man_MANS) + diff --git a/srcx/jkill.c b/srcx/jkill.c index 3d30c48..c06c4b1 100644 --- a/srcx/jkill.c +++ b/srcx/jkill.c @@ -318,7 +318,7 @@ static int check_running_processes(kvm_t* kd) static void usage() { fprintf(stderr, "usage: jkill [-fkqv] [-t timeout] jail ...\n"); - fprintf(stderr, "usage: jkill -r [-fqv] [-t timeout] jail ...\n"); + fprintf(stderr, " jkill -r [-fqv] [-t timeout] jail ...\n"); exit(2); } -- cgit v1.2.3