aboutsummaryrefslogtreecommitdiff
path: root/network/vpnc
diff options
context:
space:
mode:
authorAlex Lysenka <me@alkos333.net>2010-05-11 15:01:38 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 15:01:38 +0200
commit66ef2d297ea60b71c21e21a84f2545b4955f6535 (patch)
treea944f9c00098f29419664df8e5f0cb8122d7fb31 /network/vpnc
parent724ae3f8938143f16958fee0c7cd3be1a7915e88 (diff)
network/vpnc: Initial import
Diffstat (limited to 'network/vpnc')
-rw-r--r--network/vpnc/README11
-rw-r--r--network/vpnc/slack-desc12
-rw-r--r--network/vpnc/vpnc.SlackBuild59
-rw-r--r--network/vpnc/vpnc.info8
4 files changed, 90 insertions, 0 deletions
diff --git a/network/vpnc/README b/network/vpnc/README
new file mode 100644
index 000000000000..7f260ad6e9ba
--- /dev/null
+++ b/network/vpnc/README
@@ -0,0 +1,11 @@
+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 and IP tunneling.
+
+Homepage: http://www.unix-ag.uni-kl.de/~massar/vpnc/
+
+This packages requires libgpg-error and libgcrypt which can be
+obtained at slackbuilds.org. Make sure to install them
+in the order listed above. Libgcrypt won't compile without
+libgpg-error.
diff --git a/network/vpnc/slack-desc b/network/vpnc/slack-desc
new file mode 100644
index 000000000000..b981f8bf01b5
--- /dev/null
+++ b/network/vpnc/slack-desc
@@ -0,0 +1,12 @@
+ |-----handy-ruler------------------------------------------------------|
+vpnc:
+vpnc: A VPN client compatible with Cisco's EasyVPN equipment.
+vpnc:
+vpnc: Supports IPSec (ESP) with Mode Configuration and Xauth. Supports
+vpnc: only shared-secret IPSec authentication with Xauth,
+vpnc: AES (256, 192, 128), 3DES, 1DES, MD5, SHA1,
+vpnc: DH1/2/5 and IP tunneling.
+vpnc:
+vpnc:
+vpnc: Homepage: http://www.unix-ag.uni-kl.de/~massar/vpnc/
+vpnc:
diff --git a/network/vpnc/vpnc.SlackBuild b/network/vpnc/vpnc.SlackBuild
new file mode 100644
index 000000000000..8278b2ae8fb1
--- /dev/null
+++ b/network/vpnc/vpnc.SlackBuild
@@ -0,0 +1,59 @@
+#!/bin/bash
+
+# Slackware build script for vpnc
+# Written by Alex Lysenka <me@alkos333.net>
+# Licensed under GNU GPL v2
+
+# Modified by the SlackBuild Project.
+
+set -e
+
+PRGNAM=vpnc
+VERSION=0.4.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i868"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+make || exit 1
+make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp VERSION COPYING README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+)
+
+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/vpnc/vpnc.info b/network/vpnc/vpnc.info
new file mode 100644
index 000000000000..776bcc188b14
--- /dev/null
+++ b/network/vpnc/vpnc.info
@@ -0,0 +1,8 @@
+PRGNAM="vpnc"
+VERSION="0.4.0"
+HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
+DOWNLOAD="http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.4.0.tar.gz"
+MD5SUM="604807e7dd90fce00a4e2344ee29c76d"
+MAINTAINER="Alex Lysenka"
+EMAIL="me@alkos333.net"
+APPROVED="BP{k}"