diff options
author | Christopher Walker <kris240376@gmail.com> | 2011-12-15 23:09:12 -0600 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-12-18 00:07:51 -0200 |
commit | b54cd749f781ee166d7ff1c50befc8679b01ca06 (patch) | |
tree | e8d4ef8ae80647d072127cc63924c8f5bb234da2 /network/openvswitch | |
parent | 0cd84a0d10f19521a42f80e24a4f8716f8d57fc2 (diff) | |
download | slackbuilds-b54cd749f781ee166d7ff1c50befc8679b01ca06.tar.gz |
network/openvswitch: Updated for version 1.2.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/openvswitch')
-rw-r--r-- | network/openvswitch/openvswitch.SlackBuild | 61 | ||||
-rw-r--r-- | network/openvswitch/openvswitch.info | 8 | ||||
-rw-r--r-- | network/openvswitch/rc.openvswitch | 1 |
3 files changed, 28 insertions, 42 deletions
diff --git a/network/openvswitch/openvswitch.SlackBuild b/network/openvswitch/openvswitch.SlackBuild index 983b22507c..fd005df5cf 100644 --- a/network/openvswitch/openvswitch.SlackBuild +++ b/network/openvswitch/openvswitch.SlackBuild @@ -23,10 +23,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=openvswitch -VERSION=1.2.1 +VERSION=1.2.2 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -MODULEPATH=${MODULEPATH:-/lib/modules/`uname -r`} + +KERNEL=${KERNEL:-$(uname -r)} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -57,18 +58,6 @@ fi set -e -if [ ! -d $MODULEPATH ]; then - echo "Missing module path $MODULEPATH! Exiting script..." - exit -fi - -if [ ! -h $MODULEPATH/build ]; then - echo "Missing source patch $MODULEPATH/build! Exiting script..." - exit -fi - -KERNELPATH=$(readlink $MODULEPATH/build) - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -86,12 +75,13 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --with-l26=$KERNELPATH \ + --with-l26=/lib/modules/${KERNEL}/build \ --enable-ndebug \ - --enable-ssl + --enable-ssl \ + --build=$ARCH-slackware-linux make -make DESTDIR=$TMP/package-$PRGNAM install +make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -99,35 +89,30 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ 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 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{schema,xen} -install -m 644 AUTHORS COPYING ChangeLog CodingStyle INSTALL.KVM \ - INSTALL.Linux INSTALL.RHEL INSTALL.SSL INSTALL.XenServer INSTALL.bridge \ - INSTALL.userspace NOTICE PORTING README README-gcov REPORTING-BUGS \ - SubmittingPatches WHY-OVS \ - $PKG/usr/doc/$PRGNAM-$VERSION -install -m 644 $CWD/xen/vif-openvswitch $CWD/xen/network-openvswitch \ - $CWD/xen/README \ - $PKG/usr/doc/$PRGNAM-$VERSION/xen -install -m 644 vswitchd/vswitch.ovsschema \ - $PKG/usr/doc/$PRGNAM-$VERSION/schema -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG$MODULEPATH/kernel/extra/openvswitch +mkdir -p $PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch install -m 644 datapath/linux/openvswitch_mod.ko \ - $PKG$MODULEPATH/kernel/extra/openvswitch + $PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch install -m 644 datapath/linux/brcompat_mod.ko \ - $PKG$MODULEPATH/kernel/extra/openvswitch + $PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch -mkdir -p $PKG/etc/openvswitch +mkdir -p $PKG/etc/openvswitch $PKG/etc/rc.d $PKG/var/run/openvswitch +sed -e "s,@DOCDIR@,/usr/doc/$PRGNAM-$VERSION,g" $CWD/rc.openvswitch \ + > $PKG/etc/rc.d/rc.openvswitch.new +chmod 0755 $PKG/etc/rc.d/rc.openvswitch.new -mkdir -p $PKG/etc/rc.d -sed -e "s/@DOCDIR@/\/usr\/doc\/$PRGNAM-$VERSION/g" $CWD/rc.openvswitch > $PKG/etc/rc.d/rc.openvswitch.new +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{schema,xen} +cp -a \ + AUTHORS COPYING ChangeLog CodingStyle INSTALL* NOTICE PORTING README* \ + REPORTING-BUGS SubmittingPatches WHY-OVS \ + $PKG/usr/doc/$PRGNAM-$VERSION +cp -a vswitchd/vswitch.ovsschema $PKG/usr/doc/$PRGNAM-$VERSION/schema +cp $CWD/xen/vif-openvswitch $CWD/xen/network-openvswitch $CWD/xen/README \ + $PKG/usr/doc/$PRGNAM-$VERSION/xen +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -mkdir -p $PKG/var/run/openvswitch - cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/openvswitch/openvswitch.info b/network/openvswitch/openvswitch.info index f86ac98420..e94788f53e 100644 --- a/network/openvswitch/openvswitch.info +++ b/network/openvswitch/openvswitch.info @@ -1,10 +1,10 @@ PRGNAM="openvswitch" -VERSION="1.2.1" +VERSION="1.2.2" HOMEPAGE="http://openvswitch.org" -DOWNLOAD="http://openvswitch.org/releases/openvswitch-1.2.1.tar.gz" -MD5SUM="30a776b96ca35794613361cfe6751c9c" +DOWNLOAD="http://openvswitch.org/releases/openvswitch-1.2.2.tar.gz" +MD5SUM="2b15a7fdb4d09a0b06b6886c86145a37" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Christopher Walker" EMAIL="kris240376@gmail.com" -APPROVED="dsomero" +APPROVED="rworkman" diff --git a/network/openvswitch/rc.openvswitch b/network/openvswitch/rc.openvswitch index 5e0f3d561a..21ed6379cb 100644 --- a/network/openvswitch/rc.openvswitch +++ b/network/openvswitch/rc.openvswitch @@ -61,6 +61,7 @@ case "$1" in ;; 'restart') openvswitch_stop + sleep 1 openvswitch_start ;; *) |