# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $ include $(TOPDIR)/rules.mk PKG_NAME:=coova-hotspot PKG_VERSION:=0.1 PKG_RELEASE:=1 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-hotspot SECTION:=hotspot CATEGORY:=Coova DEPENDS:=+stunnel +curl +coova-chilli TITLE:=Coova-Hotspot OpenWrt Base Package DESCRIPTION:=Coova-Hotspot OpenWrt Base Package MAINTAINER:=David Bird URL:=http://coova.org/ endef define Build/Configure endef define Build/Compile endef define Package/coova-hotspot/install install -d -m0755 $(1)/etc/hs $(1)/etc/stunnel install -d -m0755 $(1)/etc/init.d $(1)/etc/chilli $(CP) ./files/chilli.config $(1)/etc/chilli/config $(CP) ./files/defaults $(1)/etc/hs/ $(CP) ./files/uam.sh $(1)/etc/hs/ $(CP) ./files/functions.sh $(1)/etc/hs/ $(CP) ./files/functions-net.sh $(1)/etc/ $(CP) ./files/stunnel.config $(1)/etc/stunnel/config $(CP) ./files/S90shape $(1)/etc/init.d/ $(CP) ./files/S41ipkg $(1)/etc/init.d/ $(CP) ./files/S41wpa $(1)/etc/init.d/ endef # $(CP) -a ./ipkg/coova.preinst $(1)/CONTROL/preinst # $(CP) -a ./ipkg/coova.postinst $(1)/CONTROL/postinst # $(SED) 's,$$$$S,$(BOARD)-$(KERNEL),g' $(1)/CONTROL/postinst $(eval $(call BuildPackage,coova-hotspot))