summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-05-18 21:46:39 +0000
committerStef Walter <stef@memberwebs.com>2004-05-18 21:46:39 +0000
commit2d0de072dd7dd22bb5499272c70beb1d719ee6a2 (patch)
treeb6fdaaa79e16202816c2d22a76e84f032efdea95 /srcx
parenta0012381dee49eb907b906607263638f69996fd7 (diff)
Installation and other small fixes
Diffstat (limited to 'srcx')
-rw-r--r--srcx/Makefile.am10
-rw-r--r--srcx/jkill.c2
2 files changed, 11 insertions, 1 deletions
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);
}