aboutsummaryrefslogtreecommitdiff
path: root/ruby/facter/facter.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/facter/facter.SlackBuild')
-rw-r--r--ruby/facter/facter.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/ruby/facter/facter.SlackBuild b/ruby/facter/facter.SlackBuild
index 5109b75f535c2..c8b08e5599b85 100644
--- a/ruby/facter/facter.SlackBuild
+++ b/ruby/facter/facter.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for facter
-# Copyright 2012 Thibaut Notteboom, Paris, FRANCE
+# Copyright 2012-2013 Thibaut Notteboom, Paris, FRANCE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=facter
-VERSION=${VERSION:-1.6.14}
+VERSION=${VERSION:-1.6.17}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -74,8 +74,8 @@ 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
+mkdir -p $PKG/etc
+cp -a etc/facter.conf $PKG/etc/facter.conf.new
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
@@ -86,6 +86,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}