Build tar archive of relevant OVS packages in correct order.
This commit is contained in:
+27
-14
@@ -7,7 +7,14 @@ set -u # exit on undefined variable
|
|||||||
|
|
||||||
kvers=`uname -r`
|
kvers=`uname -r`
|
||||||
ksrc=/lib/modules/$kvers/build
|
ksrc=/lib/modules/$kvers/build
|
||||||
ovs=openvswitch-1.4.0
|
dist=`lsb_release -is | tr [A-Z] [a-z]`
|
||||||
|
release=`lsb_release -rs`
|
||||||
|
arch=`uname -m`
|
||||||
|
if [ "$arch" = "i686" ]; then arch=i386; fi
|
||||||
|
if [ "$arch" = "x86_64" ]; then arch=amd64; fi
|
||||||
|
|
||||||
|
overs=1.4.0
|
||||||
|
ovs=openvswitch-$overs
|
||||||
ovstgz=$ovs.tar.gz
|
ovstgz=$ovs.tar.gz
|
||||||
ovsurl=http://openvswitch.org/releases/$ovstgz
|
ovsurl=http://openvswitch.org/releases/$ovstgz
|
||||||
|
|
||||||
@@ -52,20 +59,26 @@ echo "*** Building OVS datapath kernel module package"
|
|||||||
ln -sf _debian/openvswitch.tar.gz .
|
ln -sf _debian/openvswitch.tar.gz .
|
||||||
sudo make -f debian/rules.modules KSRC=$ksrc KVERS=$kvers binary-modules
|
sudo make -f debian/rules.modules KSRC=$ksrc KVERS=$kvers binary-modules
|
||||||
|
|
||||||
echo "*** User packages:"
|
echo "*** Built the following packages:"
|
||||||
ls -l ~/*openvswitch*deb
|
cd ~
|
||||||
|
ls -l *deb
|
||||||
|
|
||||||
echo "*** Kernel packages:"
|
archive=$ovs-core-$dist-$release-$arch.tar
|
||||||
ls -l /usr/src/*openvswitch*deb
|
ovsbase='common switch brcompat controller'
|
||||||
|
echo "*** Packing up dkml pki $ovsbase .debs into:"
|
||||||
|
echo " $archive"
|
||||||
|
dppkg=openvswitch-datapath-dkms_$overs*all.deb
|
||||||
|
pkipkg=openvswitch-pki_$overs*all.deb
|
||||||
|
pkgs="$dppkg $pkipkg"
|
||||||
|
for component in $ovsbase; do
|
||||||
|
deb=(openvswitch-${component}_$overs*$arch.deb)
|
||||||
|
pkgs="$pkgs $deb"
|
||||||
|
done
|
||||||
|
rm -rf $archive
|
||||||
|
tar cf $archive $pkgs
|
||||||
|
|
||||||
|
echo "*** Contents of archive $archive:"
|
||||||
|
tar tf $archive
|
||||||
|
|
||||||
echo "*** Done (hopefully)"
|
echo "*** Done (hopefully)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user