source: packages/net/xsupplicant/Makefile @ 9695

Last change on this file since 9695 was 9695, checked in by nbd, 8 years ago

packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.

Signed-off-by: Andy Boyett <agb-openwrt@…>

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=xsupplicant
12PKG_VERSION:=1.2.8
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/open1x
17PKG_MD5SUM:=75f89731b905eb8d36a52621661e1226
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22PKG_BUILD_DEPENDS:=madwifi
23
24include $(INCLUDE_DIR)/package.mk
25
26define Package/xsupplicant
27  SECTION:=net
28  CATEGORY:=Network
29  DEPENDS:=+libopenssl +wireless-tools
30  TITLE:=A fully compliant 802.1x authenticator
31  URL:=http://open1x.sourceforge.net/
32endef
33
34define Package/xsupplicant/description
35        This software allows a GNU/Linux or BSD workstation to authenticate with
36        a RADIUS server using 802.1x and various EAP protocols.
37endef
38
39define Package/xsupplicant/conffiles
40/etc/xsupplicant.conf
41endef
42
43define Build/Configure 
44        (cd $(PKG_BUILD_DIR); touch \
45                configure.in \
46                aclocal.m4 \
47                Makefile.in \
48                configure \
49        );
50        $(call Build/Configure/Default, \
51                --with-openssl="$(STAGING_DIR)/usr" \
52                --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
53                , \
54                CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
55        )
56endef
57
58define Build/Compile   
59        $(MAKE) -C $(PKG_BUILD_DIR) \
60                DESTDIR="$(PKG_INSTALL_DIR)" \
61                all install
62endef
63
64define Package/xsupplicant/install     
65        $(INSTALL_DIR) $(1)/etc
66        $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
67        $(INSTALL_DIR) $(1)/usr/bin
68        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
69        $(INSTALL_DIR) $(1)/usr/sbin
70        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
71endef
72
73$(eval $(call BuildPackage,xsupplicant))
Note: See TracBrowser for help on using the repository browser.