diff options
author | Markus Hutmacher <mailing@markhu.de> | 2013-12-02 16:25:33 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2013-12-02 16:25:33 +0700 |
commit | 7132483fc0e03c0ff8f804c5549b0ab339e04072 (patch) | |
tree | 066b0deded7a95c9b577d6dbce984c495c75e093 /network/strongswan/strongswan.SlackBuild | |
parent | bbe7c82b1cef2386ac8731dd3f6e49c50e46a616 (diff) |
network/strongswan: Updated for version 5.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/strongswan/strongswan.SlackBuild')
-rw-r--r-- | network/strongswan/strongswan.SlackBuild | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/network/strongswan/strongswan.SlackBuild b/network/strongswan/strongswan.SlackBuild index 42761f9cf4eaf..075b37e7a5b08 100644 --- a/network/strongswan/strongswan.SlackBuild +++ b/network/strongswan/strongswan.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh -# Copyright 2009-2010, Jonathan Larsen (agentc0re), SLC, UT -# Contact Info: agentc0re 'AT' learnix 'DOT' net +# Copyright 2009-2013, Jonathan Larsen (agentc0re), SLC, UT +# Copyright 2013, Markus Hutmacher, mailing@markhu.de # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # PRGNAM=strongswan -VERSION=4.3.5 +VERSION=5.1.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,10 +64,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -78,7 +78,6 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --enable-cisco-quirks \ --enable-shared \ --disable-static \ --build=$ARCH-slackware-linux @@ -86,14 +85,11 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 -( 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 -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done # Don't clobber existing config files mv $PKG/etc/ipsec.conf $PKG/etc/ipsec.conf.new @@ -102,7 +98,7 @@ mv $PKG/etc/strongswan.conf $PKG/etc/strongswan.conf.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION cp -a \ - COPYING CREDITS ChangeLog INSTALL NEWS README TODO \ + AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |