blob: 0c2dbc9e32af674b89971db7ab85382953b7e2bf [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
29FILES_${PN} = "${sysconfdir}/opkg/ "
30
31CONFFILES_${PN} += "${sysconfdir}/opkg/arch.conf"
32
33RREPLACES_${PN} = "opkg-config-base"
34RCONFLICTS_${PN} = "opkg-config-base"
35RPROVIDES_${PN} = "opkg-config-base"