Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Architecture-dependent configuration for opkg" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://code.google.com/p/opkg/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | LICENSE = "MIT" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | S = "${WORKDIR}" |
| 7 | |
| 8 | do_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 | |
| 23 | do_install () { |
| 24 | install -d ${D}${sysconfdir}/opkg |
| 25 | install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ |
| 26 | } |
| 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | FILES:${PN} = "${sysconfdir}/opkg/ " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | CONFFILES:${PN} += "${sysconfdir}/opkg/arch.conf" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 32 | RREPLACES:${PN} = "opkg-config-base" |
| 33 | RCONFLICTS:${PN} = "opkg-config-base" |
| 34 | RPROVIDES:${PN} = "opkg-config-base" |