[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08

Nigel Kersten nigelk at google.com
Fri Jan 15 09:06:52 UTC 2010


The following commit has been merged in the upstream branch:
commit ee13efa50d83ea4ecb549763efca211111972edf
Author: Nigel Kersten <nigelk at google.com>
Date:   Thu Nov 5 07:28:44 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 d27ef0e..563b69c 100755
--- a/conf/osx/createpackage.sh
+++ b/conf/osx/createpackage.sh
@@ -54,6 +54,17 @@ function install_puppet() {
   chown -R root:admin "${pkgroot}"
 }
 
+function install_docs() {
+  echo "Installing docs to ${pkgroot}"
+  docdir="${pkgroot}/usr/share/doc/puppet" 
+  mkdir -p "${docdir}"
+  for docfile in CHANGELOG CHANGELOG.old COPYING LICENSE README README.queueing README.rst; do
+    install -m 0644 "${puppet_root}/${docfile}" "${docdir}"
+  done
+  chown -R root:wheel "${docdir}"
+  chmod 0755 "${docdir}"
+}
+
 function get_puppet_version() {
   puppet_version=$(RUBYLIB="${pkgroot}/${SITELIBDIR}:${RUBYLIB}" ruby -e "require 'puppet'; puts Puppet.version")
 }
@@ -156,6 +167,7 @@ function main() {
   fi
 
   install_puppet
+  install_docs
   get_puppet_version
 
   if [ ! "${puppet_version}" ]; then
diff --git a/conf/osx/preflight b/conf/osx/preflight
index 3a6109e..8220d02 100755
--- a/conf/osx/preflight
+++ b/conf/osx/preflight
@@ -11,6 +11,10 @@
 /bin/rm -Rf "${3}{SITELIBDIR}/puppet"
 /bin/rm -Rf "${3}{SITELIBDIR}/puppet.rb"
 
+# remove old doc files
+
+/bin/rm -Rf "${3}/usr/share/doc/puppet"
+
 # In puppet 0.24.x these executables lived in bindir, but in 0.25.x they
 # have been moved to sbindir. This cleans out old ones before installing.
 /bin/rm -Rf "${3}{BINDIR}/puppetca"

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list