wireless: Moved xsupplicant 802.1x authenticator to wireless submenu.
[openwrt/svn-archive/archive.git] / net / xsupplicant / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=xsupplicant
11 PKG_VERSION:=1.2.8
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/open1x
16 PKG_MD5SUM:=75f89731b905eb8d36a52621661e1226
17
18 PKG_BUILD_DEPENDS:=PACKAGE_kmod-madwifi:madwifi
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=0
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/xsupplicant
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=wireless
28 DEPENDS:=+libopenssl +libiw
29 TITLE:=A fully compliant 802.1x authenticator
30 URL:=http://open1x.sourceforge.net/
31 endef
32
33 define Package/xsupplicant/description
34 This software allows a GNU/Linux or BSD workstation to authenticate with
35 a RADIUS server using 802.1x and various EAP protocols.
36 endef
37
38 define Package/xsupplicant/conffiles
39 /etc/xsupplicant.conf
40 endef
41
42 TARGET_CFLAGS += --std=gnu99
43
44 CONFIGURE_ARGS+= \
45 --with-openssl="$(STAGING_DIR)/usr" \
46 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
47
48 CONFIGURE_VARS+= \
49 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
50
51 define Build/Prepare
52 $(call Build/Prepare/Default)
53 (cd $(PKG_BUILD_DIR); touch \
54 configure.in \
55 aclocal.m4 \
56 Makefile.in \
57 configure \
58 );
59 endef
60
61 define Package/xsupplicant/install
62 $(INSTALL_DIR) $(1)/etc
63 $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
64 $(INSTALL_DIR) $(1)/usr/bin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
66 $(INSTALL_DIR) $(1)/usr/sbin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
68 endef
69
70 $(eval $(call BuildPackage,xsupplicant))