1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=cvs
.2006.03.02
13 PKG_MD5SUM
:=7aed4ba94926010d76febb797b288e98
15 ROOFNET_VERSION
:=0.0.1
17 PKG_SOURCE_URL
:=http
://pdos.csail.mit.edu
/~jbicket
/click_snapshots
/
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=The Click Modular Router
28 URL
:=http
://www.read.cs.ucla.edu
/click
/
31 define Package
/click
/description
32 The Click Modular Router
35 define Package
/roofnet
38 DEPENDS
:=@BROKEN click
39 TITLE
:=roofnet mesh networking scripts
40 URL
:=http
://pdos.csail.mit.edu
/roofnet
/
43 define Package
/roofnet
/description
44 roofnet mesh networking scripts
48 BUILD_CXX
="g++ -I $(PKG_BUILD_DIR)/include-host" \
51 define Build
/Configure
52 (cd
$(PKG_BUILD_DIR
); \
53 rm -rf config.
{cache
,status
} ; \
56 rm -rf include-host
; \
57 $(CP
) include include-host
; \
58 rm -rf config.
{cache
,status
} ; \
59 $(TARGET_CONFIGURE_OPTS
) \
60 CXXFLAGS
="-static -Os -MD" \
61 CFLAGS
="-static -MD" \
62 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
63 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
67 --target
=$(GNU_TARGET_NAME
) \
68 --host
=$(GNU_TARGET_NAME
) \
69 --build
=$(GNU_HOST_NAME
) \
71 --disable-linuxmodule \
72 --enable-tools
=mixed \
73 --disable-dynamic-linking \
79 rm -rf
$(PKG_INSTALL_DIR
)
80 mkdir
-p
$(PKG_INSTALL_DIR
)
82 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
85 (cd
$(PKG_BUILD_DIR
)/userlevel
; \
86 ..
/tools
/click-mkmindriver
/click-mkmindriver
-p roofnet
-C .. \
87 -f
$(PKG_BUILD_DIR
)/conf
/wifi
/sample.click \
88 -A
--all -E IPNameInfo
-E FromHost
-E ToHost
-E Discard
; \
89 $(MAKE
) -f Makefile.roofnet
; \
93 define Package
/click
/install
94 $(INSTALL_DIR
) $(1)/usr
/bin
95 $(CP
) $(PKG_BUILD_DIR
)/userlevel
/roofnetclick
$(1)/usr
/bin
/click
96 $(CP
) $(PKG_BUILD_DIR
)/tools
/click-align
/click-align
$(1)/usr
/bin
/click-align
99 define Package
/roofnet
/install
100 $(INSTALL_DIR
) $(1)/usr
/bin
101 $(CP
) $(PKG_BUILD_DIR
)/conf
/wifi
/gen_config_roofnet.sh
$(1)/usr
/bin
102 $(CP
) $(PKG_BUILD_DIR
)/conf
/wifi
/srcr.click
$(1)/usr
/bin
103 $(CP
) $(PKG_BUILD_DIR
)/conf
/wifi
/read_handler
$(1)/usr
/bin
104 $(CP
) $(PKG_BUILD_DIR
)/conf
/wifi
/write_handler
$(1)/usr
/bin
105 mkdir
-p
$(1)/etc
/init.d
106 $(INSTALL_BIN
) .
/files
/roofnet.init
$(1)/etc
/init.d
/roofnet
109 $(eval
$(call BuildPackage
,click
))
110 $(eval
$(call BuildPackage
,roofnet
))