summaryrefslogtreecommitdiff
path: root/packages/angstrom
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-11-27 14:27:09 +0100
committerKoen Kooi <koen@openembedded.org>2008-11-27 14:27:09 +0100
commitbb668b9e99edea043a0c321109d76ca16c5e453f (patch)
tree8e4e21045a52f2dfc8632307c51a6f960d890972 /packages/angstrom
parent9c46ce7b5a5fa267296296026145f58cb143d2b2 (diff)
angstrom feed configs: generate config files for locale feeds as well
Diffstat (limited to 'packages/angstrom')
-rw-r--r--packages/angstrom/angstrom-feed-configs.bb23
1 files changed, 21 insertions, 2 deletions
diff --git a/packages/angstrom/angstrom-feed-configs.bb b/packages/angstrom/angstrom-feed-configs.bb
index fc6c9c59ce..c5dd8370b3 100644
--- a/packages/angstrom/angstrom-feed-configs.bb
+++ b/packages/angstrom/angstrom-feed-configs.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Configuration files for online package repositories aka feeds"
#PV = "${DISTRO_VERSION}"
-PR = "r6"
+PR = "r7"
PACKAGE_ARCH = "${MACHINE_ARCH}"
FEED_BASEPATH ?= "unstable/feed/"
@@ -21,14 +21,28 @@ do_compile() {
if [ "${IWMMXT_FEED}" = "iwmmxt" ] ; then
echo "src/gz iwmmxt ${ANGSTROM_URI}/${FEED_BASEPATH}iwmmxt/base" > ${S}/${sysconfdir}/opkg/iwmmxt-feed.conf
fi
+
+
+ for localepkg in a af am an ang ar as ast ay az be bg bn br bs byn ca co crh cs csb cy da de dv dz el en eo es et eu fa ff fi fo fr fur fy ga gd gez gl gn gu gv ha haw he hi hr hsb ht hu hy ia id ig io is it iu iw ja ka kk kl km kn ko kok ks ku kw ky la lg li lo locale lt lv mai mg mi mk ml mn mr ms mt mvo my nb ne nl nn no nr nso oc om or pa pap pis pl ps pt qu ro ru rw sa sd se si sid sk sl so sp sq sr ss st sv sw syr ta te tet tg th ti tig tk tl tn tpi tr ts tt ug uk ur uz ve vi wa wal wo xh yi yo zh zu ; do
+ echo "src/gz locale-${localepkg}-feed ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/locales/${localepkg}" > ${S}/${sysconfdir}/opkg/locale-${localepkg}-feed.conf
+ done
}
do_install () {
- install -d ${D}${sysconfdir}/opkg
+ install -d ${D}${sysconfdir}/opkg
install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
}
+FILES_${PN} = "${sysconfdir}/opkg/base-feed.conf \
+ ${sysconfdir}/opkg/debug-feed.conf \
+ ${sysconfdir}/opkg/perl-feed.conf \
+ ${sysconfdir}/opkg/python-feed.conf \
+ ${sysconfdir}/opkg/gstreamer-feed.conf \
+ ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
+ ${sysconfdir}/opkg/noarch-feed.conf \
+ "
+
CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
${sysconfdir}/opkg/debug-feed.conf \
${sysconfdir}/opkg/perl-feed.conf \
@@ -38,3 +52,8 @@ CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
${sysconfdir}/opkg/noarch-feed.conf \
"
+python populate_packages_prepend () {
+ etcdir = bb.data.expand('${sysconfdir}/opkg', d)
+ do_split_packages(d, etcdir, '^locale-(.*)\.conf$', 'angstrom-locale-%s-config', 'Angstrom feed config for the %s locale', extra_depends='', allow_links=True)
+}
+