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:=c9b17b2e1879bac85c583980338fed85
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" \
52 --target=$(GNU_TARGET_NAME) \
53 --host=$(GNU_TARGET_NAME) \
54 --build=$(GNU_HOST_NAME) \
60 --datadir=/usr/share \
61 --includedir=/usr/include \
62 --infodir=/usr/share/info \
64 --libexecdir=/usr/lib \
65 --localstatedir=/var \
66 --mandir=/usr/share/man \
69 $(DISABLE_LARGEFILE) \
71 --with-openssl="$(STAGING_DIR)/usr" \
72 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
77 rm -rf $(PKG_INSTALL_DIR)
78 mkdir -p $(PKG_INSTALL_DIR)
79 $(MAKE) -C $(PKG_BUILD_DIR) \
80 DESTDIR=$(PKG_INSTALL_DIR) \
84 define Package/xsupplicant/install
85 install -d -m0755 $(1)/etc
86 install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(1)/etc/
87 install -d -m0755 $(1)/usr/bin
88 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(1)/usr/bin/
89 install -d -m0755 $(1)/usr/sbin
90 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(1)/usr/sbin/
93 $(eval $(call BuildPackage,xsupplicant))