blob: dc17de2e8e6074acf60766bdf31626c19aa3c251 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Architecture-dependent configuration for opkg"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002HOMEPAGE = "http://code.google.com/p/opkg/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003LICENSE = "MIT"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004PACKAGE_ARCH = "${MACHINE_ARCH}"
5PR = "r1"
6
7S = "${WORKDIR}"
8
9do_compile() {
10 mkdir -p ${S}/${sysconfdir}/opkg/
11
12 archconf=${S}/${sysconfdir}/opkg/arch.conf
13
14 rm -f $archconf
15 ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
16 priority=1
17 for arch in $ipkgarchs; do
18 echo "arch $arch $priority" >> $archconf
19 priority=$(expr $priority + 5)
20 done
21}
22
23
24do_install () {
25 install -d ${D}${sysconfdir}/opkg
26 install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
27}
28
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN} = "${sysconfdir}/opkg/ "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Patrick Williams213cb262021-08-07 19:21:33 -050031CONFFILES:${PN} += "${sysconfdir}/opkg/arch.conf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
Patrick Williams213cb262021-08-07 19:21:33 -050033RREPLACES:${PN} = "opkg-config-base"
34RCONFLICTS:${PN} = "opkg-config-base"
35RPROVIDES:${PN} = "opkg-config-base"