aboutsummaryrefslogtreecommitdiff
path: root/system/fakeroot
diff options
context:
space:
mode:
authorfdeak <ferenc.deak@gmail.com>2010-05-11 22:26:39 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:26:39 +0200
commit4021b6f4275792b101de424da3c820ccf3a4899a (patch)
tree8615b33297161480647c1af9c51f8673e7ae5eca /system/fakeroot
parent303f6700b58ccc28dcd254c22148f53d6a222bd5 (diff)
system/fakeroot: Updated for version 1.10.1
Diffstat (limited to 'system/fakeroot')
-rw-r--r--system/fakeroot/fakeroot.SlackBuild43
-rw-r--r--system/fakeroot/fakeroot.info8
-rw-r--r--system/fakeroot/slack-desc2
3 files changed, 40 insertions, 13 deletions
diff --git a/system/fakeroot/fakeroot.SlackBuild b/system/fakeroot/fakeroot.SlackBuild
index 0d504b17aef2..6c125397f425 100644
--- a/system/fakeroot/fakeroot.SlackBuild
+++ b/system/fakeroot/fakeroot.SlackBuild
@@ -2,15 +2,32 @@
# Slackware build script for fakeroot
-# Written by Ferenc Deak <ferenc.deak@gmail.com>
-
-set -e
+# Copyright 2007-2008 Ferenc Deak <ferenc.deak@gmail.com>
+# 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=fakeroot
-VERSION=1.8.2
+VERSION=1.10.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -20,8 +37,12 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -29,7 +50,11 @@ rm -rf $PRGNAM-$VERSION
tar xzf $CWD/${PRGNAM}_$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+rw,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -37,17 +62,19 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
make
make DESTDIR=$PKG install
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
-( cd $PKG/usr/man
+( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
diff --git a/system/fakeroot/fakeroot.info b/system/fakeroot/fakeroot.info
index de394662be0f..c18fdbfe434b 100644
--- a/system/fakeroot/fakeroot.info
+++ b/system/fakeroot/fakeroot.info
@@ -1,8 +1,8 @@
PRGNAM="fakeroot"
-VERSION="1.8.2"
+VERSION="1.10.1"
HOMEPAGE="http://packages.debian.org/fakeroot"
-DOWNLOAD="http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.8.2.tar.gz"
-MD5SUM="782a1b78dca79da13e2f0e3f566ed06d"
-MAINTAINER="Ferenc Deak"
+DOWNLOAD="http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.10.1.tar.gz"
+MD5SUM="052a1b5474b3681bc5f3167d2b3711a8"
+MAINTAINER="fdeak"
EMAIL="ferenc.deak@gmail.com"
APPROVED="rworkman"
diff --git a/system/fakeroot/slack-desc b/system/fakeroot/slack-desc
index ffabf48874fc..874e23c6a278 100644
--- a/system/fakeroot/slack-desc
+++ b/system/fakeroot/slack-desc
@@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
- |-----handy-ruler------------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
fakeroot: fakeroot (Gives a fake root environment)
fakeroot:
fakeroot: Fakeroot makes it possible to run commands in an environment