]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
include "-profitbricks-$PB_FLAVOUR" in the package names and provide binary package...
authorHolger Levsen <holger@layer-acht.org>
Thu, 27 Oct 2011 13:47:27 +0000 (15:47 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 27 Oct 2011 13:47:27 +0000 (15:47 +0200)
build-oot.sh

index 6ac3ab01405f25ebb763621b5969800cdb5e73dc..16a6cc25c1cd020656b510e5fd690c656f11988f 100755 (executable)
@@ -49,18 +49,21 @@ cat > $TMPFILE << EOF
         apt-get -y install openssh-client linux-source-profitbricks-$PB_FLAVOUR $OOT_MODULE-source linux-image-profitbricks-$PB_FLAVOUR
         m-a unpack $OOT_MODULE
         cd /usr/src/
+        sed -i -s "s#_KVERS_#_KVERS_-profitbricks-$PB_FLAVOUR#g" modules/$OOT_MODULE/debian/control.modules.in
+        sed -i -s "s#^Provides: $OOT_MODULE-modules#Provides: $OOT_MODULE-modules, $OOT_MODULE-modules-profitbrick-$PB_FLAVOUR#g" modules/$OOT_MODULE/debian/control.modules.in
         tar xjf linux-source-*-$PB_FLAVOUR.tar.bz2
         KDIR=\$(find /usr/src -name "*profitbricks-$PB_FLAVOUR*" -type d)
         cd \$KDIR
         cp /boot/config-*-$PB_FLAVOUR .config
         make prepare
         make modules_prepare
-        m-a -k \$KDIR build $OOT_MODULE
+        m-a -k \$KDIR build --not-unpack $OOT_MODULE
         cd /usr/src/
         ls *deb
        # FIXME: this is soooo just wrong...
        scp -o "StrictHostKeyChecking no" -i /root/.ssh/id_rsa_jenkins *.deb reprepro@alexandria.profitbricks.localdomain:/srv/profitbricks-repository/incoming/$PB_SUITE/
 
+
 EOF
 cat $TMPFILE