summaryrefslogtreecommitdiff
path: root/network/vpnc
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2016-05-30 15:33:11 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-01 23:54:49 +0700
commit7688f805077f17b2002dd49d88a9edf31f302f95 (patch)
tree675bf28faa499054941cac6f6241e08c67d5e201 /network/vpnc
parente1fdae33e4baefff38b53b93e634663096f06ea2 (diff)
downloadslackbuilds-7688f805077f17b2002dd49d88a9edf31f302f95.tar.gz
network/vpnc: Updated for version r550, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/vpnc')
-rw-r--r--network/vpnc/README7
-rw-r--r--network/vpnc/vpnc.SlackBuild19
-rw-r--r--network/vpnc/vpnc.info6
3 files changed, 18 insertions, 14 deletions
diff --git a/network/vpnc/README b/network/vpnc/README
index eb6e58430b..0c7299b351 100644
--- a/network/vpnc/README
+++ b/network/vpnc/README
@@ -1,4 +1,7 @@
Supports IPSec (ESP) with Mode Configuration and Xauth.
-Supports only shared-secret IPSec authentication with
-Xauth, AES (256, 192, 128), 3DES, 1DES, MD5, SHA1, DH1/2/5,
+Supports only shared-secret IPSec authentication with
+Xauth, AES (256, 192, 128), 3DES, 1DES, MD5, SHA1, DH1/2/5,
and IP tunneling.
+
+This is built with openssl support -- do NOT distribute
+the resulting binaries!
diff --git a/network/vpnc/vpnc.SlackBuild b/network/vpnc/vpnc.SlackBuild
index 834f4adc79..69be3f5727 100644
--- a/network/vpnc/vpnc.SlackBuild
+++ b/network/vpnc/vpnc.SlackBuild
@@ -32,9 +32,10 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds.org Project.
+# sources are from http://svn.unix-ag.uni-kl.de/vpnc/branches/vpnc-nortel
PRGNAM=vpnc
-VERSION=0.5.3
+VERSION=${VERSION:-r550}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,32 +72,32 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Build with openssl support -- do NOT distribute binaries of this
sed -i '/^#OPENSSL/s/^#//g' Makefile
-make CFLAGS="$SLKCFLAGS" DOCDIR=/usr/doc/$PRGNAM-$VERSION
+export CFLAGS="$SLKCFLAGS" DOCDIR=/usr/doc/$PRGNAM-$VERSION
+make PREFIX=/usr
make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man DOCDIR=/usr/doc/$PRGNAM-$VERSION
-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
+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
+
# Let's not clobber config files
mv $PKG/etc/vpnc/default.conf $PKG/etc/vpnc/default.conf.new
mv $PKG/etc/vpnc/vpnc-script $PKG/etc/vpnc/vpnc-script.new
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
-)
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a VERSION README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/network/vpnc/vpnc.info b/network/vpnc/vpnc.info
index b5931f9527..562016e1b3 100644
--- a/network/vpnc/vpnc.info
+++ b/network/vpnc/vpnc.info
@@ -1,8 +1,8 @@
PRGNAM="vpnc"
-VERSION="0.5.3"
+VERSION="r550"
HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
-DOWNLOAD="http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.3.tar.gz"
-MD5SUM="4378f9551d5b077e1770bbe09995afb3"
+DOWNLOAD="http://ponce.cc/slackware/sources/repo/vpnc-r550.tar.xz"
+MD5SUM="53f94e10df6b192c3ab1cdf4735fef45"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""