From 5e293c567f2e105c785afb4b902a38d4beb5071e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 21 Jul 2011 07:27:15 +0000 Subject: [PATCH] Add man pages for scstadmin, /etc/scst.conf and /etc/default/scst, including the scst-devel mailing list address for feedback and scstadmin author information git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3700 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/Makefile | 15 ++ scstadmin/scstadmin.sysfs/man1/scstadmin.1 | 253 +++++++++++++++++++++ scstadmin/scstadmin.sysfs/man5/scst.5 | 37 +++ scstadmin/scstadmin.sysfs/man5/scst.conf.5 | 200 ++++++++++++++++ 4 files changed, 505 insertions(+) create mode 100644 scstadmin/scstadmin.sysfs/man1/scstadmin.1 create mode 100644 scstadmin/scstadmin.sysfs/man5/scst.5 create mode 100644 scstadmin/scstadmin.sysfs/man5/scst.conf.5 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 +[