summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-05-23 11:49:48 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-05-23 11:49:48 +0000
commit3175d6bf03d1e8eca1548f7252667152302fa7f8 (patch)
tree06be7cef7a15cdc340377016384ad97bddbce0fd /net-wireless/hostapd
parentMore get_libdir-ization, fixes compilation on amd64's no-lib32 profile. (diff)
downloadhistorical-3175d6bf03d1e8eca1548f7252667152302fa7f8.tar.gz
historical-3175d6bf03d1e8eca1548f7252667152302fa7f8.tar.bz2
historical-3175d6bf03d1e8eca1548f7252667152302fa7f8.zip
New development release.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'net-wireless/hostapd')
-rw-r--r--net-wireless/hostapd/ChangeLog8
-rw-r--r--net-wireless/hostapd/Manifest6
-rw-r--r--net-wireless/hostapd/files/digest-hostapd-0.4.12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.1-conf.d12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.1-init.d50
-rw-r--r--net-wireless/hostapd/hostapd-0.4.1.ebuild86
6 files changed, 162 insertions, 2 deletions
diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog
index 26d1442142ad..fba40e7b516e 100644
--- a/net-wireless/hostapd/ChangeLog
+++ b/net-wireless/hostapd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-wireless/hostapd
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.28 2005/05/11 11:21:22 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.29 2005/05/23 11:47:42 brix Exp $
+
+*hostapd-0.4.1 (23 May 2005)
+
+ 23 May 2005; <brix@gentoo.org> +files/hostapd-0.4.1-conf.d,
+ +files/hostapd-0.4.1-init.d, +hostapd-0.4.1.ebuild:
+ New development release.
11 May 2005; <brix@gentoo.org> -hostapd-0.4.0.ebuild:
Removed old ebuild
diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest
index 4208b1802a39..04c3847093bf 100644
--- a/net-wireless/hostapd/Manifest
+++ b/net-wireless/hostapd/Manifest
@@ -1,13 +1,17 @@
MD5 ffda06509787f2a0d4d8687072ab000d hostapd-0.2.5.ebuild 1020
+MD5 f0faf4e029dc2bc40d263dcbc83c7c0b hostapd-0.4.1.ebuild 2057
MD5 a1ffc69d43fb9333ba712a41d0966775 hostapd-0.4.0-r1.ebuild 2161
MD5 32b4c4cf4e25ff18aa6d6592d424bfa4 hostapd-0.3.7.ebuild 2115
MD5 e1948d4ae3d8cd344d53ecb6166d2192 hostapd-0.2.6.ebuild 1021
-MD5 c23dba7983673658cb8757f04800fe6d ChangeLog 4140
+MD5 db960558253b0788e78fffe8f2ce560d ChangeLog 4314
MD5 52a4b928b36a98e530ae455b73f868f5 metadata.xml 462
+MD5 13619655135f469a5538e99c1d17efa6 files/hostapd-0.4.1-conf.d 425
MD5 ba14f3282c1fe345b2b9bc3233bc2f6d files/digest-hostapd-0.2.5 65
MD5 9cbbd29bd90ddbddaa1abe1e726e2fd1 files/digest-hostapd-0.2.6 65
MD5 3cb68569c34f2c059da88220513d9af4 files/digest-hostapd-0.3.7 150
+MD5 26b88f2fe60b7f9aaed70cd87d172f87 files/digest-hostapd-0.4.1 150
MD5 cf287b50f0ccd832a08fb3031281cd4f files/hostapd.init.d 858
+MD5 91e2e21afb898a103e2ac8fd7656b78d files/hostapd-0.4.1-init.d 982
MD5 e3ffdcd25f6e6c941ad878a0f71a7645 files/digest-hostapd-0.4.0-r1 150
MD5 13619655135f469a5538e99c1d17efa6 files/hostapd-0.4.0-conf.d 425
MD5 91e2e21afb898a103e2ac8fd7656b78d files/hostapd-0.4.0-init.d 982
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.1 b/net-wireless/hostapd/files/digest-hostapd-0.4.1
new file mode 100644
index 000000000000..cbbb758c84fe
--- /dev/null
+++ b/net-wireless/hostapd/files/digest-hostapd-0.4.1
@@ -0,0 +1,2 @@
+MD5 8db8550f53fe925140f1e8dfb9d59ba4 hostapd-0.4.1.tar.gz 262224
+MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
diff --git a/net-wireless/hostapd/files/hostapd-0.4.1-conf.d b/net-wireless/hostapd/files/hostapd-0.4.1-conf.d
new file mode 100644
index 000000000000..7ee716bf3933
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.4.1-conf.d
@@ -0,0 +1,12 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.4.1-conf.d,v 1.1 2005/05/23 11:47:42 brix Exp $
+
+# List of interfaces which needs to be started before hostapd
+INTERFACES="wlan0"
+
+# List of configuration files
+CONFIGS="/etc/hostapd/hostapd.conf"
+
+# Extra options to pass to hostapd
+OPTIONS="-B"
diff --git a/net-wireless/hostapd/files/hostapd-0.4.1-init.d b/net-wireless/hostapd/files/hostapd-0.4.1-init.d
new file mode 100644
index 000000000000..b469a555aa90
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.4.1-init.d
@@ -0,0 +1,50 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.4.1-init.d,v 1.1 2005/05/23 11:47:42 brix Exp $
+
+opts="start stop reload"
+
+depend() {
+ local iface
+
+ for iface in ${INTERFACES}; do
+ need net.${iface}
+ done
+
+ use logger
+}
+
+checkconfig() {
+ local file
+
+ for file in ${CONFIGS}; do
+ if [[ ! -r ${file} ]]; then
+ eerror "hostapd configuration file (${CONFIG}) not found"
+ return 1
+ fi
+ done
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting hostapd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/hostapd \
+ -- ${OPTIONS} ${CONFIGS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping hostapd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/hostapd
+ eend ${?}
+}
+
+reload() {
+ checkconfig || return 1
+
+ ebegin "Reloading hostapd configuration"
+ start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/hostapd
+ eend ${?}
+}
diff --git a/net-wireless/hostapd/hostapd-0.4.1.ebuild b/net-wireless/hostapd/hostapd-0.4.1.ebuild
new file mode 100644
index 000000000000..df625782d8d4
--- /dev/null
+++ b/net-wireless/hostapd/hostapd-0.4.1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.4.1.ebuild,v 1.1 2005/05/23 11:47:42 brix Exp $
+
+inherit toolchain-funcs
+
+MADWIFI_VERSION="2005-04-20"
+
+DESCRIPTION="HostAP wireless daemon"
+HOMEPAGE="http://hostap.epitest.fi"
+SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz
+ mirror://gentoo/madwifi-cvs-snapshot-${MADWIFI_VERSION}.tar.bz2"
+
+LICENSE="|| ( GPL-2 BSD )"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+
+IUSE="ipv6 ssl"
+
+DEPEND="sys-apps/sed"
+RDEPEND="ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ local CONFIG=${S}/.config
+
+ unpack ${A}
+
+ sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
+ ${S}/hostapd.conf
+
+ # toolchain setup
+ echo "CC = $(tc-getCC)" > ${CONFIG}
+
+ # authentication methods
+ echo "CONFIG_EAP=y" >> ${CONFIG}
+ echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
+ echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
+ echo "CONFIG_IAPP=y" >> ${CONFIG}
+ echo "CONFIG_PKCS12=y" >> ${CONFIG}
+ echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG}
+ echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG}
+ echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
+
+ if use ssl; then
+ # SSL authentication methods
+ echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
+ echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
+ echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
+ echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
+ fi
+
+ if use ipv6; then
+ echo "CONFIG_IPV6=y" >> ${CONFIG}
+ fi
+
+ # Linux specific drivers
+ echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
+
+ # Add include path for madwifi-driver headers
+ echo "CFLAGS += -I${WORKDIR}/madwifi" >> ${CONFIG}
+ echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ insinto /etc/hostapd
+ doins hostapd.conf hostapd.accept hostapd.deny
+
+ dosbin hostapd
+ dobin hostapd_cli
+
+ newinitd ${FILESDIR}/${P}-init.d hostapd
+ newconfd ${FILESDIR}/${P}-conf.d hostapd
+
+ doman hostapd.8 hostapd_cli.1
+
+ dodoc ChangeLog developer.txt README
+
+ docinto examples
+ dodoc madwifi.conf wired.conf
+}