diff options
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} |