[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161

James Turnbull james at lovedthanlost.net
Wed Aug 18 05:55:38 UTC 2010


The following commit has been merged in the upstream branch:
commit b2c1ca56ebc7ec78c71a1fbf6026411494214e67
Author: Nigel Kersten <nigelk at google.com>
Date:   Thu Nov 5 07:36:04 2009 -0800

    Add docs to Mac OS X package creation script and clean out old docs in the preflight

diff --git a/conf/osx/createpackage.sh b/conf/osx/createpackage.sh
index 623eb31..fc76b62 100755
--- a/conf/osx/createpackage.sh
+++ b/conf/osx/createpackage.sh
@@ -54,6 +54,17 @@ function install_facter() {
   chown -R root:admin "${pkgroot}"
 }
 
+function install_docs() {
+  echo "Installing docs to ${pkgroot}"
+  docdir="${pkgroot}/usr/share/doc/facter" 
+  mkdir -p "${docdir}"
+  for docfile in ChangeLog COPYING LICENSE README README.rst TODO; do
+    install -m 0644 "${facter_root}/${docfile}" "${docdir}"
+  done
+  chown -R root:wheel "${docdir}"
+  chmod 0755 "${docdir}"
+}
+
 function get_facter_version() {
   facter_version=$(RUBYLIB="${pkgroot}/${SITELIBDIR}:${RUBYLIB}" ruby -e "require 'facter'; puts Facter.version")
 }
diff --git a/conf/osx/preflight b/conf/osx/preflight
index 98251bf..8066bf4 100755
--- a/conf/osx/preflight
+++ b/conf/osx/preflight
@@ -10,3 +10,7 @@
 
 /bin/rm -Rf "${3}{SITELIBDIR}/facter"
 /bin/rm -Rf "${3}{SITELIBDIR}/facter.rb"
+
+# remove old doc files
+
+/bin/rm -Rf "${3}/usr/share/doc/facter"
\ No newline at end of file

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list