summaryrefslogtreecommitdiff
path: root/network/strongswan
diff options
context:
space:
mode:
Diffstat (limited to 'network/strongswan')
-rw-r--r--network/strongswan/strongswan.SlackBuild17
-rw-r--r--network/strongswan/strongswan.info12
2 files changed, 19 insertions, 10 deletions
diff --git a/network/strongswan/strongswan.SlackBuild b/network/strongswan/strongswan.SlackBuild
index 2e706d6689..38ce727f4c 100644
--- a/network/strongswan/strongswan.SlackBuild
+++ b/network/strongswan/strongswan.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2009, Jonathan Larsen (agentc0re), SLC, UT
+# Copyright 2009-2010, Jonathan Larsen (agentc0re), SLC, UT
# Contact Info: agentc0re 'AT' learnix 'DOT' net
# All rights reserved.
#
@@ -20,9 +20,10 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
PRGNAM=strongswan
-VERSION=4.2.14
+VERSION=4.3.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -34,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -59,6 +63,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -75,10 +80,11 @@ make install DESTDIR=$PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
)
( cd $PKG/usr/man
+ rm man8/starter*
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
@@ -90,12 +96,13 @@ mv $PKG/etc/strongswan.conf $PKG/etc/strongswan.conf.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO \
+ COPYING CREDITS ChangeLog INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/strongswan/strongswan.info b/network/strongswan/strongswan.info
index 9d2e6fae0c..3799513be5 100644
--- a/network/strongswan/strongswan.info
+++ b/network/strongswan/strongswan.info
@@ -1,8 +1,10 @@
PRGNAM="strongswan"
-VERSION="4.2.14"
+VERSION="4.3.5"
HOMEPAGE="http://www.strongswan.org/index.htm"
-DOWNLOAD="http://download.strongswan.org/strongswan-4.2.14.tar.bz2"
-MD5SUM="8aaa5604e2093db07520d6ba50bef931"
-MAINTAINER="Jonathan Larsen (agentc0re)"
+DOWNLOAD="http://download.strongswan.org/strongswan-4.3.5.tar.bz2"
+MD5SUM="b2dd705561d402373149873e20a1e04f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Jonathan Larsen"
EMAIL="agentc0re@learnix.net"
-APPROVED="rworkman"
+APPROVED="dsomero"