network/vpnc: Fixed for bash4.

This commit is contained in:
David Somero 2010-05-19 02:46:23 -04:00
parent 404ed90343
commit 2263b02abb

View file

@ -72,12 +72,8 @@ sed -i '/^#OPENSSL/s/^#//g' Makefile
make CFLAGS="$SLKCFLAGS" DOCDIR=/usr/doc/$PRGNAM-$VERSION
make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man DOCDIR=/usr/doc/$PRGNAM-$VERSION
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Let's not clobber config files
mv $PKG/etc/vpnc/default.conf $PKG/etc/vpnc/default.conf.new