diff options
Diffstat (limited to 'network/vpnc/vpnc.SlackBuild')
-rw-r--r-- | network/vpnc/vpnc.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/network/vpnc/vpnc.SlackBuild b/network/vpnc/vpnc.SlackBuild index 834f4adc79..69be3f5727 100644 --- a/network/vpnc/vpnc.SlackBuild +++ b/network/vpnc/vpnc.SlackBuild @@ -32,9 +32,10 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Modified by the SlackBuilds.org Project. +# sources are from http://svn.unix-ag.uni-kl.de/vpnc/branches/vpnc-nortel PRGNAM=vpnc -VERSION=0.5.3 +VERSION=${VERSION:-r550} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,32 +72,32 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* 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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Build with openssl support -- do NOT distribute binaries of this sed -i '/^#OPENSSL/s/^#//g' Makefile -make CFLAGS="$SLKCFLAGS" DOCDIR=/usr/doc/$PRGNAM-$VERSION +export CFLAGS="$SLKCFLAGS" DOCDIR=/usr/doc/$PRGNAM-$VERSION +make PREFIX=/usr make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man DOCDIR=/usr/doc/$PRGNAM-$VERSION -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 +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 + # Let's not clobber config files mv $PKG/etc/vpnc/default.conf $PKG/etc/vpnc/default.conf.new mv $PKG/etc/vpnc/vpnc-script $PKG/etc/vpnc/vpnc-script.new -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; -) - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a VERSION README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |