2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=f66c49cd6e4f331d05bf83513ed91990
16 PKG_SOURCE_URL
:=@SF
/open1x
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/xsupplicant
28 DEPENDS
:=+libopenssl
+wireless-tools
29 TITLE
:=A fully compliant
802.1x authenticator
30 DESCRIPTION
:=This software allows a GNU
/Linux or BSD workstation to authenticate with
\\\
31 a RADIUS server using
802.1x and various EAP protocols.
\\\
32 URL
:=http
://open1x.sourceforge.net
/
35 define Package
/xsupplicant
/conffiles
39 define Build
/Configure
40 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
45 $(TARGET_CONFIGURE_OPTS
) \
46 CFLAGS
="$(TARGET_CFLAGS)" \
47 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include \
48 -I$(PKG_BUILD_DIR)/lib/libxsupconfig/ \
49 -I$(STAGING_DIR)/usr/include/madwifi" \
50 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
51 CC
="$(TARGET_CROSS)gcc" \
53 --target
=$(GNU_TARGET_NAME
) \
54 --host
=$(GNU_TARGET_NAME
) \
55 --build
=$(GNU_HOST_NAME
) \
61 --datadir=/usr
/share \
62 --includedir=/usr
/include \
63 --infodir=/usr
/share
/info \
65 --libexecdir
=/usr
/lib \
66 --localstatedir
=/var \
67 --mandir=/usr
/share
/man \
70 $(DISABLE_LARGEFILE
) \
72 --with-openssl
="$(STAGING_DIR)/usr" \
73 --with-madwifi-path
="$(STAGING_DIR)/usr/include/madwifi" \
78 rm -rf
$(PKG_INSTALL_DIR
)
79 mkdir
-p
$(PKG_INSTALL_DIR
)
80 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
82 DESTDIR
=$(PKG_INSTALL_DIR
) \
86 define Package
/xsupplicant
/install
87 install -d
-m0755
$(1)/etc
88 install -m0644
$(PKG_BUILD_DIR
)/etc
/xsupplicant.conf
$(1)/etc
/
89 install -d
-m0755
$(1)/usr
/bin
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsup_
* $(1)/usr
/bin
/
91 install -d
-m0755
$(1)/usr
/sbin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xsupplicant
$(1)/usr
/sbin
/
95 $(eval
$(call BuildPackage
,xsupplicant
))