summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjarke Istrup Pedersen <gurligebis@gentoo.org>2007-06-06 20:03:36 +0000
committerBjarke Istrup Pedersen <gurligebis@gentoo.org>2007-06-06 20:03:36 +0000
commitdacce336dc254cf6c2683ae348d65fef54d13059 (patch)
treec0da659dcb7f70a0daf62dd5f0d17613d95a7671 /net-wireless
parentStable on ppc64; bug #173834 (diff)
downloadgentoo-2-dacce336dc254cf6c2683ae348d65fef54d13059.tar.gz
gentoo-2-dacce336dc254cf6c2683ae348d65fef54d13059.tar.bz2
gentoo-2-dacce336dc254cf6c2683ae348d65fef54d13059.zip
Bumping to version 0.6.0, removed stalled files and added myself as maintainer
(Portage version: 2.1.2.9)
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/hostapd/ChangeLog15
-rw-r--r--net-wireless/hostapd/files/digest-hostapd-0.6.03
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.7-conf.d12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.7-init.d50
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.8-conf.d12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.4.8-init.d50
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.2-ssl.patch12
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.3-conf.d9
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.3-init.d50
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.3-os_get_random.patch36
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.4-conf.d9
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.4-init.d50
-rw-r--r--net-wireless/hostapd/files/hostapd-0.6.0-conf.d (renamed from net-wireless/hostapd/files/hostapd-0.5.2-conf.d)0
-rw-r--r--net-wireless/hostapd/files/hostapd-0.6.0-init.d (renamed from net-wireless/hostapd/files/hostapd-0.5.2-init.d)2
-rw-r--r--net-wireless/hostapd/hostapd-0.6.0.ebuild156
-rw-r--r--net-wireless/hostapd/metadata.xml4
16 files changed, 178 insertions, 292 deletions
diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog
index 50cc8ac5179e..f9038a2508b1 100644
--- a/net-wireless/hostapd/ChangeLog
+++ b/net-wireless/hostapd/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for net-wireless/hostapd
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.71 2007/03/11 00:53:22 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.72 2007/06/06 20:03:36 gurligebis Exp $
+
+*hostapd-0.6.0 (06 Jun 2007)
+
+ 06 Jun 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
+ -files/hostapd-0.4.7-conf.d, -files/hostapd-0.4.7-init.d,
+ -files/hostapd-0.4.8-conf.d, -files/hostapd-0.4.8-init.d,
+ -files/hostapd-0.5.2-conf.d, -files/hostapd-0.5.2-init.d,
+ -files/hostapd-0.5.2-ssl.patch, -files/hostapd-0.5.3-conf.d,
+ -files/hostapd-0.5.3-init.d, -files/hostapd-0.5.3-os_get_random.patch,
+ -files/hostapd-0.5.4-conf.d, -files/hostapd-0.5.4-init.d,
+ +files/hostapd-0.6.0-conf.d, +files/hostapd-0.6.0-init.d, metadata.xml,
+ +hostapd-0.6.0.ebuild:
+ Bumping to version 0.6.0, removed stalled files and added myself as maintainer
11 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> metadata.xml:
Fix metadata.xml white space.
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.6.0 b/net-wireless/hostapd/files/digest-hostapd-0.6.0
new file mode 100644
index 000000000000..00481029099d
--- /dev/null
+++ b/net-wireless/hostapd/files/digest-hostapd-0.6.0
@@ -0,0 +1,3 @@
+MD5 5aef0b0164917d14af57b8b7526d74f9 hostapd-0.6.0.tar.gz 779159
+RMD160 fff09239240b7e6a371d89e68e9c0b2c1e4444c1 hostapd-0.6.0.tar.gz 779159
+SHA256 afd3f892e31fec839d6e7cc852b6bbbad38d3f8f9a49c124217ac160f36bcc89 hostapd-0.6.0.tar.gz 779159
diff --git a/net-wireless/hostapd/files/hostapd-0.4.7-conf.d b/net-wireless/hostapd/files/hostapd-0.4.7-conf.d
deleted file mode 100644
index 30a0d6944386..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.4.7-conf.d
+++ /dev/null
@@ -1,12 +0,0 @@
-# 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.7-conf.d,v 1.1 2005/11/21 10:38:03 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.7-init.d b/net-wireless/hostapd/files/hostapd-0.4.7-init.d
deleted file mode 100644
index 44ecfb4aac39..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.4.7-init.d
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/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.7-init.d,v 1.2 2006/01/09 16:55:36 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"
- kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1
- eend ${?}
-}
diff --git a/net-wireless/hostapd/files/hostapd-0.4.8-conf.d b/net-wireless/hostapd/files/hostapd-0.4.8-conf.d
deleted file mode 100644
index c126624e3788..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.4.8-conf.d
+++ /dev/null
@@ -1,12 +0,0 @@
-# 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.8-conf.d,v 1.1 2006/02/14 12:09:44 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.8-init.d b/net-wireless/hostapd/files/hostapd-0.4.8-init.d
deleted file mode 100644
index 8dc5eb7cfd90..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.4.8-init.d
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/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.8-init.d,v 1.1 2006/02/14 12:09:44 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"
- kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1
- eend ${?}
-}
diff --git a/net-wireless/hostapd/files/hostapd-0.5.2-ssl.patch b/net-wireless/hostapd/files/hostapd-0.5.2-ssl.patch
deleted file mode 100644
index 77ab3ace4a31..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.5.2-ssl.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urp hostapd-0.5.2/Makefile hostapd-0.5.2-ssl/Makefile
---- hostapd-0.5.2/Makefile 2006-03-20 04:20:09.000000000 +0100
-+++ hostapd-0.5.2-ssl/Makefile 2006-03-26 14:01:18.000000000 +0200
-@@ -249,7 +249,7 @@ ifdef CONFIG_IPV6
- CFLAGS += -DCONFIG_IPV6
- endif
-
--ALL=hostapd hostapd_cli nt_password_hash hlr_auc_gw
-+ALL=hostapd hostapd_cli
-
- all: verify_config $(ALL)
-
diff --git a/net-wireless/hostapd/files/hostapd-0.5.3-conf.d b/net-wireless/hostapd/files/hostapd-0.5.3-conf.d
deleted file mode 100644
index 7d05735eb3b4..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.5.3-conf.d
+++ /dev/null
@@ -1,9 +0,0 @@
-# Space separated List of interfaces which needs to be started before
-# hostapd
-INTERFACES="wlan0"
-
-# Space separated list of configuration files
-CONFIGS="/etc/hostapd/hostapd.conf"
-
-# Extra options to pass to hostapd, see hostapd(8)
-OPTIONS=""
diff --git a/net-wireless/hostapd/files/hostapd-0.5.3-init.d b/net-wireless/hostapd/files/hostapd-0.5.3-init.d
deleted file mode 100644
index a2a00030de7f..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.5.3-init.d
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.5.3-init.d,v 1.1 2006/04/29 14:25:14 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 --exec /usr/sbin/hostapd \
- -- -B ${OPTIONS} ${CONFIGS}
- eend ${?}
-}
-
-stop() {
- ebegin "Stopping hostapd"
- start-stop-daemon --stop --exec /usr/sbin/hostapd
- eend ${?}
-}
-
-reload() {
- checkconfig || return 1
-
- ebegin "Reloading hostapd configuration"
- kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1
- eend ${?}
-}
diff --git a/net-wireless/hostapd/files/hostapd-0.5.3-os_get_random.patch b/net-wireless/hostapd/files/hostapd-0.5.3-os_get_random.patch
deleted file mode 100644
index d494d1e84d94..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.5.3-os_get_random.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -ur hostapd-0.5.3/hlr_auc_gw.c hostapd-0.5.3-os_get_random/hlr_auc_gw.c
---- hostapd-0.5.3/hlr_auc_gw.c 2006-03-11 19:15:15.000000000 +0100
-+++ hostapd-0.5.3-os_get_random/hlr_auc_gw.c 2006-04-29 15:33:13.000000000 +0200
-@@ -204,7 +204,7 @@
- size_t res_len;
-
- #ifdef AKA_USE_MILENAGE
-- os_get_random(rand, EAP_AKA_RAND_LEN);
-+ hostapd_get_rand(rand, EAP_AKA_RAND_LEN);
- res_len = EAP_AKA_RES_MAX_LEN;
- inc_byte_array(test_sqn, 6);
- printf("AKA: Milenage with SQN=%02x%02x%02x%02x%02x%02x\n",
-diff -ur hostapd-0.5.3/Makefile hostapd-0.5.3-os_get_random/Makefile
---- hostapd-0.5.3/Makefile 2006-04-28 06:10:57.000000000 +0200
-+++ hostapd-0.5.3-os_get_random/Makefile 2006-04-29 15:37:04.000000000 +0200
-@@ -343,7 +343,7 @@
- $(CC) -o hostapd_cli hostapd_cli.o $(DIR_WPA_SUPPLICANT)/wpa_ctrl.o
-
- NOBJS = nt_password_hash.o $(DIR_WPA_SUPPLICANT)/ms_funcs.o sha1.o rc4.o md5.o
--NOBJS += $(DIR_WPA_SUPPLICANT)/crypto.o
-+NOBJS += $(DIR_WPA_SUPPLICANT)/crypto.o os_$(CONFIG_OS).o
- ifdef TLS_FUNCS
- LIBS_n += -lcrypto
- endif
-diff -ur hostapd-0.5.3/ms_funcs.c hostapd-0.5.3-os_get_random/ms_funcs.c
---- hostapd-0.5.3/ms_funcs.c 2006-04-28 06:10:57.000000000 +0200
-+++ hostapd-0.5.3-os_get_random/ms_funcs.c 2006-04-29 15:32:37.000000000 +0200
-@@ -368,7 +368,7 @@
-
- memset(pw_block, 0, PWBLOCK_LEN);
- offset = (256 - password_len) * 2;
-- os_get_random(pw_block, offset);
-+ hostapd_get_rand(pw_block, offset);
- for (i = 0; i < password_len; i++)
- pw_block[offset + i * 2] = password[i];
- /*
diff --git a/net-wireless/hostapd/files/hostapd-0.5.4-conf.d b/net-wireless/hostapd/files/hostapd-0.5.4-conf.d
deleted file mode 100644
index 7d05735eb3b4..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.5.4-conf.d
+++ /dev/null
@@ -1,9 +0,0 @@
-# Space separated List of interfaces which needs to be started before
-# hostapd
-INTERFACES="wlan0"
-
-# Space separated list of configuration files
-CONFIGS="/etc/hostapd/hostapd.conf"
-
-# Extra options to pass to hostapd, see hostapd(8)
-OPTIONS=""
diff --git a/net-wireless/hostapd/files/hostapd-0.5.4-init.d b/net-wireless/hostapd/files/hostapd-0.5.4-init.d
deleted file mode 100644
index ed54fdeeb891..000000000000
--- a/net-wireless/hostapd/files/hostapd-0.5.4-init.d
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.5.4-init.d,v 1.1 2006/06/21 19:59:36 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 --exec /usr/sbin/hostapd \
- -- -B ${OPTIONS} ${CONFIGS}
- eend ${?}
-}
-
-stop() {
- ebegin "Stopping hostapd"
- start-stop-daemon --stop --exec /usr/sbin/hostapd
- eend ${?}
-}
-
-reload() {
- checkconfig || return 1
-
- ebegin "Reloading hostapd configuration"
- kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1
- eend ${?}
-}
diff --git a/net-wireless/hostapd/files/hostapd-0.5.2-conf.d b/net-wireless/hostapd/files/hostapd-0.6.0-conf.d
index 7d05735eb3b4..7d05735eb3b4 100644
--- a/net-wireless/hostapd/files/hostapd-0.5.2-conf.d
+++ b/net-wireless/hostapd/files/hostapd-0.6.0-conf.d
diff --git a/net-wireless/hostapd/files/hostapd-0.5.2-init.d b/net-wireless/hostapd/files/hostapd-0.6.0-init.d
index 0fb3cd4ee169..655966a44ffa 100644
--- a/net-wireless/hostapd/files/hostapd-0.5.2-init.d
+++ b/net-wireless/hostapd/files/hostapd-0.6.0-init.d
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.5.2-init.d,v 1.1 2006/03/20 08:14:51 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.0-init.d,v 1.1 2007/06/06 20:03:36 gurligebis Exp $
opts="start stop reload"
diff --git a/net-wireless/hostapd/hostapd-0.6.0.ebuild b/net-wireless/hostapd/hostapd-0.6.0.ebuild
new file mode 100644
index 000000000000..6a1bebd1c4f1
--- /dev/null
+++ b/net-wireless/hostapd/hostapd-0.6.0.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.6.0.ebuild,v 1.1 2007/06/06 20:03:36 gurligebis Exp $
+
+inherit toolchain-funcs linux-info
+
+DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
+HOMEPAGE="http://hostap.epitest.fi"
+SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 BSD )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ipv6 logwatch madwifi ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )
+ madwifi? ( || ( net-wireless/madwifi-ng net-wireless/madwifi-old ) )"
+RDEPEND="${RDEPEND}"
+
+S="${S}/hostapd"
+
+generate_config() {
+ local CONFIG="${S}/.config"
+
+ # toolchain setup
+ echo "CC = $(tc-getCC)" > ${CONFIG}
+
+ # EAP authentication methods
+ echo "CONFIG_EAP=y" >> ${CONFIG}
+ echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
+
+ if use ssl; then
+ # SSL authentication methods
+ echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
+ echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
+ echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
+ echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
+ fi
+
+ echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
+ echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
+ echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
+ echo "CONFIG_EAP_PAX=y" >> ${CONFIG}
+ echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
+ echo "CONFIG_EAP_SAKE=y" >> ${CONFIG}
+ echo "CONFIG_EAP_GPSK=y" >> ${CONFIG}
+ echo "CONFIG_EAP_GPSK_SHA256=y" >> ${CONFIG}
+
+ # drivers
+ echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
+ echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
+
+ if use madwifi; then
+ # Add include path for madwifi-driver headers
+ echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
+ echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
+ fi
+
+ if [ -e "${KV_DIR}"/net/mac80211 ]; then
+ # Kernel source has the mac80211 subsystem, so we enable the driver
+ echo "CONFIG_DRIVER_DEVICESCAPE=y" >> ${CONFIG}
+ echo "WIRELESS_DEV=\"${KV_DIR}\"" >> ${CONFIG}
+ echo "CFLAGS += -I\$(WIRELESS_DEV)/net/mac80211" >> ${CONFIG}
+ fi
+
+ # misc
+ echo "CONFIG_PKCS12=y" >> ${CONFIG}
+ echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG}
+ echo "CONFIG_IAPP=y" >> ${CONFIG}
+ echo "CONFIG_IEEE80211R=y" >> ${CONFIG}
+ echo "CONFIG_IEEE80211W=y" >> ${CONFIG}
+ echo "CONFIG_PEERKEY=y" >> ${CONFIG}
+ echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG}
+
+ if use ipv6; then
+ # IPv5 support
+ echo "CONFIG_IPV6=y" >> ${CONFIG}
+ fi
+
+ # TODO: Add support for BSD drivers
+}
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
+ "${S}/hostapd.conf"
+
+ generate_config
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ if use ssl; then
+ emake nt_password_hash || die "emake nt_password_hash failed"
+ emake hlr_auc_gw || die "emake hlr_auc_gw failed"
+ fi
+}
+
+src_install() {
+ insinto /etc/hostapd
+ doins hostapd.conf hostapd.accept hostapd.deny \
+ hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk
+
+ dosbin hostapd
+ dobin hostapd_cli
+
+ use ssl && dobin nt_password_hash
+ use ssl && dobin hlr_auc_gw
+
+ 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
+
+ if use logwatch; then
+ insinto /etc/log.d/conf/services/
+ doins logwatch/hostapd.conf
+
+ exeinto /etc/log.d/scripts/services/
+ doexe logwatch/hostapd
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo "In order to use ${PN} you need to set up your wireless card"
+ einfo "for master mode in /etc/conf.d/net and then start"
+ einfo "/etc/init.d/hostapd."
+ einfo
+ einfo "Example configuration:"
+ einfo
+ einfo "config_wlan0=( \"192.168.1.1/24\" )"
+ einfo "channel_wlan0=\"6\""
+ einfo "essid_wlan0=\"test\""
+ einfo "mode_wlan0=\"master\""
+ einfo
+ if use madwifi; then
+ einfo "This package now compiles against the headers installed by"
+ einfo "the madwifi driver. You should re-emerge ${PN} after"
+ einfo "upgrading your madwifi driver."
+ einfo
+ fi
+ if [ -e "${KV_DIR}"/net/mac80211 ]; then
+ einfo "This package now compiles against the headers installed by"
+ einfo "the kernel source for the mac80211 driver. You should "
+ einfo "re-emerge ${PN} after upgrading your kernel source."
+ fi
+}
diff --git a/net-wireless/hostapd/metadata.xml b/net-wireless/hostapd/metadata.xml
index be4684244686..4cc994c16779 100644
--- a/net-wireless/hostapd/metadata.xml
+++ b/net-wireless/hostapd/metadata.xml
@@ -2,6 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>mobile</herd>
+ <maintainer>
+ <email>gurligebis@gentoo.org</email>
+ <name>Bjarke Istrup Pedersen</name>
+ </maintainer>
<longdescription>
User space daemon for the hostap-driver.
Extended IEEE 802.11 management, IEEE 802.1X Authenticator,