2 # Copyright (C) 2006-2008 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
:=75f89731b905eb8d36a52621661e1226
19 PKG_BUILD_DEPENDS
:=madwifi
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/xsupplicant
26 DEPENDS
:=+libopenssl
+libiw
27 TITLE
:=A fully compliant
802.1x authenticator
28 URL
:=http
://open1x.sourceforge.net
/
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.
36 define Package
/xsupplicant
/conffiles
41 --with-openssl
="$(STAGING_DIR)/usr" \
42 --with-madwifi-path
="$(STAGING_DIR)/usr/include/madwifi" \
45 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
48 $(call Build
/Prepare
/Default
)
49 (cd
$(PKG_BUILD_DIR
); touch \
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
59 DESTDIR
="$(PKG_INSTALL_DIR)" \
63 define Package
/xsupplicant
/install
64 $(INSTALL_DIR
) $(1)/etc
65 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/etc
/xsupplicant.conf
$(1)/etc
/
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsup_
* $(1)/usr
/bin
/
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xsupplicant
$(1)/usr
/sbin
/
72 $(eval
$(call BuildPackage
,xsupplicant
))