Permalink
Browse files

recipes-misc: Add internal and external feed repo configs

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
  • Loading branch information...
1 parent bce2eb7 commit 0794d34cf7e3f94015e4811c9da15f0dc63ff0ca @Stefan-Schmidt Stefan-Schmidt committed Nov 30, 2011
Showing with 58 additions and 0 deletions.
  1. +29 −0 recipes-misc/dauber-feed-configs.bb
  2. +29 −0 recipes-misc/repo-feed-configs.bb
@@ -0,0 +1,29 @@
+DESCRIPTION = "Configuration files for online package repositories aka feeds"
+
+PR = "r0"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+FEED_BASEPATH = "buildbot/trunk/incremental/feeds/"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+do_compile() {
+ mkdir -p ${S}/${sysconfdir}/opkg
+
+ for feed in all armv7a bug20 ; do
+ echo "src/gz dauber-${feed} http://dauber/${FEED_BASEPATH}${feed}" > ${S}/${sysconfdir}/opkg/dauber-${feed}-feed.conf
+ done
+}
+
+
+do_install () {
+ install -d ${D}${sysconfdir}/opkg
+ install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
+}
+
+FILES_${PN} = "${sysconfdir}/opkg/"
+
+CONFFILES_${PN} += "${sysconfdir}/opkg/dauber-all-feed.conf \
+ ${sysconfdir}/opkg/dauber-armv7a-feed.conf \
+ ${sysconfdir}/opkg/dauber-bug20-feed.conf"
@@ -0,0 +1,29 @@
+DESCRIPTION = "Configuration files for public online package repositories aka feeds."
+HOMEPAGE="http://repo.buglabs.net/"
+PR = "r1"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+FEED_BASEPATH = "2.0/"
+
+do_compile() {
+ mkdir -p ${S}/${sysconfdir}/opkg
+
+ for feed in all armv7a bug20 ; do
+ echo "src/gz repo-${feed} http://repo.buglabs.net/${FEED_BASEPATH}${feed}" > ${S}/${sysconfdir}/opkg/repo-${feed}-feed.conf
+ done
+}
+
+
+do_install () {
+ install -d ${D}${sysconfdir}/opkg
+ install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
+}
+
+FILES_${PN} = "${sysconfdir}/opkg/"
+
+CONFFILES_${PN} += "${sysconfdir}/opkg/repo-all-feed.conf \
+ ${sysconfdir}/opkg/repo-armv7a-feed.conf \
+ ${sysconfdir}/opkg/repo-bug20-feed.conf"

0 comments on commit 0794d34

Please sign in to comment.