Start X server in the background, so that the boot process completes, thanks sn9
[openwrt/svn-archive/archive.git] / net / xsupplicant / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/open1x
17 PKG_MD5SUM:=75f89731b905eb8d36a52621661e1226
18
19 PKG_BUILD_DEPENDS:=madwifi
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/xsupplicant
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl +libiw
27 TITLE:=A fully compliant 802.1x authenticator
28 URL:=http://open1x.sourceforge.net/
29 endef
30
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.
34 endef
35
36 define Package/xsupplicant/conffiles
37 /etc/xsupplicant.conf
38 endef
39
40 CONFIGURE_ARGS+= \
41 --with-openssl="$(STAGING_DIR)/usr" \
42 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
43
44 CONFIGURE_VARS+= \
45 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
46
47 define Build/Prepare
48 $(call Build/Prepare/Default)
49 (cd $(PKG_BUILD_DIR); touch \
50 configure.in \
51 aclocal.m4 \
52 Makefile.in \
53 configure \
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 $(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/
70 endef
71
72 $(eval $(call BuildPackage,xsupplicant))