summaryrefslogtreecommitdiff
path: root/packages/angstrom
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-09-02 16:53:32 +0000
committerKoen Kooi <koen@openembedded.org>2007-09-02 16:53:32 +0000
commit747a799995975abcad47e1548dc00387767253a3 (patch)
treed569269fc96887d46ccc6959637f69eb54040f78 /packages/angstrom
parent218d94b201c33a417c093d338ca15585def8fa37 (diff)
angstrom-feed-configs: a recipe that add config files for feeds
* this will replace the feeds in the distro.conf * Derivative distro can provide their own version by overriding ANGSTROM_URI and FEED_BASEPATH * WIP, suggestions welcome
Diffstat (limited to 'packages/angstrom')
-rw-r--r--packages/angstrom/angstrom-feed-configs.bb23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/angstrom/angstrom-feed-configs.bb b/packages/angstrom/angstrom-feed-configs.bb
new file mode 100644
index 0000000000..7645ee61ec
--- /dev/null
+++ b/packages/angstrom/angstrom-feed-configs.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Configuration files for online package repositories aka feeds"
+
+PR = "0"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+FEED_BASEPATH ?= "unstable/feed/"
+
+do_compile() {
+ mkdir -p ${S}/${sysconfdir}/ipkg
+ for feed in base debug perl python gstreamer ; do
+ echo "src/gz ${feed} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${feed}" > ${S}/${sysconfdir}/ipkg/${feed}-feed.conf
+ done
+
+ echo "src/gz ${MACHINE_ARCH} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${MACHINE_ARCH}" > ${S}/${sysconfdir}/ipkg/${MACHINE_ARCH}-feed.conf
+ echo "src/gz no-arch ${ANGSTROM_URI}/${FEED_BASEPATH}/all" > ${S}/${sysconfdir}/ipkg/noarch-feed.conf
+}
+
+
+do_install () {
+ install -d ${D}${sysconfdir}/ipkg
+ install -m 0644 ${S}/${sysconfdir}/ipkg/* ${D}${sysconfdir}/ipkg/
+}
+