summaryrefslogtreecommitdiff
path: root/unik-olsrd
diff options
context:
space:
mode:
Diffstat (limited to 'unik-olsrd')
-rw-r--r--unik-olsrd/files/olsrd.conf0
-rw-r--r--unik-olsrd/unik-olsrd_cvs.oe13
2 files changed, 10 insertions, 3 deletions
diff --git a/unik-olsrd/files/olsrd.conf b/unik-olsrd/files/olsrd.conf
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/unik-olsrd/files/olsrd.conf
diff --git a/unik-olsrd/unik-olsrd_cvs.oe b/unik-olsrd/unik-olsrd_cvs.oe
index d799aa82fc..bbe93001ce 100644
--- a/unik-olsrd/unik-olsrd_cvs.oe
+++ b/unik-olsrd/unik-olsrd_cvs.oe
@@ -8,21 +8,28 @@ LICENSE = "BSD"
PV = "cvs${CVSDATE}"
SRC_URI="cvs://anonymous@cvs.sourceforge.net/cvsroot/olsrd;module=olsrd-current \
- file://unik-olsrd"
+ file://unik-olsrd \
+ file://olsrd.conf"
PACKAGES =+ "unik-olsrd-libs"
FILES_unik-olsrd-libs = "${libdir}"
S = "${WORKDIR}/olsrd-current"
+inherit update-rc.d
+
+INITSCRIPT_NAME = "unik-olsrd"
+INITSCRIPT_PARAMS = "defaults"
+
do_compile() {
oe_runmake OS=linux clean all libs
}
do_install () {
oe_runmake INSTALL_PREFIX=${D} install install_libs
- install -d ${D}/etc/init.d
+ install -d ${D}/${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/unik-olsrd ${D}/${sysconfdir}/init.d
+ install -m 644 ${WORKDIR}/olsrd.conf ${D}/${sysconfdir}
}
-CONFFILES_${PN} = "/etc/olsrd.conf"
+CONFFILES_${PN} = "${sysconfdir}/olsrd.conf"