blob: dfd66a1168917bd9476fcc25184db2cbc8aa0470 [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}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
6S = "${WORKDIR}"
7
8do_compile() {
9 mkdir -p ${S}/${sysconfdir}/opkg/
10
11 archconf=${S}/${sysconfdir}/opkg/arch.conf
12
13 rm -f $archconf
14 ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
15 priority=1
16 for arch in $ipkgarchs; do
17 echo "arch $arch $priority" >> $archconf
18 priority=$(expr $priority + 5)
19 done
20}
21
22
23do_install () {
24 install -d ${D}${sysconfdir}/opkg
25 install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
26}
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN} = "${sysconfdir}/opkg/ "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Patrick Williams213cb262021-08-07 19:21:33 -050030CONFFILES:${PN} += "${sysconfdir}/opkg/arch.conf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
Patrick Williams213cb262021-08-07 19:21:33 -050032RREPLACES:${PN} = "opkg-config-base"
33RCONFLICTS:${PN} = "opkg-config-base"
34RPROVIDES:${PN} = "opkg-config-base"