[packages] Add missing libtool fixups
[packages.git] / net / coova-chilli / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=coova-chilli
11 PKG_VERSION:=1.2.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ap.coova.org/chilli/
16 PKG_MD5SUM:=f4c0cdb903b6a830cd7c8a54db2334e8
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/coova-chilli
23   SUBMENU:=Captive Portals
24   SECTION:=net
25   CATEGORY:=Network
26   DEPENDS:=+kmod-tun
27   TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
28   URL:=http://www.coova.org/CoovaChilli
29 endef
30
31 define Package/coova-chilli/description
32         CoovaChilli is an open source access controller for wireless LAN
33         access points and is based on ChilliSpot. It is used for authenticating
34         users of a wireless (or wired) LAN. It supports web based login (UAM)
35         which is today's standard for public HotSpots and it supports Wireless
36         Protected Access (WPA) which is the standard of the future.
37         Authentication, authorization and accounting (AAA) is handled by your
38         favorite radius server.
39 endef
40
41 define Package/coova-chilli/conffiles
42 /etc/chilli.conf
43 endef
44
45 define Build/Compile
46         $(MAKE) -C $(PKG_BUILD_DIR) \
47                 DESTDIR="$(PKG_INSTALL_DIR)" \
48                 all install
49 endef
50
51 define Package/coova-chilli/install
52         $(INSTALL_DIR) $(1)/etc
53         $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/
54         $(INSTALL_DIR) $(1)/etc/chilli
55         $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/
56         $(INSTALL_DIR) $(1)/usr/sbin
57         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
58         $(INSTALL_DIR) $(1)/usr/lib/
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,coova-chilli))