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