dcbc3441486c35df0bbe5d9df4431684c103e698
[openwrt/svn-archive/archive.git] / net / xsupplicant / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xsupplicant
12 PKG_VERSION:=1.2.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/open1x
17 PKG_MD5SUM:=f66c49cd6e4f331d05bf83513ed91990
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 PKG_BUILDDEP:=madwifi
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/xsupplicant
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+libopenssl +wireless-tools
31 TITLE:=A fully compliant 802.1x authenticator
32 DESCRIPTION:=\
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/
36 endef
37
38 define Package/xsupplicant/conffiles
39 /etc/xsupplicant.conf
40 endef
41
42 define Build/Configure
43 (cd $(PKG_BUILD_DIR); touch \
44 configure.in \
45 aclocal.m4 \
46 Makefile.in \
47 configure \
48 );
49 $(call Build/Configure/Default, \
50 --with-openssl="$(STAGING_DIR)/usr" \
51 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
52 , \
53 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
54 )
55 endef
56
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 all install
61 endef
62
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 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
68 $(INSTALL_DIR) $(1)/usr/sbin
69 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
70 endef
71
72 $(eval $(call BuildPackage,xsupplicant))