diff options
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg-collateral.bb')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg-collateral.bb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg-collateral.bb b/meta/recipes-devtools/opkg/opkg-collateral.bb new file mode 100644 index 0000000000..b121827ac7 --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg-collateral.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Constructs the main configuration file for opkg" | ||
2 | SECTION = "base" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | PR = "r2" | ||
6 | |||
7 | SRC_URI = "file://opkg.conf.comments \ | ||
8 | file://dest \ | ||
9 | file://src " | ||
10 | |||
11 | OPKGLIBDIR = "${localstatedir}/lib" | ||
12 | do_compile () { | ||
13 | cat ${WORKDIR}/opkg.conf.comments >${WORKDIR}/opkg.conf | ||
14 | cat ${WORKDIR}/src >>${WORKDIR}/opkg.conf | ||
15 | cat ${WORKDIR}/dest >>${WORKDIR}/opkg.conf | ||
16 | echo "lists_dir ext ${OPKGLIBDIR}/opkg" >>${WORKDIR}/opkg.conf | ||
17 | } | ||
18 | |||
19 | do_install () { | ||
20 | install -d ${D}${sysconfdir}/opkg | ||
21 | install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf | ||
22 | } | ||
23 | |||
24 | CONFFILES_${PN} = "${sysconfdir}/opkg/opkg.conf" | ||