summaryrefslogtreecommitdiff
path: root/network/vpnc
diff options
context:
space:
mode:
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 4be223a1c1..eafbd9e9b4 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 961e1a03ef..645d6a51e0 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