diff --git a/scstadmin/Makefile b/scstadmin/Makefile index 4948a1119..7c5c42867 100644 --- a/scstadmin/Makefile +++ b/scstadmin/Makefile @@ -1,5 +1,6 @@ SCSTADMIN_DIR = scstadmin +MANDIR := $(DESTDIR)$(PREFIX)/usr/local/man/ INITDIR := $(shell if [ -f /etc/slackware-version ]; then \ echo $(PREFIX)/etc/rc.d; \ else \ @@ -35,6 +36,14 @@ install: "Scientific Linux, Fedora) or insserv (SLES, openSUSE) package must" \ "be installed first"; false; fi cd $(SCSTADMIN_DIR) && $(MAKE) $@ + for m in scstadmin/man*/*.[1-9]; do \ + if [ -e $$m ]; then \ + d=$(MANDIR)$$(basename $$(dirname $$m)); \ + if install -d $$d; then \ + install -m 644 $$m $$d; \ + fi \ + fi \ + done install -d $(DESTDIR)$(INITDIR) install -m 755 init.d/scst $(DESTDIR)$(INITDIR) if [ ! -e $(DESTDIR)$(DEFAULTDIR)/scst ]; then \ @@ -63,6 +72,12 @@ uninstall: fi; \ rm -f $(DESTDIR)$(INITDIR)/scst; \ fi + for m in scstadmin/man*/*.[1-9]; do \ + if [ -e $$m ]; then \ + d=$(MANDIR)$$(basename $$(dirname $$m)); \ + rm -f $$d/$$(basename $$m); \ + fi \ + done cd $(SCSTADMIN_DIR) && $(MAKE) $@ perl-module: diff --git a/scstadmin/scstadmin.sysfs/man1/scstadmin.1 b/scstadmin/scstadmin.sysfs/man1/scstadmin.1 new file mode 100644 index 000000000..ec1f8ac2b --- /dev/null +++ b/scstadmin/scstadmin.sysfs/man1/scstadmin.1 @@ -0,0 +1,253 @@ +.\" -*- nroff -*- +.\" Copyright 2011 Bart Van Assche . All rights reserved. +.\" Permission is granted to copy, distribute and/or modify this document +.\" under the terms of the GNU General Public License, version 2 (GPLv2). +.TH scstadmin 1 "July 2011" "scstadmin 2.0.0" +.SH NAME +scstadmin \- administer the configuration of SCST +.SH SYNOPSIS +.B scstadmin +[