diff options
Diffstat (limited to 'network/polipo/polipo.SlackBuild')
-rw-r--r-- | network/polipo/polipo.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/network/polipo/polipo.SlackBuild b/network/polipo/polipo.SlackBuild index a29abeeef5..217e9378c8 100644 --- a/network/polipo/polipo.SlackBuild +++ b/network/polipo/polipo.SlackBuild @@ -1,7 +1,8 @@ #!/bin/sh # Slackware build script for Polipo -# + +# Copyright 2015 Brenton Earl <brent@exitstatusone.com> # Copyright 2009-2012 Marco Bonetti <sid77@slackware.it> # All rights reserved. # @@ -24,7 +25,7 @@ PRGNAM=polipo -VERSION=${VERSION:-1.0.4.1} +VERSION=${VERSION:-1.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,12 +63,12 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION +rm -rf $PRGNAM-$PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +cd $PRGNAM-$PRGNAM-$VERSION # Fix Makefile -cat $CWD/makefile.diff | patch -p1 --verbose +patch -p1 < $CWD/makefile.diff chown -R root:root . find -L . \ @@ -82,14 +83,8 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/man -type f -exec gzip -9 {} \; || true +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done || true rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/*.info* @@ -97,10 +92,14 @@ gzip -9 $PKG/usr/info/*.info* mkdir -p $PKG/etc/rc.d cat $CWD/rc.polipo > $PKG/etc/rc.d/rc.polipo.new +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +ln -s /usr/share/polipo/www $PKG/usr/doc/$PRGNAM-$VERSION/html +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} - |