network/redir: Updated for version 3.3, changed homepage.
Various cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
8aade5b808
commit
d6ff11b118
|
@ -1,3 +1,6 @@
|
|||
redir is all you need to redirect traffic across firewalls.
|
||||
The functionality of inetd/tcpd and "redir" will allow you to
|
||||
do everything you need without screwy telnet/ftp etc gateways.
|
||||
|
||||
Have a look at the man page or at /usr/doc/redir-*/README.md
|
||||
for usage examples.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for redir
|
||||
|
||||
# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
|
||||
# Copyright 2013-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,13 +23,13 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=redir
|
||||
VERSION=${VERSION:-2.2.1}
|
||||
VERSION=${VERSION:-3.3}
|
||||
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
|
||||
|
@ -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"
|
||||
|
@ -54,7 +54,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
DOCS="CHANGES COPYING README contrib transproxy.txt"
|
||||
DOCS="AUTHORS COPYING *.md transproxy.txt"
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -65,26 +65,33 @@ rm -rf $PRGNAM-$VERSION
|
|||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
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 {} \;
|
||||
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 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
for i in $CWD/patches/* ; do patch -p1 < $i ; done
|
||||
|
||||
sed -i "s|^EXTRA_LIBS.*|EXTRA_LIBS = -lnsl|" Makefile
|
||||
./autogen.sh
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
install -D -m 0755 $PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
gzip -9c $PRGNAM.man > $PKG/usr/man/man1/$PRGNAM.1.gz
|
||||
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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="redir"
|
||||
VERSION="2.2.1"
|
||||
HOMEPAGE="http://sammy.net/~sammy/hacks/"
|
||||
DOWNLOAD="http://sammy.net/~sammy/hacks/redir-2.2.1.tar.gz"
|
||||
MD5SUM="4342fadac30504c86c8db7beefe01995"
|
||||
VERSION="3.3"
|
||||
HOMEPAGE="https://github.com/troglobit/redir"
|
||||
DOWNLOAD="https://github.com/troglobit/redir/archive/v3.3/redir-3.3.tar.gz"
|
||||
MD5SUM="cdecd8a0b77bc64911dc882681b8157c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -12,7 +12,7 @@ redir: redir is all you need to redirect traffic across firewalls.
|
|||
redir: The functionality of inetd/tcpd and "redir" will allow you to
|
||||
redir: do everything you need without screwy telnet/ftp etc gateways.
|
||||
redir:
|
||||
redir: homepage: http://sammy.net/~sammy/hacks/
|
||||
redir: homepage: https://github.com/troglobit/redir
|
||||
redir:
|
||||
redir:
|
||||
redir:
|
||||
|
|
Loading…
Reference in New Issue