summaryrefslogtreecommitdiff
path: root/network/polipo/polipo.SlackBuild
diff options
context:
space:
mode:
authorBrenton Earl <brent@exitstatusone.com>2015-11-10 21:52:06 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-14 07:07:34 +0700
commit71cd6add2c6d36fe532990b7c9cd253601a31fb9 (patch)
tree3d8d777cb6d54127950cd6b4dcbc25c145a86f42 /network/polipo/polipo.SlackBuild
parent428c9f2d5a1e84ae7fd210f8d779599fd7e29e6d (diff)
downloadslackbuilds-71cd6add2c6d36fe532990b7c9cd253601a31fb9.tar.gz
network/polipo: Updated for version 1.1.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/polipo/polipo.SlackBuild')
-rw-r--r--network/polipo/polipo.SlackBuild27
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}
-