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

[PATCH] Install man pages read-only

Eric Biederman ebiederm@aristanetworks.com
Mon, 5 Oct 2009 10:10:40 GMT


With the release of conserver-8.1.17 I went back through our patch
queue and I found this
minor patch that has not made it's way into conserver.

Eric
Don't install man pages as executable.

---
diff -ur conserver-8.1.17/conserver/Makefile.in conserver-8.1.17-manperms/conserver/Makefile.in
--- conserver-8.1.17/conserver/Makefile.in	2005-06-06 11:03:06.000000000 -0400
+++ conserver-8.1.17-manperms/conserver/Makefile.in	2009-10-05 05:28:59.842618918 -0400
@@ -62,7 +62,7 @@
 	$(MKDIR) $(DESTDIR)$(sbindir)
 	$(INSTALL_PROGRAM) conserver $(DESTDIR)$(sbindir)
 	$(MKDIR) $(DESTDIR)$(mandir)/man8
-	$(INSTALL) conserver.man $(DESTDIR)$(mandir)/man8/conserver.8
+	$(INSTALL) -m 0644 conserver.man $(DESTDIR)$(mandir)/man8/conserver.8
 	$(MKDIR) $(DESTDIR)$(exampledir)
 	$(INSTALL) conserver.rc $(DESTDIR)$(exampledir)
 	$(MKDIR) $(DESTDIR)$(pkglibdir)
Only in conserver-8.1.17-manperms/conserver: Makefile.in~
Only in conserver-8.1.17-manperms/conserver: Makefile.in.orig
diff -ur conserver-8.1.17/conserver.cf/Makefile.in conserver-8.1.17-manperms/conserver.cf/Makefile.in
--- conserver-8.1.17/conserver.cf/Makefile.in	2004-02-09 19:32:28.000000000 -0500
+++ conserver-8.1.17-manperms/conserver.cf/Makefile.in	2009-10-05 05:29:31.690619245 -0400
@@ -24,8 +24,8 @@
 
 install:
 	$(MKDIR) $(DESTDIR)$(mandir)/man5
-	$(INSTALL) conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5
-	$(INSTALL) conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5
+	$(INSTALL) -m 0644 conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5
+	$(INSTALL) -m 0644 conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5
 	$(MKDIR) $(DESTDIR)$(exampledir)
 	$(INSTALL) -m 0644 conserver.cf $(DESTDIR)$(exampledir)
 	$(INSTALL) -m 0644 conserver.passwd $(DESTDIR)$(exampledir)
Only in conserver-8.1.17-manperms/conserver.cf: Makefile.in~
Only in conserver-8.1.17-manperms/conserver.cf: Makefile.in.orig
diff -ur conserver-8.1.17/console/Makefile.in conserver-8.1.17-manperms/console/Makefile.in
--- conserver-8.1.17/console/Makefile.in	2004-05-12 17:02:13.000000000 -0400
+++ conserver-8.1.17-manperms/console/Makefile.in	2009-10-05 05:27:50.407100571 -0400
@@ -56,6 +56,6 @@
 	$(MKDIR) $(DESTDIR)$(bindir)
 	$(INSTALL_PROGRAM) console $(DESTDIR)$(bindir)
 	$(MKDIR) $(DESTDIR)$(mandir)/man1
-	$(INSTALL) console.man $(DESTDIR)$(mandir)/man1/console.1
+	$(INSTALL) -m 0644 console.man $(DESTDIR)$(mandir)/man1/console.1
 
 .PHONY: clean distclean install