summaryrefslogtreecommitdiff
path: root/network/vpnc/vpnc.SlackBuild
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/vpnc.SlackBuild
parent3e88e50826d92c6387333e8d4f385d4f044d26d4 (diff)
downloadslackbuilds-e0efafad9781021a58e75dca89ac2353ea1a2cd7.tar.gz
network/vpnc: Updated for version 0.5.1
Diffstat (limited to 'network/vpnc/vpnc.SlackBuild')
-rw-r--r--network/vpnc/vpnc.SlackBuild16
1 files changed, 10 insertions, 6 deletions
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