2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/open1x
17 PKG_MD5SUM:=f66c49cd6e4f331d05bf83513ed91990
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
25 include $(INCLUDE_DIR)/package.mk
27 define Package/xsupplicant
30 DEPENDS:=+libopenssl +wireless-tools
31 TITLE:=A fully compliant 802.1x authenticator
33 This software allows a GNU/Linux or BSD workstation to authenticate with \\\
34 a RADIUS server using 802.1x and various EAP protocols.
35 URL:=http://open1x.sourceforge.net/
38 define Package/xsupplicant/conffiles
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --with-openssl="$(STAGING_DIR)/usr" \
45 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
47 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
57 define Package/xsupplicant/install
58 install -d -m0755 $(1)/etc
59 install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
60 install -d -m0755 $(1)/usr/bin
61 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
62 install -d -m0755 $(1)/usr/sbin
63 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
66 $(eval $(call BuildPackage,xsupplicant))