# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=coova-chilli PKG_VERSION:=1.2.5-svn PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://coova-ap.s3.amazonaws.com/ PKG_MD5SUM:=6d942a731da07b029a1be0b58d7917d6 PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk define Package/coova-chilli SECTION:=net CATEGORY:=Network DEPENDS:=+kmod-tun TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version) MAINTAINER:=David Bird URL:=http://www.coova.org/ endef define Package/coova-chilli/description CoovaChilli is an open source access controller for wireless LAN access points and is based on ChilliSpot. It is used for authenticating users of a wireless (or wired) LAN. It supports web based login (UAM) which is today's standard for public HotSpots and it supports Wireless Protected Access (WPA) which is the standard of the future. Authentication, authorization and accounting (AAA) is handled by your favorite radius server. endef define Package/coova-chilli/conffiles endef define Build/Configure (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ $(TARGET_CONFIGURE_OPTS) \ sh bootstrap; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(strip $(TARGET_CFLAGS))" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ ac_cv_func_malloc_0_nonnull=yes \ ac_cv_func_memcmp_working=yes \ ac_cv_func_setvbuf_reversed=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --program-prefix="" \ --program-suffix="" \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --datadir=/usr/share \ --includedir=/usr/include \ --infodir=/usr/share/info \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --localstatedir=/var \ --mandir=/usr/share/man \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ $(DISABLE_LARGEFILE) \ $(DISABLE_NLS) \ --enable-shared \ --disable-static \ --with-gnu-ld \ --with-openssl \ --enable-chilliproxy \ --enable-chilliradsec \ --enable-miniportal \ --enable-binstatusfile \ --enable-proxyvsa \ ); endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install endef define Package/coova-chilli/install install -m0755 -d $(1)/etc $(1)/etc/init.d $(1)/etc/chilli install -m0755 -d $(1)/usr/sbin $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/ $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/ install -m0755 ./files/up.sh $(1)/etc/chilli/ipup.sh install -m0755 ./files/down.sh $(1)/etc/chilli/ipdown.sh install -m0755 ./files/$(PKG_NAME).init $(1)/etc/init.d/S90chilli endef $(eval $(call BuildPackage,coova-chilli))