Update makefiles to use the autotools stuff put in the template, remove bogus stamp...
[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 $(call Build/Configure/Default, \
44 --with-openssl="$(STAGING_DIR)/usr" \
45 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
46 , \
47 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
48 )
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 all install
55 endef
56
57 define Package/xsupplicant/install
58 install -d -m0755 $(1)/etc
59 install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
60 install -d -m0755 $(1)/usr/bin
61 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
62 install -d -m0755 $(1)/usr/sbin
63 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
64 endef
65
66 $(eval $(call BuildPackage,xsupplicant))