975898dc9babc9126a4562a532f9dba2f21ef0e4
[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
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/xsupplicant
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl +libiw
27 TITLE:=A fully compliant 802.1x authenticator
28 URL:=http://open1x.sourceforge.net/
29 endef
30
31 define Package/xsupplicant/description
32 This software allows a GNU/Linux or BSD workstation to authenticate with
33 a RADIUS server using 802.1x and various EAP protocols.
34 endef
35
36 define Package/xsupplicant/conffiles
37 /etc/xsupplicant.conf
38 endef
39
40 TARGET_CFLAGS += --std=gnu99
41
42 CONFIGURE_ARGS+= \
43 --with-openssl="$(STAGING_DIR)/usr" \
44 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
45
46 CONFIGURE_VARS+= \
47 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
48
49 define Build/Prepare
50 $(call Build/Prepare/Default)
51 (cd $(PKG_BUILD_DIR); touch \
52 configure.in \
53 aclocal.m4 \
54 Makefile.in \
55 configure \
56 );
57 endef
58
59 define Package/xsupplicant/install
60 $(INSTALL_DIR) $(1)/etc
61 $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
66 endef
67
68 $(eval $(call BuildPackage,xsupplicant))