[luci] Adding new themes and applications folders to Kamikaze ../feeds/

Steven Barth steven
Thu Mar 12 16:38:24 CET 2009


Hey Paul,
you cannot add your changes like this to LuCI as the feed only holds the
Makefiles.

If you want to build a custom LuCI build, you have to setup a custom OpenWrt

feed like this:

Create a directory e.g. /home/you/myfeed somewhere on your harddrive with
the
contents of "contrib/package" from the LuCI repository.

Then you should have a directory myfeed/luci with the OpenWrt Makefile in
it.
If you add custom themes / apps etc. change this Makefile, this will be the
one
used by your OpenWrt buildroot.

Still inside myfeed/luci do a full checkout of luci so that the structure
looks like this:

myfeed/luci/Makefile            <- The Makefile from contrib/package/luci/
myfeed/luci/luci/applications    <- LuCI checkout
myfeed/luci/luci/libs
myfeed/luci/luci/themes
myfeed/luci/luci/...

myfeed/luci/luci can also be a symlink with an absoluzte path to an existing

LuCI checkout.

Then adapt the first lines of the myfeed/luci/Makefile to this:



include $(TOPDIR)/rules.mk

PKG_BRANCH:=

PKG_NAME:=luci
PKG_RELEASE:=1
PKG_VERSION:=0.9+svn
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

PKG_BUILD_DEPENDS:=libnotimpl
LUA_TARGET:=source
PKG_SELECTED_MODULES:=


include $(INCLUDE_DIR)/package.mk

define Build/Prepare
        mkdir -p $(PKG_BUILD_DIR)
        cp -r ./luci/* $(PKG_BUILD_DIR)
        $(call Build/Prepare/Default)
endef

define Build/Configure
endef

### Templates ###



Then go to your OpenWrt buildroot and remove the LuCI feed from your
feeds.conf and add a line like this instead:
src-link myfeed /home/you/myfeed

Do ./scripts/feeds update -a and make menuconfig.
That's it.

Be aware that OpenWrt may not changes in your tree, so do a: make
package/luci/clean when you do any changes.

If you want to see a real-world example of such a custom feed have a look
at:
http://trac.fonosfera.org/fon-ng/browser/trunk/fon
http://trac.fonosfera.org/fon-ng/browser/trunk/openwrt



regards
Cyrus


More information about the luci mailing list