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

Paul dubliner paul.dubliner at gmail.com
Fri Mar 13 16:03:32 CET 2009


Hi Cyrus -

Appreciate the detailed instructions - have been following them here, but
its not working - tried a few things, such as repeating the clean etc -
deleted all previous feeds for the 'luci' that was using the online
repository etc -  I have included some information below, was wondering if
you had any suggestions on  the approach to take to debug this - by the way,
the Host machine is  running Debian 4 (Etch) - maybe I should start over
with a fresh OpenWrt install?

Thanks

Paul


a] should I expect to see a luci package in the ../buid_dev/target..../
folder or maybe somewhere in ../bin/packages?

b] how can I verify that this has worked before burning to flash on the
target?

c] the Administration option is now missing from the menuconfig - is this
correct?

d] after running the feeds update script, should I do an install? I can
verify the following in the feeds folder (my local repository is now
'/home/group/paulluci'):

software1170:/home/group/kamikaze-trunk/feeds# ls -l
total 20
drwxr-xr-x 15 root root 4096 2009-02-25 13:38 packages
lrwxrwxrwx  1 root root   25 2009-03-13 11:20 packages.index ->
packages.tmp/.packageinfo
drwxr-xr-x  3 root root 4096 2009-03-13 11:20 packages.tmp
lrwxrwxrwx  1 root root   20 2009-03-13 11:20 paulluci ->
/home/group/paulluci
lrwxrwxrwx  1 root root   25 2009-03-13 11:20 paulluci.index ->
paulluci.tmp/.packageinfo
drwxr-xr-x  3 root root 4096 2009-03-13 10:41 paulluci.tmp
drwxr-xr-x 20 root root 4096 2009-03-12 16:19 xwrt
lrwxrwxrwx  1 root root   21 2009-03-13 11:20 xwrt.index ->
xwrt.tmp/.packageinfo
drwxr-xr-x  3 root root 4096 2009-03-12 16:19 xwrt.tmp
software1170:/home/group/kamikaze-trunk/feeds#

e] The structure of the local repository is as follows:

software1170:/home/group/paulluci# ls -l
total 44
drwxr-xr-x 2 root root 4096 2009-03-13 11:00 bitlib
drwxr-xr-x 3 root root 4096 2009-03-13 11:00 ffluci
drwxr-xr-x 2 root root 4096 2009-03-13 11:00 lpeg
drwxr-xr-x 3 root root 4096 2009-03-13 11:00 luaposix
drwxr-xr-x 2 root root 4096 2009-03-13 11:00 luasocket
drwxr-xr-x 3 root root 4096 2009-03-13 11:00 luaxyssl
drwxr-xr-x 4 root root 4096 2009-03-13 11:10 luci
drwxr-xr-x 2 root root 4096 2009-03-13 11:00 luci-addons
-rw-r--r-- 1 root root   60 2009-03-13 11:00 Makefile
drwxr-xr-x 5 root root 4096 2009-03-13 11:00 olsrd-luci
drwxr-xr-x 2 root root 4096 2009-03-13 11:00 xrelayd
software1170:/home/group/paulluci# cd luci
software1170:/home/group/paulluci/luci# ls -l
total 32
drwxr-xr-x 2 root root  4096 2009-03-13 11:00 ipkg
drwxr-xr-x 9 root root  4096 2009-03-13 11:09 luci
-rwxr-xr-x 1 root root 24448 2009-03-13 11:04 Makefile
software1170:/home/group/paulluci/luci# cd luci/
software1170:/home/group/paulluci/luci/luci# ls -l
total 56
drwxr-xr-x 24 root root  4096 2009-03-13 11:09 applications
drwxr-xr-x  2 root root  4096 2009-03-13 11:09 build
drwxr-xr-x 11 root root  4096 2009-03-13 11:09 contrib
drwxr-xr-x  8 root root  4096 2009-03-13 11:09 i18n
-rw-r--r--  1 root root   670 2009-03-13 11:09 INSTALL
drwxr-xr-x 21 root root  4096 2009-03-13 11:09 libs
-rw-r--r--  1 root root 11356 2009-03-13 11:09 LICENSE
-rw-r--r--  1 root root  2363 2009-03-13 11:09 Makefile
drwxr-xr-x  7 root root  4096 2009-03-13 11:09 modules
-rw-r--r--  1 root root   327 2009-03-13 11:09 NOTICE
-rw-r--r--  1 root root   641 2009-03-13 11:09 THANKYOU
drwxr-xr-x 11 root root  4096 2009-03-13 11:11 themes
software1170:/home/group/paulluci/luci/luci#


f] the Makefile in /home/group/paulluci/luci has the changes as follows:

software1170:/home/group/paulluci/luci# ls -l
total 32
drwxr-xr-x 2 root root  4096 2009-03-13 11:00 ipkg
drwxr-xr-x 9 root root  4096 2009-03-13 11:09 luci
-rwxr-xr-x 1 root root 24448 2009-03-13 11:04 Makefile
software1170:/home/group/paulluci/luci# head -30 Makefile
include $(TOPDIR)/rules.mk

PKG_BRANCH:=

ifeq ($(DUMP),)
  USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null &&
echo 1)
endif

PKG_NAME:=luci
PKG_RELEASE:=1
PKG_VERSION:=0.8+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

software1170:/home/group/paulluci/luci#




On Thu, Mar 12, 2009 at 3:38 PM, Steven Barth <steven at midlink.org> wrote:

> 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
>
>
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.subsignal.org/pipermail/luci/attachments/20090313/9ea19e1a/attachment.htm 


More information about the luci mailing list