2006-08-08 09:22:06 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xsupplicant
|
2006-11-27 22:08:06 +00:00
|
|
|
PKG_VERSION:=1.2.8
|
2006-08-08 09:22:06 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/open1x
|
2006-11-27 22:08:06 +00:00
|
|
|
PKG_MD5SUM:=75f89731b905eb8d36a52621661e1226
|
2006-08-08 09:22:06 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=madwifi
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2006-08-08 09:22:06 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/xsupplicant
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libopenssl +wireless-tools
|
|
|
|
TITLE:=A fully compliant 802.1x authenticator
|
|
|
|
URL:=http://open1x.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/xsupplicant/description
|
|
|
|
This software allows a GNU/Linux or BSD workstation to authenticate with
|
|
|
|
a RADIUS server using 802.1x and various EAP protocols.
|
|
|
|
endef
|
|
|
|
|
2006-08-08 09:22:06 +00:00
|
|
|
define Package/xsupplicant/conffiles
|
|
|
|
/etc/xsupplicant.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-11-05 20:12:42 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
configure.in \
|
|
|
|
aclocal.m4 \
|
|
|
|
Makefile.in \
|
|
|
|
configure \
|
|
|
|
);
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
|
|
|
|
, \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
|
|
|
|
)
|
2006-08-08 09:22:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-30 13:51:50 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-08-08 09:22:06 +00:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xsupplicant/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-08-08 09:22:06 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-08-08 09:22:06 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xsupplicant))
|