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.4.9.ebuild hostapd-0.6.1.ebuild hostapd-0.6.0.ebuild
Date: Mon, 10 Dec 2007 09:42:13
Message-Id: E1J1f9H-0003ZT-9P@stork.gentoo.org
1 gurligebis 07/12/10 09:42:03
2
3 Modified: ChangeLog hostapd-0.4.9.ebuild
4 Added: hostapd-0.6.1.ebuild
5 Removed: hostapd-0.6.0.ebuild
6 Log:
7 Bumping to version 0.6.1
8 (Portage version: 2.1.4_rc3)
9
10 Revision Changes Path
11 1.76 net-wireless/hostapd/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/ChangeLog?rev=1.76&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/ChangeLog?rev=1.76&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/ChangeLog?r1=1.75&r2=1.76
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v
20 retrieving revision 1.75
21 retrieving revision 1.76
22 diff -u -r1.75 -r1.76
23 --- ChangeLog 10 Sep 2007 23:02:17 -0000 1.75
24 +++ ChangeLog 10 Dec 2007 09:42:02 -0000 1.76
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-wireless/hostapd
27 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.75 2007/09/10 23:02:17 gurligebis Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.76 2007/12/10 09:42:02 gurligebis Exp $
30 +
31 +*hostapd-0.6.1 (10 Dec 2007)
32 +
33 + 10 Dec 2007; Bjarke Istrup Pedersen <gurligebis@g.o>
34 + -files/hostapd-0.6.0-conf.d, -files/hostapd-0.6.0-init.d,
35 + +files/hostapd-0.6.1-conf.d, +files/hostapd-0.6.1-init.d,
36 + -hostapd-0.6.0.ebuild, +hostapd-0.6.1.ebuild:
37 + Bumping to version 0.6.1
38
39 10 Sep 2007; Bjarke Istrup Pedersen <gurligebis@g.o>
40 hostapd-0.6.0.ebuild:
41
42
43
44 1.6 net-wireless/hostapd/hostapd-0.4.9.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.4.9.ebuild?rev=1.6&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.4.9.ebuild?rev=1.6&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.4.9.ebuild?r1=1.5&r2=1.6
49
50 Index: hostapd-0.4.9.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.4.9.ebuild,v
53 retrieving revision 1.5
54 retrieving revision 1.6
55 diff -u -r1.5 -r1.6
56 --- hostapd-0.4.9.ebuild 19 Jun 2007 07:50:22 -0000 1.5
57 +++ hostapd-0.4.9.ebuild 10 Dec 2007 09:42:02 -0000 1.6
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2007 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.4.9.ebuild,v 1.5 2007/06/19 07:50:22 genstef Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.4.9.ebuild,v 1.6 2007/12/10 09:42:02 gurligebis Exp $
63
64 inherit toolchain-funcs
65
66 @@ -28,7 +28,7 @@
67 unpack ${A}
68
69 sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
70 - ${S}/hostapd.conf
71 + "${S}/hostapd.conf"
72
73 # toolchain setup
74 echo "CC = $(tc-getCC)" > ${CONFIG}
75 @@ -79,8 +79,8 @@
76 dosbin hostapd
77 dobin hostapd_cli
78
79 - newinitd ${FILESDIR}/${P}-init.d hostapd
80 - newconfd ${FILESDIR}/${P}-conf.d hostapd
81 + newinitd "${FILESDIR}/${P}-init.d" hostapd
82 + newconfd "${FILESDIR}/${P}-conf.d" hostapd
83
84 doman hostapd.8 hostapd_cli.1
85
86
87
88
89 1.1 net-wireless/hostapd/hostapd-0.6.1.ebuild
90
91 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.6.1.ebuild?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/hostapd/hostapd-0.6.1.ebuild?rev=1.1&content-type=text/plain
93
94 Index: hostapd-0.6.1.ebuild
95 ===================================================================
96 # Copyright 1999-2007 Gentoo Foundation
97 # Distributed under the terms of the GNU General Public License v2
98 # $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.6.1.ebuild,v 1.1 2007/12/10 09:42:02 gurligebis Exp $
99
100 inherit toolchain-funcs linux-info
101
102 DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
103 HOMEPAGE="http://hostap.epitest.fi"
104 SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz"
105
106 LICENSE="|| ( GPL-2 BSD )"
107 SLOT="0"
108 KEYWORDS="~amd64 ~ppc ~x86"
109 IUSE="ipv6 logwatch madwifi ssl"
110
111 DEPEND="ssl? ( dev-libs/openssl )
112 madwifi? ( ||
113 ( >net-wireless/madwifi-ng-tools-0.9.3
114 <net-wireless/madwifi-ng-0.9.3-r4
115 net-wireless/madwifi-old ) )"
116 RDEPEND="${RDEPEND}"
117
118 S="${S}/hostapd"
119
120 generate_config() {
121 local CONFIG="${S}/.config"
122
123 # toolchain setup
124 echo "CC = $(tc-getCC)" > ${CONFIG}
125
126 # EAP authentication methods
127 echo "CONFIG_EAP=y" >> ${CONFIG}
128 echo "CONFIG_EAP_MD5=y" >> ${CONFIG}
129
130 if use ssl; then
131 # SSL authentication methods
132 echo "CONFIG_EAP_TLS=y" >> ${CONFIG}
133 echo "CONFIG_EAP_TTLS=y" >> ${CONFIG}
134 echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG}
135 echo "CONFIG_EAP_PEAP=y" >> ${CONFIG}
136 fi
137
138 echo "CONFIG_EAP_GTC=y" >> ${CONFIG}
139 echo "CONFIG_EAP_SIM=y" >> ${CONFIG}
140 echo "CONFIG_EAP_AKA=y" >> ${CONFIG}
141 echo "CONFIG_EAP_PAX=y" >> ${CONFIG}
142 echo "CONFIG_EAP_PSK=y" >> ${CONFIG}
143 echo "CONFIG_EAP_SAKE=y" >> ${CONFIG}
144 echo "CONFIG_EAP_GPSK=y" >> ${CONFIG}
145 echo "CONFIG_EAP_GPSK_SHA256=y" >> ${CONFIG}
146
147 # drivers
148 echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
149 echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
150 echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
151
152 if use madwifi; then
153 # Add include path for madwifi-driver headers
154 echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
155 echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
156 fi
157
158 # REMOVED FOR NOW, BROKEN
159 #if [ -e "${KV_DIR}"/net/mac80211 ]; then
160 # # Kernel source has the mac80211 subsystem, so we enable the driver
161 # echo "CONFIG_DRIVER_DEVICESCAPE=y" >> ${CONFIG}
162 # echo "WIRELESS_DEV=\"${KV_DIR}\"" >> ${CONFIG}
163 # echo "CFLAGS += -I\$(WIRELESS_DEV)/net/mac80211" >> ${CONFIG}
164 #fi
165
166 # misc
167 echo "CONFIG_PKCS12=y" >> ${CONFIG}
168 echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG}
169 echo "CONFIG_IAPP=y" >> ${CONFIG}
170 echo "CONFIG_IEEE80211R=y" >> ${CONFIG}
171 echo "CONFIG_IEEE80211W=y" >> ${CONFIG}
172 echo "CONFIG_PEERKEY=y" >> ${CONFIG}
173 echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG}
174
175 if use ipv6; then
176 # IPv5 support
177 echo "CONFIG_IPV6=y" >> ${CONFIG}
178 fi
179
180 # TODO: Add support for BSD drivers
181 }
182
183 src_unpack() {
184 unpack ${A}
185
186 sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
187 "${S}/hostapd.conf"
188
189 generate_config
190 }
191
192 src_compile() {
193 emake || die "emake failed"
194
195 if use ssl; then
196 emake nt_password_hash || die "emake nt_password_hash failed"
197 emake hlr_auc_gw || die "emake hlr_auc_gw failed"
198 fi
199 }
200
201 src_install() {
202 insinto /etc/hostapd
203 doins hostapd.conf hostapd.accept hostapd.deny \
204 hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk
205
206 dosbin hostapd
207 dobin hostapd_cli
208
209 use ssl && dobin nt_password_hash
210 use ssl && dobin hlr_auc_gw
211
212 newinitd "${FILESDIR}"/${P}-init.d hostapd
213 newconfd "${FILESDIR}"/${P}-conf.d hostapd
214
215 doman hostapd.8 hostapd_cli.1
216
217 dodoc ChangeLog developer.txt README
218
219 docinto examples
220 dodoc madwifi.conf wired.conf
221
222 if use logwatch; then
223 insinto /etc/log.d/conf/services/
224 doins logwatch/hostapd.conf
225
226 exeinto /etc/log.d/scripts/services/
227 doexe logwatch/hostapd
228 fi
229 }
230
231 pkg_postinst() {
232 einfo
233 einfo "In order to use ${PN} you need to set up your wireless card"
234 einfo "for master mode in /etc/conf.d/net and then start"
235 einfo "/etc/init.d/hostapd."
236 einfo
237 einfo "Example configuration:"
238 einfo
239 einfo "config_wlan0=( \"192.168.1.1/24\" )"
240 einfo "channel_wlan0=\"6\""
241 einfo "essid_wlan0=\"test\""
242 einfo "mode_wlan0=\"master\""
243 einfo
244 if use madwifi; then
245 einfo "This package compiles against the headers installed by"
246 einfo "madwifi-old, madwifi-ng or madwifi-ng-tools."
247 einfo "You should remerge ${PN} after upgrading these packages."
248 einfo
249 fi
250 #if [ -e "${KV_DIR}"/net/mac80211 ]; then
251 # einfo "This package now compiles against the headers installed by"
252 # einfo "the kernel source for the mac80211 driver. You should "
253 # einfo "re-emerge ${PN} after upgrading your kernel source."
254 #fi
255 }
256
257
258
259 --
260 gentoo-commits@g.o mailing list