diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2010-08-14 17:20:11 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2010-08-14 17:20:11 -0400 |
commit | 5e8f7414032896add09e7c7a3fc29a90c881dbca (patch) | |
tree | 24d02435f924a23b25e062c2a59144e0db2027bb /network/vde2/vde2.SlackBuild | |
parent | 9a7e1ddb87ca0f4836ac8cfffd6cdbb67b749f02 (diff) | |
download | slackbuilds-5e8f7414032896add09e7c7a3fc29a90c881dbca.tar.gz |
network/vde2: Updated for version 2.3.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/vde2/vde2.SlackBuild')
-rw-r--r-- | network/vde2/vde2.SlackBuild | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/network/vde2/vde2.SlackBuild b/network/vde2/vde2.SlackBuild index 874729f52e..25cc9dfc38 100644 --- a/network/vde2/vde2.SlackBuild +++ b/network/vde2/vde2.SlackBuild @@ -25,7 +25,7 @@ # Modified by Antonio Hernández Blas <hba.nihilismus@gmail.com> PRGNAM=vde2 -VERSION=2.2.3 +VERSION=2.3.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,6 +69,17 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +EXPERIMENTAL=${EXPERIMENTAL:-false} +OPTIONS="" + +if [ "$EXPERIMENTAL" = "true" ]; then + OPTIONS+="--enable-experimental" +fi + +# This seems like a not yet implemented feature so this is just +# a reminder: +# --enable-kernel-switch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -80,6 +91,7 @@ CXXFLAGS="$SLKCFLAGS" \ --datadir=/usr/share \ --enable-shared=yes \ --disable-static \ + $OPTIONS \ --build=$ARCH-slackware-linux make all @@ -97,11 +109,23 @@ rm -f $PKG/usr/doc/$PRGNAM-$VERSION/doc/Makefile* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/etc/rc.d -install -m 0755 $CWD/rc.vde2 $PKG/etc/rc.d/rc.vde2.new +install -m 0755 $CWD/rc.vde2 $PKG/etc/rc.d/rc.vde2 mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# Add .new extension to all configuration files. +for file in $(find $PKG/etc -type f) +do + mv $file $file.new +done + +# Add *.new files into doinst.sh +for file in $(find $PKG/etc -type f -name "*.new") +do + echo config $(echo $file | sed "s:$PKG/::") >> $PKG/install/doinst.sh +done + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |