[PATCH 2/3] mcstrans: Move setrans.conf manpage to section 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Laurent Bigonville <bigon@xxxxxxxx>

Move setrans.conf manpage to section 5 as it describes the documentation
for "File formats and conventions"

Signed-off-by: Laurent Bigonville <bigon@xxxxxxxx>
---
 mcstrans/man/Makefile                                    | 9 +++++++++
 .../man/{man8/setrans.conf.8 => man5/setrans.conf.5}     | 2 +-
 .../man/ru/{man8/setrans.conf.8 => man5/setrans.conf.5}  | 2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)
 rename mcstrans/man/{man8/setrans.conf.8 => man5/setrans.conf.5} (98%)
 rename mcstrans/man/ru/{man8/setrans.conf.8 => man5/setrans.conf.5} (98%)

diff --git a/mcstrans/man/Makefile b/mcstrans/man/Makefile
index 0f8d34fd..71713818 100644
--- a/mcstrans/man/Makefile
+++ b/mcstrans/man/Makefile
@@ -2,15 +2,23 @@
 LINGUAS ?= ru
 PREFIX ?= /usr
 MANDIR ?=  $(PREFIX)/share/man
+MAN5SUBDIR ?= man5
+MAN5DIR ?= $(MANDIR)/$(MAN5SUBDIR)
 MAN8SUBDIR ?= man8
 MAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR)
 
 all:
 
 install: all
+	mkdir -p $(DESTDIR)$(MAN5DIR)
 	mkdir -p $(DESTDIR)$(MAN8DIR)
+	install -m 644 man5/*.5 $(DESTDIR)$(MAN5DIR)
 	install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR)
 	for lang in $(LINGUAS) ; do \
+		if [ -e $${lang}/man5 ] ; then \
+			mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
+			install -m 644 $${lang}/man5/*.5 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \
+		fi ; \
 		if [ -e $${lang}/man8 ] ; then \
 			mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
 			install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
@@ -19,4 +27,5 @@ install: all
 
 clean:
 	-rm -f *~ \#*
+	-rm -f man5/*~ man5/\#*
 	-rm -f man8/*~ man8/\#*
diff --git a/mcstrans/man/man8/setrans.conf.8 b/mcstrans/man/man5/setrans.conf.5
similarity index 98%
rename from mcstrans/man/man8/setrans.conf.8
rename to mcstrans/man/man5/setrans.conf.5
index b7609921..4949a502 100644
--- a/mcstrans/man/man8/setrans.conf.8
+++ b/mcstrans/man/man5/setrans.conf.5
@@ -1,4 +1,4 @@
-.TH "setrans.conf" "8" "13 July 2010" "txtoth@xxxxxxxxx" "setrans.conf documentation"
+.TH "setrans.conf" "5" "13 July 2010" "txtoth@xxxxxxxxx" "setrans.conf documentation"
 .SH "NAME"
 setrans.conf \- translation configuration file for MCS/MLS SELinux systems
 
diff --git a/mcstrans/man/ru/man8/setrans.conf.8 b/mcstrans/man/ru/man5/setrans.conf.5
similarity index 98%
rename from mcstrans/man/ru/man8/setrans.conf.8
rename to mcstrans/man/ru/man5/setrans.conf.5
index 9141defe..724b206b 100644
--- a/mcstrans/man/ru/man8/setrans.conf.8
+++ b/mcstrans/man/ru/man5/setrans.conf.5
@@ -1,4 +1,4 @@
-.TH "setrans.conf" "8" "13 июля 2010" "txtoth@xxxxxxxxx" "Документация по setrans.conf"
+.TH "setrans.conf" "5" "13 июля 2010" "txtoth@xxxxxxxxx" "Документация по setrans.conf"
 .SH "ИМЯ"
 setrans.conf \- файл конфигурации преобразования для систем MCS/MLS SELinux
 
-- 
2.22.0




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux