packagegroups: make package manager selection and feed configuration more modular
[opendreambox.git] / meta-opendreambox / recipes-core / distro-feed-configs / distro-feed-configs.inc
1 DESCRIPTION = "Configuration files for online package repositories aka feeds (${PKGTYPE} version)"
2 LICENSE = "MIT"
3 LIC_FILES_CHKSUM = "file://${OPENDREAMBOX_BASE}/LICENSE;md5=ed920ea8b6701825484d079e87a3a73a"
4
5 DISTRO_FEED_PREFIX ?= "remote"
6 DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/"
7
8 FEED_ARCHS = "all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}"
9
10 do_compile_prepend() {
11     install -d ${S}${PKGCONFDIR}
12 }
13 do_install() {
14     install -d ${D}${PKGCONFDIR}
15     install -m 0644 ${S}${PKGCONFDIR}/*-feed.${PKGCONFSUFFIX} ${D}${PKGCONFDIR}
16 }
17
18 PACKAGE_ARCH = "${MACHINE_ARCH}"
19
20 CONFFILES_${PN} += '${@" ".join([("${PKGCONFDIR}/%s-feed.${PKGCONFSUFFIX}" % feed) for feed in "${FEED_ARCHS}".split()])}'
21
22 RPROVIDES_${PN} = "distro-feed-configs"
23 RCONFLICTS_${PN} = "distro-feed-configs"