3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=997827a9302a85920cfbc1334092ac0c
10 PKG_SOURCE_URL
:=http
://www.chillispot.org
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/chillispot
22 DEPENDS
:=@
+PACKAGE_KMOD_TUN
23 TITLE
:=Wireless LAN HotSpot controller
24 DESCRIPTION
:=Wireless LAN HotSpot controller
\\\
25 ChilliSpot is an open source captive portal or wireless LAN
\\\
26 access point controller. It is used for authenticating users
\\\
27 of a wireless LAN. It supports web based login which is today
's \\\
28 standard for public HotSpots and it supports Wireless Protected \\\
29 Access (WPA) which is the standard of the future. Authentication, \\\
30 authorization and accounting (AAA) is handled by your favorite \\\
32 URL:=http://www.chillispot.org/
35 define Package/chillispot/conffiles
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
41 $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
44 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
45 ac_cv_func_malloc_0_nonnull=yes \
46 ac_cv_func_memcmp_working=yes \
47 ac_cv_func_setvbuf_reversed=no \
49 --target=$(GNU_TARGET_NAME) \
50 --host=$(GNU_TARGET_NAME) \
51 --build=$(GNU_HOST_NAME) \
57 --datadir=/usr/share \
58 --includedir=/usr/include \
59 --infodir=/usr/share/info \
61 --libexecdir=/usr/lib \
62 --localstatedir=/var \
63 --mandir=/usr/share/man \
66 $(DISABLE_LARGEFILE) \
75 rm -rf $(PKG_INSTALL_DIR)
76 mkdir -p $(PKG_INSTALL_DIR)
77 $(MAKE) -C $(PKG_BUILD_DIR) \
78 $(TARGET_CONFIGURE_OPTS) \
79 DESTDIR="$(PKG_INSTALL_DIR)" \
83 define Package/chillispot/install
84 install -m0755 -d $(1)/etc/init.d
85 install -m0755 ./files/$(PKG_NAME).init $(1)/etc/init.d/chilli
86 install -m0755 -d $(1)/etc
87 install -m0644 $(PKG_BUILD_DIR)/doc/chilli.conf $(1)/etc/
88 install -m0755 -d $(1)/usr/sbin
89 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli $(1)/usr/sbin/
92 $(eval $(call BuildPackage,chillispot))