1 |
gurligebis 08/12/14 17:43:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hostapd-0.6.5.ebuild |
5 |
Removed: hostapd-0.6.4.ebuild |
6 |
Log: |
7 |
Bumping to 0.6.5 and removing broken nl80211 check |
8 |
(Portage version: 2.2_rc17/cvs/Linux 2.6.28-rc8 i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.87 net-wireless/hostapd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/ChangeLog?rev=1.87&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/ChangeLog?rev=1.87&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/ChangeLog?r1=1.86&r2=1.87 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v |
20 |
retrieving revision 1.86 |
21 |
retrieving revision 1.87 |
22 |
diff -u -r1.86 -r1.87 |
23 |
--- ChangeLog 23 Aug 2008 05:21:57 -0000 1.86 |
24 |
+++ ChangeLog 14 Dec 2008 17:43:06 -0000 1.87 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-wireless/hostapd |
27 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.86 2008/08/23 05:21:57 cardoe Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.87 2008/12/14 17:43:06 gurligebis Exp $ |
30 |
+ |
31 |
+*hostapd-0.6.5 (14 Dec 2008) |
32 |
+ |
33 |
+ 14 Dec 2008; Bjarke Istrup Pedersen <gurligebis@g.o> |
34 |
+ -files/hostapd-0.6.4-conf.d, -files/hostapd-0.6.4-init.d, |
35 |
+ +files/hostapd-0.6.5-conf.d, +files/hostapd-0.6.5-init.d, |
36 |
+ -hostapd-0.6.4.ebuild, +hostapd-0.6.5.ebuild: |
37 |
+ Bumping to 0.6.5 and removing broken nl80211 check |
38 |
|
39 |
23 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml: |
40 |
add GLEP 56 USE flag desc from use.local.desc |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-wireless/hostapd/hostapd-0.6.5.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.6.5.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.6.5.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: hostapd-0.6.5.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 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.5.ebuild,v 1.1 2008/12/14 17:43:06 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" |
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 |
echo "CONFIG_EAP_GTC=y" >> ${CONFIG} |
94 |
echo "CONFIG_EAP_SIM=y" >> ${CONFIG} |
95 |
echo "CONFIG_EAP_AKA=y" >> ${CONFIG} |
96 |
echo "CONFIG_EAP_PAX=y" >> ${CONFIG} |
97 |
echo "CONFIG_EAP_PSK=y" >> ${CONFIG} |
98 |
echo "CONFIG_EAP_SAKE=y" >> ${CONFIG} |
99 |
echo "CONFIG_EAP_GPSK=y" >> ${CONFIG} |
100 |
echo "CONFIG_EAP_GPSK_SHA256=y" >> ${CONFIG} |
101 |
|
102 |
einfo "Enabling drivers: " |
103 |
|
104 |
# drivers |
105 |
echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG} |
106 |
einfo " HostAP driver enabled" |
107 |
echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG} |
108 |
einfo " Wired driver enabled" |
109 |
echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG} |
110 |
einfo " Prism54 driver enabled" |
111 |
|
112 |
if use madwifi; then |
113 |
# Add include path for madwifi-driver headers |
114 |
einfo " Madwifi driver enabled" |
115 |
echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG} |
116 |
echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG} |
117 |
else |
118 |
einfo " Madwifi driver disabled" |
119 |
fi |
120 |
|
121 |
if [[ ${KV_MAJOR} -ge 2 && ${KV_MINOR} -ge 6 || ${KV_PATCH} -ge 26 ]] ; then |
122 |
# Test if header version is new enough (2.6.26+) |
123 |
if [ "$(grep NL80211_MNTR_FLAG_COOK_FRAMES /usr/include/linux/nl80211.h)" ]; then |
124 |
einfo " nl80211 driver enabled" |
125 |
echo "CONFIG_DRIVER_NL80211=y" >> ${CONFIG} |
126 |
echo "CFLAGS += -I/usr/include/netlink" >> ${CONFIG} |
127 |
echo "LIBS += -L/usr/lib" >> ${CONFIG} |
128 |
else |
129 |
einfo " nl80211 driver disabled (due to header version below 2.6.26)" |
130 |
fi |
131 |
else |
132 |
einfo " nl80211 driver disabled (due to kernel version below 2.6.26)" |
133 |
fi |
134 |
|
135 |
# misc |
136 |
echo "CONFIG_PKCS12=y" >> ${CONFIG} |
137 |
echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG} |
138 |
echo "CONFIG_IAPP=y" >> ${CONFIG} |
139 |
echo "CONFIG_IEEE80211R=y" >> ${CONFIG} |
140 |
echo "CONFIG_IEEE80211W=y" >> ${CONFIG} |
141 |
echo "CONFIG_PEERKEY=y" >> ${CONFIG} |
142 |
echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG} |
143 |
|
144 |
if use ipv6; then |
145 |
# IPv6 support |
146 |
echo "CONFIG_IPV6=y" >> ${CONFIG} |
147 |
fi |
148 |
|
149 |
# TODO: Add support for BSD drivers |
150 |
} |
151 |
|
152 |
src_unpack() { |
153 |
unpack ${A} |
154 |
|
155 |
cd "${S}" |
156 |
|
157 |
sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \ |
158 |
"${S}/hostapd.conf" |
159 |
|
160 |
generate_config |
161 |
} |
162 |
|
163 |
src_compile() { |
164 |
emake || die "emake failed" |
165 |
|
166 |
if use ssl; then |
167 |
emake nt_password_hash || die "emake nt_password_hash failed" |
168 |
emake hlr_auc_gw || die "emake hlr_auc_gw failed" |
169 |
fi |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
insinto /etc/hostapd |
174 |
doins hostapd.conf hostapd.accept hostapd.deny \ |
175 |
hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk |
176 |
|
177 |
dosbin hostapd |
178 |
dobin hostapd_cli |
179 |
|
180 |
use ssl && dobin nt_password_hash |
181 |
use ssl && dobin hlr_auc_gw |
182 |
|
183 |
newinitd "${FILESDIR}"/${P}-init.d hostapd |
184 |
newconfd "${FILESDIR}"/${P}-conf.d hostapd |
185 |
|
186 |
doman hostapd.8 hostapd_cli.1 |
187 |
|
188 |
dodoc ChangeLog developer.txt README |
189 |
|
190 |
docinto examples |
191 |
dodoc wired.conf |
192 |
|
193 |
if use logwatch; then |
194 |
insinto /etc/log.d/conf/services/ |
195 |
doins logwatch/hostapd.conf |
196 |
|
197 |
exeinto /etc/log.d/scripts/services/ |
198 |
doexe logwatch/hostapd |
199 |
fi |
200 |
} |
201 |
|
202 |
pkg_postinst() { |
203 |
einfo |
204 |
einfo "In order to use ${PN} you need to set up your wireless card" |
205 |
einfo "for master mode in /etc/conf.d/net and then start" |
206 |
einfo "/etc/init.d/hostapd." |
207 |
einfo |
208 |
einfo "Example configuration:" |
209 |
einfo |
210 |
einfo "config_wlan0=( \"192.168.1.1/24\" )" |
211 |
einfo "channel_wlan0=\"6\"" |
212 |
einfo "essid_wlan0=\"test\"" |
213 |
einfo "mode_wlan0=\"master\"" |
214 |
einfo |
215 |
if use madwifi; then |
216 |
einfo "This package compiles against the headers installed by" |
217 |
einfo "madwifi-old, madwifi-ng or madwifi-ng-tools." |
218 |
einfo "You should remerge ${PN} after upgrading these packages." |
219 |
einfo |
220 |
fi |
221 |
#if [ -e "${KV_DIR}"/net/mac80211 ]; then |
222 |
# einfo "This package now compiles against the headers installed by" |
223 |
# einfo "the kernel source for the mac80211 driver. You should " |
224 |
# einfo "re-emerge ${PN} after upgrading your kernel source." |
225 |
#fi |
226 |
} |