summaryrefslogtreecommitdiff
path: root/ruby/facter/facter.SlackBuild
diff options
context:
space:
mode:
authorThibaut Notteboom <tib@tibux.org>2012-12-14 19:23:26 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-15 15:13:38 +0100
commit102c46ee60bde5255114fed73f073c7d57c1a72c (patch)
tree693fa4cbc0200409c9f3826452adab393960be75 /ruby/facter/facter.SlackBuild
parent0b841ae33af4b3b96d30cfabb56998f588aa9e8f (diff)
downloadslackbuilds-102c46ee60bde5255114fed73f073c7d57c1a72c.tar.gz
ruby/facter: Updated for version 1.6.14.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'ruby/facter/facter.SlackBuild')
-rw-r--r--ruby/facter/facter.SlackBuild34
1 files changed, 31 insertions, 3 deletions
diff --git a/ruby/facter/facter.SlackBuild b/ruby/facter/facter.SlackBuild
index 46d9fbf096..5109b75f53 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