aboutsummaryrefslogtreecommitdiff
path: root/network/vpnc
diff options
context:
space:
mode:
authoralkos333 <me@alkos333.net>2010-05-11 22:25:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:25:57 +0200
commite0efafad9781021a58e75dca89ac2353ea1a2cd7 (patch)
treec6fbfb0a23ba47b28c435158967069479e908ec2 /network/vpnc
parent3e88e50826d92c6387333e8d4f385d4f044d26d4 (diff)
network/vpnc: Updated for version 0.5.1
Diffstat (limited to 'network/vpnc')
-rw-r--r--network/vpnc/doinst.sh2
-rw-r--r--network/vpnc/vpnc.SlackBuild16
2 files changed, 10 insertions, 8 deletions
diff --git a/network/vpnc/doinst.sh b/network/vpnc/doinst.sh
index 4be223a1c12f2..eafbd9e9b4ee5 100644
--- a/network/vpnc/doinst.sh
+++ b/network/vpnc/doinst.sh
@@ -1,5 +1,3 @@
-#!/bin/sh
-
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
diff --git a/network/vpnc/vpnc.SlackBuild b/network/vpnc/vpnc.SlackBuild
index 961e1a03ef7b5..645d6a51e0216 100644
--- a/network/vpnc/vpnc.SlackBuild
+++ b/network/vpnc/vpnc.SlackBuild
@@ -31,26 +31,27 @@
# (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 the SlackBuild Project.
-
-set -e
+# Modified by the SlackBuilds.org Project.
PRGNAM=vpnc
VERSION=0.5.1
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
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=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -60,6 +61,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Build with openssl support -- do NOT distribute binaries of this
+sed -i '/^#OPENSSL/s/^#//g' Makefile
+
make CFLAGS="$SLKCFLAGS"
make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man