Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / unik-olsrd / unik-olsrd_cvs.oe
1 DESCRIPTION = "OLSR mesh routing daemon"
2 HOMEPAGE = "http://www.olsr.org"
3 DESCRIPTION_unik-olsrd-libs = "OLSR mesh routing daemon -  optional libraries"
4 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
5 SECTION = "console/network"
6 PRIORITY = "optional"
7 LICENSE = "BSD"
8 PV = "cvs${CVSDATE}"
9
10 SRC_URI="cvs://anonymous@cvs.sourceforge.net/cvsroot/olsrd;module=olsrd-current \
11         file://unik-olsrd \
12         file://olsrd.conf"
13
14 PACKAGES =+ "unik-olsrd-libs"
15 FILES_unik-olsrd-libs = "${libdir}"
16
17 S = "${WORKDIR}/olsrd-current"
18
19 inherit update-rc.d
20
21 INITSCRIPT_NAME = "unik-olsrd"
22 INITSCRIPT_PARAMS = "defaults"
23
24 do_compile() {
25         oe_runmake OS=linux clean all libs
26 }
27
28 do_install () {
29         oe_runmake INSTALL_PREFIX=${D} install install_libs
30         install -d ${D}/${sysconfdir}/init.d
31         install -m 0755 ${WORKDIR}/unik-olsrd ${D}/${sysconfdir}/init.d
32         install -m 644 ${WORKDIR}/olsrd.conf ${D}/${sysconfdir}
33 }
34
35 CONFFILES_${PN} = "${sysconfdir}/olsrd.conf"