summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-06-25 07:39:46 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-06-25 07:39:46 +0000
commit40b978626b9884ba8f821e702d34d437249d9762 (patch)
treee59fb2f06a8239260fd9ea3ca8ea3ac060853cc9
parentc83937635cbf7a31d01e6a4c31ddad8050f6bbb7 (diff)
olsrd: introduce MAJ_VER variable. Downloads are split into MAJ_VER directories.
-rw-r--r--packages/olsr/olsrd.inc3
-rw-r--r--packages/olsr/olsrd_0.4.8.bb3
-rw-r--r--packages/olsr/olsrd_0.5.3.bb3
3 files changed, 6 insertions, 3 deletions
diff --git a/packages/olsr/olsrd.inc b/packages/olsr/olsrd.inc
index 990d8a1678..e668f11847 100644
--- a/packages/olsr/olsrd.inc
+++ b/packages/olsr/olsrd.inc
@@ -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"
diff --git a/packages/olsr/olsrd_0.4.8.bb b/packages/olsr/olsrd_0.4.8.bb
index 98a6344fb7..c2b9c825b6 100644
--- a/packages/olsr/olsrd_0.4.8.bb
+++ b/packages/olsr/olsrd_0.4.8.bb
@@ -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"
diff --git a/packages/olsr/olsrd_0.5.3.bb b/packages/olsr/olsrd_0.5.3.bb
index 5bc448a126..34f20f64f8 100644
--- a/packages/olsr/olsrd_0.5.3.bb
+++ b/packages/olsr/olsrd_0.5.3.bb
@@ -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"