packaging: Bundle README, COPYING and html version of manpages
authorAmitay Isaacs <amitay@gmail.com>
Mon, 22 Oct 2012 07:04:09 +0000 (18:04 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 22 Oct 2012 07:15:17 +0000 (18:15 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 6871415f6cb50c4f9753067359f0e264d3f93871)

ctdb/Makefile.in
ctdb/packaging/RPM/ctdb.spec.in

index cffcf4ac06621af5bde4a8c47567b988d966d3a7..3294503eb19495953b3e10d324ef209eefe574f3 100755 (executable)
@@ -321,6 +321,8 @@ install: all manpages $(PMDA_INSTALL)
        ${INSTALLCMD} -m 644 include/ctdb_typesafe_cb.h $(DESTDIR)$(includedir)
        ${INSTALLCMD} -m 644 config/functions $(DESTDIR)$(etcdir)/ctdb
        ${INSTALLCMD} -m 755 config/statd-callout $(DESTDIR)$(etcdir)/ctdb
+       ${INSTALLCMD} -m 644 README $(DESTDIR)$(docdir)/ctdb/README
+       ${INSTALLCMD} -m 644 COPYING $(DESTDIR)$(docdir)/ctdb/COPYING
        ${INSTALLCMD} -m 644 config/events.d/README $(DESTDIR)$(docdir)/ctdb/README.eventscripts
        ${INSTALLCMD} -m 644 doc/recovery-process.txt $(DESTDIR)$(docdir)/ctdb/recovery-process.txt
        ${INSTALLCMD} -m 755 config/events.d/00.ctdb $(DESTDIR)$(etcdir)/ctdb/events.d
@@ -349,6 +351,11 @@ install: all manpages $(PMDA_INSTALL)
        if [ -f doc/onnode.1 ];then ${INSTALLCMD} -m 644 doc/onnode.1 $(DESTDIR)$(mandir)/man1; fi
        if [ -f doc/ltdbtool.1 ]; then ${INSTALLCMD} -m 644 doc/ltdbtool.1 $(DESTDIR)$(mandir)/man1; fi
        if [ -f doc/ping_pong.1 ];then ${INSTALLCMD} -m 644 doc/ping_pong.1 $(DESTDIR)$(mandir)/man1; fi
+       if [ -f doc/ctdb.1.html ];then ${INSTALLCMD} -m 644 doc/ctdb.1.html $(DESTDIR)$(docdir)/ctdb; fi
+       if [ -f doc/ctdbd.1.html ];then ${INSTALLCMD} -m 644 doc/ctdbd.1.html $(DESTDIR)$(docdir)/ctdb; fi
+       if [ -f doc/onnode.1.html ];then ${INSTALLCMD} -m 644 doc/onnode.1.html $(DESTDIR)$(docdir)/ctdb; fi
+       if [ -f doc/ltdbtool.1.html ];then ${INSTALLCMD} -m 644 doc/ltdbtool.1.html $(DESTDIR)$(docdir)/ctdb; fi
+       if [ -f doc/ping_pong.1.html ];then ${INSTALLCMD} -m 644 doc/ping_pong.1.html $(DESTDIR)$(docdir)/ctdb; fi
        if [ ! -f $(DESTDIR)$(etcdir)/ctdb/notify.sh ];then ${INSTALLCMD} -m 755 config/notify.sh $(DESTDIR)$(etcdir)/ctdb; fi
        ${INSTALLCMD} -m 755 config/debug-hung-script.sh $(DESTDIR)$(etcdir)/ctdb
        if [ ! -f $(DESTDIR)$(etcdir)/ctdb/ctdb-crash-cleanup.sh ];then ${INSTALLCMD} -m 755 config/ctdb-crash-cleanup.sh $(DESTDIR)$(etcdir)/ctdb; fi
index 48cd0ab6b5e86cb4ef76cce07d9fabb7961b6d0a..b0555c798eb47ac3500e4eea8e5360b5e6e5457a 100644 (file)
@@ -127,8 +127,15 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %{_sysconfdir}/ctdb/functions
 %attr(755,root,root) %{initdir}/ctdb
 
+%{_docdir}/ctdb/README
+%{_docdir}/ctdb/COPYING
 %{_docdir}/ctdb/README.eventscripts
 %{_docdir}/ctdb/recovery-process.txt
+%{_docdir}/ctdb/ctdb.1.html
+%{_docdir}/ctdb/ctdbd.1.html
+%{_docdir}/ctdb/onnode.1.html
+%{_docdir}/ctdb/ltdbtool.1.html
+%{_docdir}/ctdb/ping_pong.1.html
 %{_sysconfdir}/ctdb/events.d/00.ctdb
 %{_sysconfdir}/ctdb/events.d/01.reclock
 %{_sysconfdir}/ctdb/events.d/10.interface