network/ike: Fixed SlackBuild.
Install to /usr/lib64 on 64 bit. Thanks to George Vlahavas. Also i486 -> i586. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
20c29926dc
commit
9c3f9b435d
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for ike
|
||||
# Slackware build script for ike
|
||||
|
||||
# Copyright 2014 Vitor Borrego, Corroios, Portugal
|
||||
# Copyright 2016 Vitor Borrego, Corroios, Portugal
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -29,7 +29,7 @@ TAG=${TAG:-_SBo}
|
|||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
|
@ -54,7 +54,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -76,10 +76,11 @@ cmake \
|
|||
-DETCDIR=/etc \
|
||||
-DMANDIR=/usr/man \
|
||||
-DQTGUI=YES \
|
||||
-DNATT=YES
|
||||
-DNATT=YES \
|
||||
-DLIBDIR=/usr/lib$LIBDIRSUFFIX
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
ike: ike (Shrew Soft VPN Client for Linux and BSD)
|
||||
ike:
|
||||
ike: ike is an IPSec Client for FreeBSD, NetBSD and many Linux based
|
||||
ike: operating systems.
|
||||
ike: ike is an IPSec Client for FreeBSD, NetBSD and many Linux based
|
||||
ike: operating systems.
|
||||
ike:
|
||||
ike: Homepage: https://www.shrew.net/software
|
||||
ike:
|
||||
|
|
Loading…
Reference in New Issue