summaryrefslogtreecommitdiffstats
path: root/package/xsupplicant
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-20 05:05:26 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-20 05:05:26 +0000
commitb87af89ea4a0da4b80e278527897a2773cc9b675 (patch)
tree0cb3685bb3472fa1595dfaf7503961c8dd434c60 /package/xsupplicant
parent4992754ee11aea559337e46c74df7bf15297f4c1 (diff)
add xsupplicant package (thanks to Florian Fainelli)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2188 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/xsupplicant')
-rw-r--r--package/xsupplicant/Config.in11
-rw-r--r--package/xsupplicant/Makefile70
-rw-r--r--package/xsupplicant/ipkg/xsupplicant.control8
-rw-r--r--package/xsupplicant/patches/001-no-lfl.patch24
-rw-r--r--package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch11
5 files changed, 124 insertions, 0 deletions
diff --git a/package/xsupplicant/Config.in b/package/xsupplicant/Config.in
new file mode 100644
index 000000000..b84840621
--- /dev/null
+++ b/package/xsupplicant/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_XSUPPLICANT
+ tristate "xsupplicant - a fully compliant 802.1x authenticator"
+ default m if CONFIG_DEVEL
+ select BR2_PACKAGE_LIBOPENSSL
+ select BR2_PACKAGE_WIRELESS_TOOLS
+ help
+ This software allows a GNU/Linux or BSD workstation to authenticate with
+ a RADIUS server using 802.1x and various EAP protocols.
+
+ http://open1x.sourceforge.net/
+
diff --git a/package/xsupplicant/Makefile b/package/xsupplicant/Makefile
new file mode 100644
index 000000000..50c6b53d9
--- /dev/null
+++ b/package/xsupplicant/Makefile
@@ -0,0 +1,70 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=xsupplicant
+PKG_VERSION:=1.2.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=0e9aaf83a11f8eaff7c6564a53c25d8e
+
+PKG_SOURCE_URL:=@SF/open1x
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,XSUPPLICANT,xsupplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
+ touch configure.in; \
+ touch aclocal.m4; \
+ touch Makefile.in; \
+ touch configure; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --program-prefix="" \
+ --program-suffix="" \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --includedir=/usr/include \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --mandir=/usr/share/man \
+ --sbindir=/usr/sbin \
+ --sysconfdir=/etc \
+ $(DISABLE_LARGEFILE) \
+ $(DISABLE_NLS) \
+ --with-openssl="$(STAGING_DIR)/usr" \
+ --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
+ );
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ DESTDIR=$(PKG_INSTALL_DIR) \
+ all install
+ touch $@
+
+$(IPKG_XSUPPLICANT):
+ install -d -m0755 $(IDIR_XSUPPLICANT)/etc
+ install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(IDIR_XSUPPLICANT)/etc/
+ install -d -m0755 $(IDIR_XSUPPLICANT)/usr/bin
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(IDIR_XSUPPLICANT)/usr/bin/
+ install -d -m0755 $(IDIR_XSUPPLICANT)/usr/sbin
+ cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(IDIR_XSUPPLICANT)/usr/sbin/
+ $(RSTRIP) $(IDIR_XSUPPLICANT)
+ $(IPKG_BUILD) $(IDIR_XSUPPLICANT) $(PACKAGE_DIR)
diff --git a/package/xsupplicant/ipkg/xsupplicant.control b/package/xsupplicant/ipkg/xsupplicant.control
new file mode 100644
index 000000000..775caf39f
--- /dev/null
+++ b/package/xsupplicant/ipkg/xsupplicant.control
@@ -0,0 +1,8 @@
+Package: xsupplicant
+Priority: optional
+Section: net
+Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>, Florian Fainelli <florian@alphacore.net>
+Source: buildroot internal
+Depends: libopenssl, wireless-tools
+Description: A fully compliant 802.1x authenticator
+
diff --git a/package/xsupplicant/patches/001-no-lfl.patch b/package/xsupplicant/patches/001-no-lfl.patch
new file mode 100644
index 000000000..9f0ed9445
--- /dev/null
+++ b/package/xsupplicant/patches/001-no-lfl.patch
@@ -0,0 +1,24 @@
+diff -ruN xsupplicant-1.2.2-old/configure xsupplicant-1.2.2-new/configure
+--- xsupplicant-1.2.2-old/configure 2005-09-14 05:34:54.000000000 +0200
++++ xsupplicant-1.2.2-new/configure 2005-10-20 06:24:23.000000000 +0200
+@@ -3316,7 +3316,7 @@
+ fi
+ if test -n "$LEX"; then
+ LFLAGS="$LFLAGS -i"
+- MORELIBS="${MORELIBS} -lfl"
++
+ fi
+
+ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
+diff -ruN xsupplicant-1.2.2-old/configure.in xsupplicant-1.2.2-new/configure.in
+--- xsupplicant-1.2.2-old/configure.in 2005-09-14 05:34:54.000000000 +0200
++++ xsupplicant-1.2.2-new/configure.in 2005-10-20 06:23:38.000000000 +0200
+@@ -17,7 +17,7 @@
+ AM_PROG_LEX
+ if test -n "$LEX"; then
+ LFLAGS="$LFLAGS -i"
+- MORELIBS="${MORELIBS} -lfl"
++
+ fi
+
+ AC_C_BIGENDIAN([big_endian=true;AC_DEFINE(BIGENDIAN)],[big_endian=false;AC_DEFINE(LILENDIAN)])
diff --git a/package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch b/package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch
new file mode 100644
index 000000000..4333d346b
--- /dev/null
+++ b/package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch
@@ -0,0 +1,11 @@
+diff -ruN xsupplicant-1.2.2-old/src/cardif/linux/cardif_madwifi_driver.h xsupplicant-1.2.2-new/src/cardif/linux/cardif_madwifi_driver.h
+--- xsupplicant-1.2.2-old/src/cardif/linux/cardif_madwifi_driver.h 2005-04-06 04:21:53.000000000 +0200
++++ xsupplicant-1.2.2-new/src/cardif/linux/cardif_madwifi_driver.h 2005-10-17 22:03:19.000000000 +0200
+@@ -21,6 +21,7 @@
+ int cardif_madwifi_driver_set_key(char *, int, unsigned char *, int, int,
+ char *, int, char *, int);
+ int cardif_madwifi_driver_wpa_state(struct interface_data *, char);
++void cardif_madwifi_driver_associate(struct interface_data *, char *);
+ int cardif_madwifi_driver_disassociate(struct interface_data *, int);
+
+ #endif // _CARDIF_MADWIFI_DRIVER_H_