From 102c46ee60bde5255114fed73f073c7d57c1a72c Mon Sep 17 00:00:00 2001 From: Thibaut Notteboom Date: Fri, 14 Dec 2012 19:23:26 +0100 Subject: ruby/facter: Updated for version 1.6.14. Signed-off-by: Matteo Bernardini --- ruby/facter/facter.SlackBuild | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'ruby/facter/facter.SlackBuild') 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 -- cgit v1.2.3