Gentoo Archives: gentoo-commits

From: "Bjarke Istrup Pedersen (gurligebis)" <gurligebis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/hostapd: ChangeLog hostapd-0.7.3.ebuild hostapd-0.6.10.ebuild hostapd-0.6.8.ebuild hostapd-0.7.2.ebuild
Date: Wed, 08 Sep 2010 15:23:04
Message-Id: 20100908152300.6B1F920051@flycatcher.gentoo.org
1 gurligebis 10/09/08 15:23:00
2
3 Modified: ChangeLog
4 Added: hostapd-0.7.3.ebuild
5 Removed: hostapd-0.6.10.ebuild hostapd-0.6.8.ebuild
6 hostapd-0.7.2.ebuild
7 Log:
8 Bumping to 0.7.3
9
10 (Portage version: 2.2_rc77/cvs/Linux i686)
11
12 Revision Changes Path
13 1.108 net-wireless/hostapd/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/hostapd/ChangeLog?rev=1.108&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/hostapd/ChangeLog?rev=1.108&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/hostapd/ChangeLog?r1=1.107&r2=1.108
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v
22 retrieving revision 1.107
23 retrieving revision 1.108
24 diff -u -r1.107 -r1.108
25 --- ChangeLog 23 May 2010 15:01:04 -0000 1.107
26 +++ ChangeLog 8 Sep 2010 15:23:00 -0000 1.108
27 @@ -1,6 +1,14 @@
28 # ChangeLog for net-wireless/hostapd
29 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.107 2010/05/23 15:01:04 gurligebis Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.108 2010/09/08 15:23:00 gurligebis Exp $
32 +
33 +*hostapd-0.7.3 (08 Sep 2010)
34 +
35 + 08 Sep 2010; Bjarke Istrup Pedersen <gurligebis@g.o>
36 + -hostapd-0.6.8.ebuild, -hostapd-0.6.10.ebuild, -hostapd-0.7.2.ebuild,
37 + +hostapd-0.7.3.ebuild:
38 + Bumping to 0.7.3 and removing old versions.
39 + This version is the first in the 0.7 stable series from upstream.
40
41 *hostapd-0.7.2 (23 May 2010)
42
43
44
45
46 1.1 net-wireless/hostapd/hostapd-0.7.3.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/hostapd/hostapd-0.7.3.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/hostapd/hostapd-0.7.3.ebuild?rev=1.1&content-type=text/plain
50
51 Index: hostapd-0.7.3.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.7.3.ebuild,v 1.1 2010/09/08 15:23:00 gurligebis Exp $
56
57 EAPI="2"
58
59 inherit toolchain-funcs eutils
60
61 DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
62 HOMEPAGE="http://hostap.epitest.fi"
63 SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
64
65 LICENSE="|| ( GPL-2 BSD )"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86"
68 IUSE="debug ipv6 logwatch madwifi +ssl +wps"
69
70 DEPEND="ssl? ( dev-libs/openssl )
71 >=dev-libs/libnl-1.1
72 madwifi? ( ||
73 ( >net-wireless/madwifi-ng-tools-0.9.3
74 net-wireless/madwifi-old ) )"
75 RDEPEND="${DEPEND}"
76
77 S="${S}/hostapd"
78
79 src_prepare() {
80 sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
81 "${S}/hostapd.conf"
82 }
83
84 src_configure() {
85 local CONFIG="${S}/.config"
86
87 # toolchain setup
88 echo "CC = $(tc-getCC)" > ${CONFIG}
89
90 # EAP authentication methods
91 echo "CONFIG_EAP=y" >> ${CONFIG}
92 echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
93
94 if use ssl; then
95 # SSL authentication methods
96 echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
97 echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
98 echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
99 echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
100 fi
101
102 if use wps; then
103 # Enable Wi-Fi Protected Setup
104 echo "CONFIG_WPS=y" >> ${CONFIG}
105 echo "CONFIG_WPS_UPNP=y" >> ${CONFIG}
106 einfo "Enabling Wi-Fi Protected Setup support"
107 fi
108
109 echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
110 echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
111 echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
112 echo "CONFIG_EAP_PAX=y" >> ${CONFIG}
113 echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
114 echo "CONFIG_EAP_SAKE=y" >> ${CONFIG}
115 echo "CONFIG_EAP_GPSK=y" >> ${CONFIG}
116 echo "CONFIG_EAP_GPSK_SHA256=y" >> ${CONFIG}
117
118 einfo "Enabling drivers: "
119
120 # drivers
121 echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
122 einfo " HostAP driver enabled"
123 echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
124 einfo " Wired driver enabled"
125 echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
126 einfo " Prism54 driver enabled"
127 echo "CONFIG_DRIVER_NONE=y" >> ${CONFIG}
128 einfo " None driver enabled"
129
130 if use madwifi; then
131 # Add include path for madwifi-driver headers
132 einfo " Madwifi driver enabled"
133 echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
134 echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
135 else
136 einfo " Madwifi driver disabled"
137 fi
138
139 einfo " nl80211 driver enabled"
140 echo "CONFIG_DRIVER_NL80211=y" >> ${CONFIG}
141 echo "CFLAGS += -I/usr/include/netlink" >> ${CONFIG}
142 echo "LIBS += -L/usr/lib" >> ${CONFIG}
143
144 # misc
145 echo "CONFIG_PKCS12=y" >> ${CONFIG}
146 echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG}
147 echo "CONFIG_IAPP=y" >> ${CONFIG}
148 echo "CONFIG_IEEE80211R=y" >> ${CONFIG}
149 echo "CONFIG_IEEE80211W=y" >> ${CONFIG}
150 echo "CONFIG_IEEE80211N=y" >> ${CONFIG}
151 echo "CONFIG_PEERKEY=y" >> ${CONFIG}
152 echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG}
153
154 if use ipv6; then
155 # IPv6 support
156 echo "CONFIG_IPV6=y" >> ${CONFIG}
157 fi
158
159 if ! use debug; then
160 echo "CONFIG_NO_STDOUT_DEBUG=y" >> ${CONFIG}
161 fi
162
163 # TODO: Add support for BSD drivers
164
165 default_src_configure
166 }
167
168 src_compile() {
169 default_src_compile
170
171 #emake || die "emake failed"
172
173 if use ssl; then
174 emake nt_password_hash || die "emake nt_password_hash failed"
175 emake hlr_auc_gw || die "emake hlr_auc_gw failed"
176 fi
177 }
178
179 src_install() {
180 insinto /etc/hostapd
181 doins hostapd.conf hostapd.accept hostapd.deny \
182 hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk
183
184 dosbin hostapd
185 dobin hostapd_cli
186
187 use ssl && dobin nt_password_hash
188 use ssl && dobin hlr_auc_gw
189
190 newinitd "${FILESDIR}"/${PN}-init.d hostapd
191 newconfd "${FILESDIR}"/${PN}-conf.d hostapd
192
193 doman hostapd.8 hostapd_cli.1
194
195 dodoc ChangeLog README
196 if use wps; then
197 dodoc README-WPS
198 fi
199
200 docinto examples
201 dodoc wired.conf
202
203 if use logwatch; then
204 insinto /etc/log.d/conf/services/
205 doins logwatch/hostapd.conf
206
207 exeinto /etc/log.d/scripts/services/
208 doexe logwatch/hostapd
209 fi
210 }
211
212 pkg_postinst() {
213 einfo
214 einfo "In order to use ${PN} you need to set up your wireless card"
215 einfo "for master mode in /etc/conf.d/net and then start"
216 einfo "/etc/init.d/hostapd."
217 einfo
218 einfo "Example configuration:"
219 einfo
220 einfo "config_wlan0=( \"192.168.1.1/24\" )"
221 einfo "channel_wlan0=\"6\""
222 einfo "essid_wlan0=\"test\""
223 einfo "mode_wlan0=\"master\""
224 einfo
225 if use madwifi; then
226 einfo "This package compiles against the headers installed by"
227 einfo "madwifi-old, madwifi-ng or madwifi-ng-tools."
228 einfo "You should remerge ${PN} after upgrading these packages."
229 einfo
230 einfo "Since you are using the madwifi-ng driver, you should disable or"
231 einfo "comment out wme_enabled from hostapd.conf, since it will"
232 einfo "cause problems otherwise (see bug #260377"
233 fi
234 #if [ -e "${KV_DIR}"/net/mac80211 ]; then
235 # einfo "This package now compiles against the headers installed by"
236 # einfo "the kernel source for the mac80211 driver. You should "
237 # einfo "re-emerge ${PN} after upgrading your kernel source."
238 #fi
239
240 if use wps; then
241 einfo "You have enabled Wi-Fi Protected Setup support, please"
242 einfo "read the README-WPS file in /usr/share/doc/${P}"
243 einfo "for info on how to use WPS"
244 fi
245 }