midori: add 0.2.4
[openembedded.git] / recipes / olsrd / olsrd.inc
blob7fd25c23dd54e679baa00b5d297443b383a58529
1 DESCRIPTION = "OLSR mesh routing daemon"
2 HOMEPAGE = "http://www.olsr.org"
3 SECTION = "console/network"
4 PRIORITY = "optional"
5 LICENSE = "BSD"
7 MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
8 SRC_URI = "http://www.olsr.org/releases/${MAJ_VER}/olsrd-${PV}.tar.bz2 \
9         file://init \
10         file://olsrd.conf"
12 S = "${WORKDIR}/olsrd-${PV}"
14 inherit update-rc.d
16 INITSCRIPT_NAME = "olsrd"
17 INITSCRIPT_PARAMS = "defaults"
18 EXTRA_OEMAKE = "MAKEFLAGS=-I${WORKDIR}/olsrd-${PV}"
20 do_configure() {
21         oe_runmake OS=linux clean
24 do_compile() {
25   oe_runmake OS=linux clean
26   touch .depend
27   touch src/cfgparser/.depend
28   oe_runmake OS=linux all libs
31 do_install () {
32         oe_runmake OS=linux INSTALL_PREFIX=${D} STRIP=echo install install_libs
34         install -d ${D}/${sysconfdir}/init.d
35         install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/olsrd
36         install -m 644 ${WORKDIR}/olsrd.conf ${D}/${sysconfdir}
39 PACKAGES =+ "\
40   olsrd-plugin-dyngw \
41   olsrd-plugin-dyngw-plain \
42   olsrd-plugin-httpinfo \
43   olsrd-plugin-nameservice \
44   olsrd-plugin-quagga \
45   olsrd-plugin-tas \
46   olsrd-plugin-pgraph \
47   olsrd-plugin-bmf \
48   olsrd-plugin-txtinfo \
49   olsrd-plugin-arprefresh \
50   olsrd-plugin-secure \
51   olsrd-plugin-dotdraw \
52   olsrd-plugin-mini \
53   "
55 FILES_olsrd-plugin-dyngw = "${libdir}/${PN}_dyn_gw.so.*"
56 FILES_olsrd-plugin-dyngw-plain = "${libdir}/${PN}_dyn_gw_plain.so.*"
57 FILES_olsrd-plugin-httpinfo = "${libdir}/${PN}_httpinfo.so.*"
58 FILES_olsrd-plugin-nameservice = "${libdir}/${PN}_nameservice.so.*"
59 FILES_olsrd-plugin-quagga = "${libdir}/${PN}_quagga.so.*"
60 FILES_olsrd-plugin-tas = "${libdir}/${PN}_tas.so.*"
61 FILES_olsrd-plugin-pgraph = "${libdir}/${PN}_pgraph.so.*"
62 FILES_olsrd-plugin-bmf = "${libdir}/${PN}_bmf.so.*"
63 FILES_olsrd-plugin-txtinfo = "${libdir}/${PN}_txtinfo.so.*"
64 FILES_olsrd-plugin-arprefresh = "${libdir}/${PN}_arprefresh.so.*"
65 FILES_olsrd-plugin-dotdraw = "${libdir}/${PN}_dot_draw.so.*"
66 FILES_olsrd-plugin-secure = "${libdir}/${PN}_secure.so.*"
67 FILES_olsrd-plugin-mini = "${libdir}/${PN}_mini.so.*"
69 CONFFILES_${PN} = "${sysconfdir}/olsrd.conf"