summaryrefslogtreecommitdiffstats
path: root/rules/opkg.in
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2011-04-28 16:13:23 -0500
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-04-29 09:53:14 +0200
commitb40381a2710fcb71c5509a934641fbb814a97863 (patch)
treee0625ceab149252e3b905f3a797c0f759fe56677 /rules/opkg.in
parent4cb72aa4b1757a9d735a1be087c20ff8fe03e06d (diff)
downloadptxdist-b40381a2710fcb71c5509a934641fbb814a97863.tar.gz
ptxdist-b40381a2710fcb71c5509a934641fbb814a97863.tar.xz
opkg: Added option to install config
/etc/opkg/opkg.conf can now be installed on the target. Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/opkg.in')
-rw-r--r--rules/opkg.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/rules/opkg.in b/rules/opkg.in
index bcff2098b..25412e1d3 100644
--- a/rules/opkg.in
+++ b/rules/opkg.in
@@ -51,4 +51,39 @@ config OPKG_GPG
help
FIXME
+config OPKG_OPKG_CONF
+ bool
+ prompt "install /etc/opkg/opkg.conf"
+ default y
+ help
+ Installs a generic /etc/opkg/opkg.conf file.
+
+ Important: To make opkg work at runtime, you must install this
+ configuration file. Without it you can't install new packages.
+
+if OPKG_OPKG_CONF
+
+config OPKG_OPKG_CONF_HOST
+ prompt "OPKG Update Site Host"
+ default "www.example.org"
+ string
+ help
+ Enter the hostname of your update site here. You can
+ use it as part of the opkg.conf URL below.
+
+config OPKG_OPKG_CONF_URL
+ string
+ prompt "OPKG Update Site URL"
+ default "src ptxdist http://${PTXCONF_OPKG_OPKG_CONF_HOST}/ptxdist/${PTXCONF_PROJECT}/dists/${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}"
+ help
+ This path is put into the /etc/opkg/opkg.conf file and specifies
+ where to find an OPKG packet feed.
+
+ Note: Keep the "src" in front of the URL, its required if the
+ URL should be used.
+
+ If you don't want to use this feature, keep the whole entry empty.
+
+endif
+
endif