diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-10-16 07:11:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-10-16 07:11:15 +0700 |
commit | fb4d506bfd6f120a5ef887f5f7ed79ae336e40a0 (patch) | |
tree | cbf8ab85f87631df32617c9bcd11fde0a0d3c6e8 /network/tinyproxy/tinyproxy.SlackBuild | |
parent | 780498977e2b9d45ca0b961cef6fd419142617cf (diff) |
network/tinyproxy: Updated for version 1.8.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/tinyproxy/tinyproxy.SlackBuild')
-rw-r--r-- | network/tinyproxy/tinyproxy.SlackBuild | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/network/tinyproxy/tinyproxy.SlackBuild b/network/tinyproxy/tinyproxy.SlackBuild index d47f6d2e4f78e..bde1315e0e0c6 100644 --- a/network/tinyproxy/tinyproxy.SlackBuild +++ b/network/tinyproxy/tinyproxy.SlackBuild @@ -6,13 +6,13 @@ # Public domain. PRGNAM=tinyproxy -VERSION=${VERSION:-1.8.3} +VERSION=${VERSION:-1.8.4} BUILD=${BUILD:-1} 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 @@ -23,8 +23,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" @@ -43,14 +43,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -65,19 +65,17 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-filter \ --enable-upstream \ --enable-reverse \ - --enable-transparent-proxy \ + --enable-transparent \ --build=$ARCH-slackware-linux make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 -( 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 -) +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 mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new sed -i -e "s,/usr/share,&/$PRGNAM,g" \ @@ -85,8 +83,7 @@ sed -i -e "s,/usr/share,&/$PRGNAM,g" \ $PKG/etc/tinyproxy.conf.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ -AUTHORS COPYING ChangeLog NEWS README TODO docs/*.txt \ +cp -a AUTHORS COPYING ChangeLog NEWS README TODO docs/*.txt \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chmod 0644 {} \; |