aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'ruby')
-rw-r--r--ruby/facter/facter.SlackBuild34
-rw-r--r--ruby/facter/facter.info6
2 files changed, 34 insertions, 6 deletions
diff --git a/ruby/facter/facter.SlackBuild b/ruby/facter/facter.SlackBuild
index 46d9fbf096ce..5109b75f535c 100644
--- a/ruby/facter/facter.SlackBuild
+++ b/ruby/facter/facter.SlackBuild
@@ -1,10 +1,29 @@
#!/bin/sh
# Slackware build script for facter
-# Written by Thibaut Notteboom (tib@tibux.org)
+
+# Copyright 2012 Thibaut Notteboom, Paris, FRANCE
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=facter
-VERSION=${VERSION:-1.6.8}
+VERSION=${VERSION:-1.6.14}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -52,8 +71,17 @@ find . \
ruby install.rb install --destdir=$PKG
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir $PKG/etc
+cp -a etc/facter.conf $PKG/etc/facter.conf
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG CONTRIBUTING.md INSTALL LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CONTRIBUTING.md LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/ruby/facter/facter.info b/ruby/facter/facter.info
index 03350db08271..05cc0ed60ab6 100644
--- a/ruby/facter/facter.info
+++ b/ruby/facter/facter.info
@@ -1,8 +1,8 @@
PRGNAM="facter"
-VERSION="1.6.8"
+VERSION="1.6.14"
HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
-DOWNLOAD="http://puppetlabs.com/downloads/facter/facter-1.6.8.tar.gz"
-MD5SUM="d1724899c02623dcd5bf37bad48d9892"
+DOWNLOAD="http://puppetlabs.com/downloads/facter/facter-1.6.14.tar.gz"
+MD5SUM="b6c3df8ad1781c10d30785c58a4504ef"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""