DESCRIPTION:= is obselete
[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.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/open1x
17 PKG_MD5SUM:=75f89731b905eb8d36a52621661e1226
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_BUILD_DEPENDS:=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 URL:=http://open1x.sourceforge.net/
33 endef
34
35 define Package/xsupplicant/description
36 This software allows a GNU/Linux or BSD workstation to authenticate with
37 a RADIUS server using 802.1x and various EAP protocols.
38 endef
39
40 define Package/xsupplicant/conffiles
41 /etc/xsupplicant.conf
42 endef
43
44 define Build/Configure
45 (cd $(PKG_BUILD_DIR); touch \
46 configure.in \
47 aclocal.m4 \
48 Makefile.in \
49 configure \
50 );
51 $(call Build/Configure/Default, \
52 --with-openssl="$(STAGING_DIR)/usr" \
53 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
54 , \
55 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
56 )
57 endef
58
59 define Build/Compile
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 all install
63 endef
64
65 define Package/xsupplicant/install
66 $(INSTALL_DIR) $(1)/etc
67 $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
72 endef
73
74 $(eval $(call BuildPackage,xsupplicant))