summaryrefslogtreecommitdiff
path: root/openwrt/package
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
commitbd2b2080d7b73bd7e452be5647d8290eef7f0cec (patch)
tree8e992eb8a82e65a7b23e1d315c5f4cf7cc3477cf /openwrt/package
parent89c377c179454c98e3360d3e601d484bba9b7b89 (diff)
add xsupplicant package (thanks to Florian Fainelli)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2188 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package')
-rw-r--r--openwrt/package/Config.in11
-rw-r--r--openwrt/package/Makefile2
-rw-r--r--openwrt/package/xsupplicant/Config.in11
-rw-r--r--openwrt/package/xsupplicant/Makefile70
-rw-r--r--openwrt/package/xsupplicant/ipkg/xsupplicant.control8
-rw-r--r--openwrt/package/xsupplicant/patches/001-no-lfl.patch24
-rw-r--r--openwrt/package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch11
7 files changed, 132 insertions, 5 deletions
diff --git a/openwrt/package/Config.in b/openwrt/package/Config.in
index eeb6d53e53..70565604b4 100644
--- a/openwrt/package/Config.in
+++ b/openwrt/package/Config.in
@@ -123,16 +123,17 @@ source "package/ulogd/Config.in"
source "package/updatedd/Config.in"
source "package/vsftpd/Config.in"
source "package/vtun/Config.in"
-source "package/wireless-tools/Config.in"
-source "package/wol/Config.in"
-source "package/wpa_supplicant/Config.in"
-source "package/wput/Config.in"
-source "package/xinetd/Config.in"
source "package/wificonf/Config.in"
source "package/wifidog/Config.in"
+source "package/wireless-tools/Config.in"
source "package/wiviz/Config.in"
+source "package/wol/Config.in"
source "package/wondershaper/Config.in"
+source "package/wpa_supplicant/Config.in"
+source "package/wput/Config.in"
source "package/wrt-radauth/Config.in"
+source "package/xinetd/Config.in"
+source "package/xsupplicant/Config.in"
comment "Libraries"
source "package/cgilib/Config.in"
diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile
index 4aa9b3a747..3e157f9cbf 100644
--- a/openwrt/package/Makefile
+++ b/openwrt/package/Makefile
@@ -202,6 +202,7 @@ package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
package-$(BR2_PACKAGE_WPUT) += wput
package-$(BR2_PACKAGE_WRT_RADAUTH) += wrt-radauth
package-$(BR2_PACKAGE_XINETD) += xinetd
+package-$(BR2_PACKAGE_XSUPPLICANT) += xsupplicant
package-$(BR2_PACKAGE_ZLIB) += zlib
DEV_LIBS:=tcp_wrappers glib ncurses openssl pcre popt zlib libnet libpcap mysql postgresql iptables matrixssl lzo gmp fuse portmap libelf uclibc++ speex libpng libgd wireless-tools nvram linux-atm
@@ -293,6 +294,7 @@ usbutils-compile: libusb-compile
vtun-compile: zlib-compile openssl-compile lzo-compile
wificonf-compile: wireless-tools-compile nvram-compile
wpa_supplicant-compile: openssl-compile
+xsupplicant-compile: openssl-compile
asterisk-compile: bluez-libs-compile ncurses-compile openssl-compile
ifneq ($(BR2_PACKAGE_ASTERISK_CODEC_SPEEX),)
diff --git a/openwrt/package/xsupplicant/Config.in b/openwrt/package/xsupplicant/Config.in
new file mode 100644
index 0000000000..b84840621c
--- /dev/null
+++ b/openwrt/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/openwrt/package/xsupplicant/Makefile b/openwrt/package/xsupplicant/Makefile
new file mode 100644
index 0000000000..50c6b53d9a
--- /dev/null
+++ b/openwrt/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/openwrt/package/xsupplicant/ipkg/xsupplicant.control b/openwrt/package/xsupplicant/ipkg/xsupplicant.control
new file mode 100644
index 0000000000..775caf39fe
--- /dev/null
+++ b/openwrt/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/openwrt/package/xsupplicant/patches/001-no-lfl.patch b/openwrt/package/xsupplicant/patches/001-no-lfl.patch
new file mode 100644
index 0000000000..9f0ed94456
--- /dev/null
+++ b/openwrt/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/openwrt/package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch b/openwrt/package/xsupplicant/patches/002-cardif_madwifi_driver_h.patch
new file mode 100644
index 0000000000..4333d346be
--- /dev/null
+++ b/openwrt/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_