aboutsummaryrefslogtreecommitdiff
path: root/network/3proxy
diff options
context:
space:
mode:
authorIlya Ponetayev <inste@mail.ru>2010-05-11 22:54:37 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:54:37 +0200
commitfcc9f2613e62f5d3c8a758a501d27cc346907e02 (patch)
treec5c946cb513a5c03006369f45832cf7bbff7c4d0 /network/3proxy
parentfa89937dd343bdef809809d63ebf406d9544988f (diff)
network/3proxy: Added to 12.1 repository
Diffstat (limited to 'network/3proxy')
-rw-r--r--network/3proxy/3proxy.SlackBuild117
-rw-r--r--network/3proxy/3proxy.info8
-rw-r--r--network/3proxy/3proxy.x86.i386.flags.diff.gzbin0 -> 347 bytes
-rw-r--r--network/3proxy/3proxy.x86.i486.flags.diff.gzbin0 -> 342 bytes
-rw-r--r--network/3proxy/3proxy.x86_64.flags.diff.gzbin0 -> 331 bytes
-rw-r--r--network/3proxy/README11
-rw-r--r--network/3proxy/slack-desc19
7 files changed, 155 insertions, 0 deletions
diff --git a/network/3proxy/3proxy.SlackBuild b/network/3proxy/3proxy.SlackBuild
new file mode 100644
index 000000000000..7bfcc8d1bf0a
--- /dev/null
+++ b/network/3proxy/3proxy.SlackBuild
@@ -0,0 +1,117 @@
+#!/bin/sh
+
+# Slackware build script for 3proxy
+
+# Copyright 2008 Ilya INSTE Ponetayev, <inste@mail.ru>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 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.
+#
+# Modified by Slackbuilds.org
+
+PRGNAM=3proxy
+VERSION=${VERSION:-0.5.3k}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+ OPTPATCH="3proxy.x86.i386.flags.diff.gz"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ OPTPATCH="3proxy.x86.i486.flags.diff.gz"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ OPTPATCH="3proxy.x86_64.flags.diff.gz"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+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 {} \;
+
+# installing correct Makefile
+zcat $CWD/$OPTPATCH | patch -p2
+ln -s Makefile.unix Makefile
+
+# Build and install:
+make
+
+mkdir $PKG/usr
+mkdir $PKG/usr/bin
+cp src/3proxy $PKG/usr/bin
+cp src/dighosts $PKG/usr/bin
+cp src/ftppr $PKG/usr/bin
+cp src/mycrypt $PKG/usr/bin
+cp src/pop3p $PKG/usr/bin
+cp src/proxy $PKG/usr/bin
+cp src/socks $PKG/usr/bin
+cp src/tcppm $PKG/usr/bin
+cp src/udppm $PKG/usr/bin
+mkdir $PKG/usr/man
+mkdir $PKG/usr/man/man3
+mkdir $PKG/usr/man/man8
+cp man/*.8 $PKG/usr/man/man8
+cp man/*.3 $PKG/usr/man/man3
+
+chmod 755 -R $PKG/usr/bin
+chmod 755 -R $PKG/usr/man
+chown root.root -R $PKG
+
+# Strip binaries:
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Compress and link manpages.
+( 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
+)
+
+# Add a documentation directory:
+mkdir -p $PKG/usr/doc/${PRGNAM}-$VERSION
+cp -a \
+ Changelog License Readme Release.notes doc cfg \
+ $PKG/usr/doc/${PRGNAM}-$VERSION
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/3proxy/3proxy.info b/network/3proxy/3proxy.info
new file mode 100644
index 000000000000..a0f2f7086f12
--- /dev/null
+++ b/network/3proxy/3proxy.info
@@ -0,0 +1,8 @@
+PRGNAM="3proxy"
+VERSION="0.5.3k"
+HOMEPAGE="http://3proxy.ru/"
+DOWNLOAD="http://3proxy.ru/0.5.3k/3proxy-0.5.3k.tgz"
+MD5SUM="4749c88201ba540707bcfc65fa34f316"
+MAINTAINER="Ilya Ponetayev"
+EMAIL="inste@mail.ru"
+APPROVED="David Somero"
diff --git a/network/3proxy/3proxy.x86.i386.flags.diff.gz b/network/3proxy/3proxy.x86.i386.flags.diff.gz
new file mode 100644
index 000000000000..fa0bf2b641a7
--- /dev/null
+++ b/network/3proxy/3proxy.x86.i386.flags.diff.gz
Binary files differ
diff --git a/network/3proxy/3proxy.x86.i486.flags.diff.gz b/network/3proxy/3proxy.x86.i486.flags.diff.gz
new file mode 100644
index 000000000000..be6d1b0e1dae
--- /dev/null
+++ b/network/3proxy/3proxy.x86.i486.flags.diff.gz
Binary files differ
diff --git a/network/3proxy/3proxy.x86_64.flags.diff.gz b/network/3proxy/3proxy.x86_64.flags.diff.gz
new file mode 100644
index 000000000000..4ac21aad30ac
--- /dev/null
+++ b/network/3proxy/3proxy.x86_64.flags.diff.gz
Binary files differ
diff --git a/network/3proxy/README b/network/3proxy/README
new file mode 100644
index 000000000000..cdfd807f311c
--- /dev/null
+++ b/network/3proxy/README
@@ -0,0 +1,11 @@
+3Proxy tiny free proxy server previously known as 3[APA3A] tiny freeware
+proxy (pronounce it as "Zaraza tiny freeware proxy") is really tiny
+cross-platform (Win32/Win64&Unix) proxy servers set. It includes
+HTTP proxy with HTTPS and FTP support, SOCKSv4/SOCKSv4.5/SOCKSv5 proxy
+(socks/socks.exe), POP3 proxy, SMTP proxy, AIM/ICQ proxy (icqpr/icqpr.exe),
+MSN messenger / Live messenger proxy (msnpr/msnpr.exe), FTP proxy,
+caching DNS proxy, TCP and UDP portmappers. You can use every proxy as
+a standalone program (socks, proxy, tcppm, udppm, pop3p) or use combined
+program (3proxy). Combined proxy additionally supports features like access
+control, bandwidth limiting, limiting daily/weekly/monthly traffic amount,
+proxy chaining, log rotation, syslog and ODBC logging, etc.
diff --git a/network/3proxy/slack-desc b/network/3proxy/slack-desc
new file mode 100644
index 000000000000..91f14281b8ec
--- /dev/null
+++ b/network/3proxy/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+3proxy: 3proxy (tiny free proxy server)
+3proxy:
+3proxy: 3Proxy tiny free proxy server previously known as 3[APA3A] tiny
+3proxy: freeware proxy is really tiny cross-platform proxy servers set.
+3proxy: It includes HTTP proxy with HTTPS and FTP support, SOCKSv4/
+3proxy: SOCKSv4.5/SOCKSv5 proxy (socks), POP3 proxy, SMTP proxy,
+3proxy: AIM/ICQ proxy (icqpr), MSN messenger / Live messenger proxy
+3proxy: (msnpr), FTP proxy, caching DNS proxy, TCP and UDP portmappers.
+3proxy: See Release Notes and Changes for features list.
+3proxy: 3proxy licensed under GNU GPL v2.
+3proxy: The webpage for 3proxy is: http://3proxy.ru/.