diff options
author | Michael Lauer <mickey@vanille-media.de> | 2008-07-28 09:18:48 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2008-07-28 09:18:48 +0000 |
commit | fe282cdede0f3aa59e17c3e121161da7e478ec92 (patch) | |
tree | 15e9dcf988582b9294435251c8a6296581ed2a94 /packages/meta | |
parent | 00683f94833567c3b891ceabc4d371dbde59d28f (diff) |
distro-feed-configs: specify CONFFILES
Diffstat (limited to 'packages/meta')
-rw-r--r-- | packages/meta/distro-feed-configs.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/meta/distro-feed-configs.bb b/packages/meta/distro-feed-configs.bb new file mode 100644 index 0000000000..f30671d6d2 --- /dev/null +++ b/packages/meta/distro-feed-configs.bb @@ -0,0 +1,30 @@ +DESCRIPTION = "Configuration files for online package repositories aka feeds" +PR = "r0" + +DISTRO_FEED_PREFIX ?= "remote" +DISTRO_FEED_URI ?= "http://my-distribution.org/remote-feed/" + +do_compile() { + mkdir -p ${S}/${sysconfdir}/opkg + for feed in all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}; 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}" + +#def distro_feed_configs(d): +# import bb +# parchs = bb.data.getVar( "PACKAGE_EXTRA_ARCHS", d, 1 ).split() +# march = bb.data.getVar( "MACHINE_ARCH", d, 1 ).split() +# archs = [ "all" ] + parchs + march +# confs = [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in archs ] +# return " ".join( confs ) +# +#CONFFILES_${PN} += '${@distro_feed_configs(d)}' + +CONFFILES_${PN} += '${@ " ".join( [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in "all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".split() ] ) }' |