summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJulian_chu <julian_chu@openmoko.com>2008-06-06 23:15:40 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2008-10-26 15:52:16 +0100
commitac6c0948f9d9bd9710dc0a792b69ed8b74dd0559 (patch)
tree114901cde353787003bb2e12f4776e5ce1cf1189 /packages
parent6e6930655d7f56a9fc6dd754b55ee2dbd2ff27df (diff)
[openmoko] add Openmoko community repository bbfile.
It create a configure file in rootfs for opkg.
Diffstat (limited to 'packages')
-rw-r--r--packages/openmoko-projects/openmoko-community-repository.bb21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/openmoko-projects/openmoko-community-repository.bb b/packages/openmoko-projects/openmoko-community-repository.bb
new file mode 100644
index 0000000000..ca3ffc4fae
--- /dev/null
+++ b/packages/openmoko-projects/openmoko-community-repository.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Configuration files for online package repositories of Openmoko community repository feeds"
+PR = "r0"
+
+do_compile() {
+ mkdir -p ${S}/${sysconfdir}/opkg
+ for feed in community-repository; do
+ echo "src/gz daily-${feed} ${OPENMOKO_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} += "${sysconfdir}/opkg/community-repository-feed.conf"
+
+PKG_TAGS_${PN} = "group::repos"
+
+OPENMOKO_URI = "http://downloads.openmoko.org"