For building your own packages refer to www.delicious.com/amita.ekbote. Lots of websites bookmarked which tell you how to build your own package.

Bulding click for openwrt:

The following Makefile builds the basic user level click with the tools running on host only!

#Click modular router

include $(TOPDIR)/rules.mk

PKG_NAME:=click
PKG_VERSION:=1.7.0rc1
PKG_MINOR:=
PKG_RELEASE:=

PKG_SOURCE:=click-1.7.0rc1.tar.gz
PKG_SOURCE_URL:=http://read.cs.ucla.edu/click/


include $(INCLUDE_DIR)/package.mk

define Package/click/Default
URL:=http://read.cs.ucla.edu/click/click-1.7.0rc1.tar.gz
endef

define Package/click
$(call Package/click/Default)
SECTION:=net
CATEGORY:=Base system
TITLE:=Click modular router

DEPENDS:=+libstdcpp

endef

define Package/click/description
MIT's click modular router
endef

CONFIGURE_VARS += \
CXX="g++-uc+std" \
CXXFLAGS="$$$$CXXFLAGS -fno-rtti"

define Build/Configure
( cd $(PKG_BUILD_DIR) ; \
ARCH=mips; \
./configure \
--target=$(GNU_TARGET_NAME)\
--host=$(GNU_TARGET_NAME) --build=$(GNU_HOST_NAME) --disable-linuxmodule \
--enable-userlevel \
--enable-wifi \
--disable-bsdmodule \
--disable-app \
--enable-aqm \
--enable-ethernet \
--enable-etherswitch \
--enable-icmp \
--enable-ip \
--enable-ip6 \
--enable-local \
--enable-simple \
--enable-standard \
--enable-tcpudp \
--enable-test \
--disable-threads \
--enable-grid \
--enable-tools=host \
--enable-dmalloc \
--prefix= ) ;


endef

define Package/click/install
$(INSTALL_DIR) $(1)/usr/bin
$(STRIP) $(PKG_BUILD_DIR)/userlevel/click
$(STRIP) $(PKG_BUILD_DIR)/tools/click-align/click-align
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/click-align/click-align $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/userlevel/click $(1)/usr/bin/

endef

$(eval $(call BuildPackage ,click))

Steps to install click on openwrt:

1.Add the above Makefile in <openwrt-dir>/packages/click

2. If you have run ./scripts/feeds update and ./scripts/feeds install -a then there should be a click already present, to remove this do ./scripts/feeds uninstall click . (This version of click should hopefully be added in the openwrt repository)

3. run make menuconfig and you should see click in base system, Add it and run make.

Temperory repository for testing packages

-- AmitaEkbote - 18 Jun 2009

Topic attachments
I Attachment Action Size Date Who Comment
Gzgz ping-1.tar.gz manage 23.7 K 2009-06-18 - 17:53 AmitaEkbote  
 
Copyright 2014 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF