diff options
author | Andrzej Telszewski <atelszewski@gmail.com> | 2016-09-06 17:37:54 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-09-11 08:53:49 +0700 |
commit | 3388e671dc9e365de7418d99c08549f784f64916 (patch) | |
tree | 3a5cdce41ef0b0066483c63dacd2c10bd7c1aec2 /system/fakeroot | |
parent | bd4db5994e11872354c47c9a4cbb0e5de5754458 (diff) |
system/fakeroot: Change maintainer + new script option.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fakeroot')
-rw-r--r-- | system/fakeroot/README | 3 | ||||
-rw-r--r-- | system/fakeroot/fakeroot.SlackBuild | 49 | ||||
-rw-r--r-- | system/fakeroot/fakeroot.info | 4 |
3 files changed, 33 insertions, 23 deletions
diff --git a/system/fakeroot/README b/system/fakeroot/README index ea6b24ac91a6a..57e066a7374d6 100644 --- a/system/fakeroot/README +++ b/system/fakeroot/README @@ -2,3 +2,6 @@ Fakeroot makes it possible to run commands in an environment faking root privileges. This is done by setting LD_PRELOAD to libfakeroot.so, which provides wrappers around getuid, chown, chmod, mknod, stat, and so on, thereby creating a fake root environment. + +By passing MANPO=no to the SlackBuild, you can skip installing of +non-English man pages. If so, po4a is not required to build the package. diff --git a/system/fakeroot/fakeroot.SlackBuild b/system/fakeroot/fakeroot.SlackBuild index bb37dae4cbed3..723f1b4f97e2f 100644 --- a/system/fakeroot/fakeroot.SlackBuild +++ b/system/fakeroot/fakeroot.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for fakeroot -# Copyright 2007-2008 Ferenc Deak <ferenc.deak@gmail.com> +# Copyright 2016 Andrzej Telszewski, Banie # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -11,25 +11,25 @@ # 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. +# 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=${VERSION:-1.21} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz +tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -84,11 +84,17 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make +make DESTDIR=$PKG install-exec -cd doc -po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg -cd .. -make DESTDIR=$PKG install +if [ ${MANPO:-yes} != no ]; then + cd doc + po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg + cd .. + make DESTDIR=$PKG install-data +else + mkdir -p $PKG/usr/man/man1 + cp -a doc/{faked,fakeroot}.1 $PKG/usr/man/man1 +fi 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 @@ -97,7 +103,8 @@ 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 AUTHORS BUGS COPYING DEBUG INSTALL README doc/README.* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS BUGS COPYING DEBUG INSTALL README doc/README.* \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/fakeroot/fakeroot.info b/system/fakeroot/fakeroot.info index 0e411b3e8add2..0989c8bcb7f2b 100644 --- a/system/fakeroot/fakeroot.info +++ b/system/fakeroot/fakeroot.info @@ -6,5 +6,5 @@ MD5SUM="be5c9a0e516869fca4a6758105968e5a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="po4a" -MAINTAINER="fdeak" -EMAIL="ferenc.deak@gmail.com" +MAINTAINER="Andrzej Telszewski" +EMAIL="atelszewski@gmail.com" |