network/vpnc: Initial import

This commit is contained in:
Alex Lysenka 2010-05-11 15:01:38 +02:00 committed by Michiel van Wessem
parent 724ae3f893
commit 66ef2d297e
4 changed files with 90 additions and 0 deletions

11
network/vpnc/README Normal file
View file

@ -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.

12
network/vpnc/slack-desc Normal file
View file

@ -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:

View file

@ -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

8
network/vpnc/vpnc.info Normal file
View file

@ -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}"