summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-04-29 19:49:37 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-04-29 19:49:37 +0000
commit10f110425b424ee136bf6fe3e7a732cfb5942f9f (patch)
tree15e79cd6a05beb73ad862c624c433209814a8cb2
parentCleaning for mirror syntax. THIS IS THE LAST ONE AT LAST :) (diff)
downloadhistorical-10f110425b424ee136bf6fe3e7a732cfb5942f9f.tar.gz
historical-10f110425b424ee136bf6fe3e7a732cfb5942f9f.tar.bz2
historical-10f110425b424ee136bf6fe3e7a732cfb5942f9f.zip
Install hostapd_cli and man pages, restructured init script.
Package-Manager: portage-2.0.51.20-r5
-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.0-r12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.0-conf.d12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.0-init.d50
-rw-r--r--net-wireless/hostapd/hostapd-0.4.0-r1.ebuild86
6 files changed, 162 insertions, 2 deletions
diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog
index 7d902f715d3d..92e595b015b8 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.26 2005/04/27 09:59:26 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.27 2005/04/29 19:49:37 brix Exp $
+
+*hostapd-0.4.0-r1 (29 Apr 2005)
+
+ 29 Apr 2005; <brix@gentoo.org> +files/hostapd-0.4.0-conf.d,
+ +files/hostapd-0.4.0-init.d, +hostapd-0.4.0-r1.ebuild:
+ Install hostapd_cli and man pages, restructured init script.
*hostapd-0.4.0 (27 Apr 2005)
diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest
index df0bb2af6797..a76334d608ae 100644
--- a/net-wireless/hostapd/Manifest
+++ b/net-wireless/hostapd/Manifest
@@ -1,11 +1,15 @@
MD5 ffda06509787f2a0d4d8687072ab000d hostapd-0.2.5.ebuild 1020
+MD5 a1ffc69d43fb9333ba712a41d0966775 hostapd-0.4.0-r1.ebuild 2161
MD5 32b4c4cf4e25ff18aa6d6592d424bfa4 hostapd-0.3.7.ebuild 2115
MD5 ed3d6ef7057c31bbe73e0f5d67fd0536 hostapd-0.4.0.ebuild 2192
MD5 e1948d4ae3d8cd344d53ecb6166d2192 hostapd-0.2.6.ebuild 1021
-MD5 6c450148d7fa095ada94c6cd68e343a7 ChangeLog 3846
+MD5 d258fceec6b9c9756714de0f491da579 ChangeLog 4062
MD5 52a4b928b36a98e530ae455b73f868f5 metadata.xml 462
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 e3ffdcd25f6e6c941ad878a0f71a7645 files/digest-hostapd-0.4.0 150
MD5 cf287b50f0ccd832a08fb3031281cd4f files/hostapd.init.d 858
+MD5 e3ffdcd25f6e6c941ad878a0f71a7645 files/digest-hostapd-0.4.0-r1 150
+MD5 34f92882ba2c9834e9bd023604b45662 files/hostapd-0.4.0-conf.d 424
+MD5 91e2e21afb898a103e2ac8fd7656b78d files/hostapd-0.4.0-init.d 982
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.0-r1 b/net-wireless/hostapd/files/digest-hostapd-0.4.0-r1
new file mode 100644
index 000000000000..cbd70657b20a
--- /dev/null
+++ b/net-wireless/hostapd/files/digest-hostapd-0.4.0-r1
@@ -0,0 +1,2 @@
+MD5 e94731593b492bfad7a6b341c0514266 hostapd-0.4.0.tar.gz 257771
+MD5 efb9130cf1dcb829caa43af4e0bee2fb madwifi-cvs-snapshot-2005-04-20.tar.bz2 1968548
diff --git a/net-wireless/hostapd/files/hostapd-0.4.0-conf.d b/net-wireless/hostapd/files/hostapd-0.4.0-conf.d
new file mode 100644
index 000000000000..35db809456e7
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.4.0-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.0-conf.d,v 1.1 2005/04/29 19:49:37 brix Exp $
+
+# List of interface 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.0-init.d b/net-wireless/hostapd/files/hostapd-0.4.0-init.d
new file mode 100644
index 000000000000..40b1afd79e2d
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.4.0-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.0-init.d,v 1.1 2005/04/29 19:49:37 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.0-r1.ebuild b/net-wireless/hostapd/hostapd-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..62af6b724f85
--- /dev/null
+++ b/net-wireless/hostapd/hostapd-0.4.0-r1.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.0-r1.ebuild,v 1.1 2005/04/29 19:49:37 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
+}