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