diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-01-23 15:28:44 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-01-23 15:28:44 -0600 |
commit | df9ca01f5b88d0a4244738e0f308fa8b5635dc92 (patch) | |
tree | e46998537e96774bbb6697e94ffbbae5bae1f595 /recipes-core/mlinux/mlinux-feed-configs.bb | |
parent | 10e9058fcd1f0e7050848945c183528aadae8db0 (diff) | |
download | meta-mlinux-df9ca01f5b88d0a4244738e0f308fa8b5635dc92.tar.gz meta-mlinux-df9ca01f5b88d0a4244738e0f308fa8b5635dc92.tar.bz2 meta-mlinux-df9ca01f5b88d0a4244738e0f308fa8b5635dc92.zip |
recipes-core/mlinux: add mlinux-feed-configs
Diffstat (limited to 'recipes-core/mlinux/mlinux-feed-configs.bb')
-rw-r--r-- | recipes-core/mlinux/mlinux-feed-configs.bb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-core/mlinux/mlinux-feed-configs.bb b/recipes-core/mlinux/mlinux-feed-configs.bb new file mode 100644 index 0000000..2bd9bfc --- /dev/null +++ b/recipes-core/mlinux/mlinux-feed-configs.bb @@ -0,0 +1,23 @@ +SUMMARY = "Configuration files for online package repositories aka feeds" +PR = "r0" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +DISTRO_FEED_PREFIX ?= "remote" +DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/" +feeds="all ${TUNE_PKGARCH} ${MACHINE_ARCH}" + +do_compile() { + mkdir -p ${S}/${sysconfdir}/opkg + for feed in ${feeds}; do + echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf + done +} +do_install () { + install -d ${D}${sysconfdir}/opkg + install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +CONFFILES_${PN} += '${@ " ".join( [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in "${feeds}".split() ] ) }' |