olsrd: introduce MAJ_VER variable. Downloads are split into MAJ_VER directories.
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Wed, 25 Jun 2008 07:39:46 +0000 (07:39 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Wed, 25 Jun 2008 07:39:46 +0000 (07:39 +0000)
packages/olsr/olsrd.inc
packages/olsr/olsrd_0.4.8.bb
packages/olsr/olsrd_0.5.3.bb

index 990d8a1..e668f11 100644 (file)
@@ -5,7 +5,8 @@ SECTION = "console/network"
 PRIORITY = "optional"
 LICENSE = "BSD"
 
-SRC_URI="http://www.olsr.org/releases/0.4/olsrd-${PV}.tar.bz2 \
+MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
+SRC_URI="http://www.olsr.org/releases/${MAJ_VER}/olsrd-${PV}.tar.bz2 \
        file://init \
        file://olsrd.conf"
 
index 98a6344..c2b9c82 100644 (file)
@@ -5,7 +5,8 @@ SECTION = "console/network"
 PRIORITY = "optional"
 LICENSE = "BSD"
 
-SRC_URI="http://www.olsr.org/releases/0.4/olsrd-${PV}.tar.bz2 \
+MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
+SRC_URI="http://www.olsr.org/releases/${MAJ_VER}/olsrd-${PV}.tar.bz2 \
        file://init \
        file://olsrd.conf"
 
index 5bc448a..34f20f6 100644 (file)
@@ -1,7 +1,8 @@
 require olsrd.inc
+
 PR = "r0"
 
-SRC_URI="http://www.olsr.org/releases/0.5/olsrd-${PV}.tar.bz2 \
+SRC_URI="http://www.olsr.org/releases/${MAJ_VER}/olsrd-${PV}.tar.bz2 \
         file://init \
         file://olsrd.conf \
         file://unbreak-makefile.patch;patch=1"