/[gentoo-x86]/net-wireless/wpa_supplicant/wpa_supplicant-0.7.3-r5.ebuild
Gentoo

Diff of /net-wireless/wpa_supplicant/wpa_supplicant-0.7.3-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/Attic/wpa_supplicant-0.7.3-r5.ebuild,v 1.5 2011/09/09 09:42:19 gurligebis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/Attic/wpa_supplicant-0.7.3-r5.ebuild,v 1.6 2011/09/10 11:42:40 scarabeus Exp $
4 4
5EAPI="2" 5EAPI=4
6 6
7inherit eutils toolchain-funcs qt4-r2 systemd multilib 7inherit eutils toolchain-funcs qt4-r2 systemd multilib
8 8
9DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers" 9DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
10HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/" 10HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
16IUSE="dbus debug gnutls eap-sim fasteap madwifi ps3 qt4 readline ssl wimax wps kernel_linux kernel_FreeBSD" 16IUSE="dbus debug gnutls eap-sim fasteap madwifi ps3 qt4 readline ssl wimax wps kernel_linux kernel_FreeBSD"
17 17
18RDEPEND="dbus? ( sys-apps/dbus ) 18RDEPEND="dbus? ( sys-apps/dbus )
19 kernel_linux? ( 19 kernel_linux? (
20 eap-sim? ( sys-apps/pcsc-lite ) 20 eap-sim? ( sys-apps/pcsc-lite )
21 madwifi? ( || 21 madwifi? (
22 || (
22 ( >net-wireless/madwifi-ng-tools-0.9.3 23 >net-wireless/madwifi-ng-tools-0.9.3
23 net-wireless/madwifi-old ) 24 net-wireless/madwifi-old
25 )
24 ) 26 )
25 dev-libs/libnl 27 dev-libs/libnl
26 ) 28 )
27 !kernel_linux? ( net-libs/libpcap ) 29 !kernel_linux? ( net-libs/libpcap )
30 qt4? (
28 qt4? ( x11-libs/qt-gui:4 31 x11-libs/qt-gui:4
29 x11-libs/qt-svg:4 ) 32 x11-libs/qt-svg:4
30 readline? ( sys-libs/ncurses sys-libs/readline ) 33 )
34 readline? (
35 sys-libs/ncurses
36 sys-libs/readline
37 )
31 ssl? ( dev-libs/openssl ) 38 ssl? ( dev-libs/openssl )
32 !ssl? ( gnutls? ( net-libs/gnutls ) ) 39 !ssl? ( gnutls? ( net-libs/gnutls ) )
33 !ssl? ( !gnutls? ( dev-libs/libtommath ) )" 40 !ssl? ( !gnutls? ( dev-libs/libtommath ) )"
34DEPEND="${RDEPEND} 41DEPEND="${RDEPEND}
35 dev-util/pkgconfig" 42 dev-util/pkgconfig"
182 fi 189 fi
183 190
184 # Enable mitigation against certain attacks against TKIP 191 # Enable mitigation against certain attacks against TKIP
185 echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config 192 echo "CONFIG_DELAYED_MIC_ERROR_REPORT=y" >> .config
186 193
187 if use qt4 ; then
188 cd "${S}"/wpa_gui-qt4
189 eqmake4 wpa_gui.pro
190 fi
191
192 # If we are using libnl 2.0 and above, enable support for it 194 # If we are using libnl 2.0 and above, enable support for it
193 # Bug 382159 195 # Bug 382159
194 if has_version ">=dev-libs/libnl-2.0"; then 196 if has_version ">=dev-libs/libnl-2.0"; then
195 echo "CONFIG_LIBNL20=y" >> .config 197 echo "CONFIG_LIBNL20=y" >> .config
196 fi 198 fi
199
200 if use qt4 ; then
201 pushd "${S}"/wpa_gui-qt4 > /dev/null
202 eqmake4 wpa_gui.pro
203 popd > /dev/null
204 fi
197} 205}
198 206
199src_compile() { 207src_compile() {
200 einfo "Building wpa_supplicant" 208 einfo "Building wpa_supplicant"
201 emake || die "emake failed" 209 emake
202 210
203 if use wimax; then 211 if use wimax; then
204 emake -C ../src/eap_peer clean || die "emake failed" 212 emake -C ../src/eap_peer clean
205 emake -C ../src/eap_peer || die "emake failed" 213 emake -C ../src/eap_peer
206 fi 214 fi
207 215
208 if use qt4 ; then 216 if use qt4 ; then
209 cd "${S}"/wpa_gui-qt4 217 pushd "${S}"/wpa_gui-qt4 > /dev/null
210 einfo "Building wpa_gui" 218 einfo "Building wpa_gui"
211 emake || die "wpa_gui compilation failed" 219 emake
220 popd > /dev/null
212 fi 221 fi
213} 222}
214 223
215src_install() { 224src_install() {
216 dosbin wpa_supplicant || die 225 dosbin wpa_supplicant
217 dobin wpa_cli wpa_passphrase || die 226 dobin wpa_cli wpa_passphrase
218 227
219 # baselayout-1 compat 228 # baselayout-1 compat
220 if has_version "<sys-apps/baselayout-2.0.0"; then 229 if has_version "<sys-apps/baselayout-2.0.0"; then
221 dodir /sbin 230 dodir /sbin
222 dosym /usr/sbin/wpa_supplicant /sbin/wpa_supplicant || die 231 dosym /usr/sbin/wpa_supplicant /sbin/wpa_supplicant
223 dodir /bin 232 dodir /bin
224 dosym /usr/bin/wpa_cli /bin/wpa_cli || die 233 dosym /usr/bin/wpa_cli /bin/wpa_cli
225 fi 234 fi
226 235
227 if has_version ">=sys-apps/openrc-0.5.0"; then 236 if has_version ">=sys-apps/openrc-0.5.0"; then
228 newinitd "${FILESDIR}/${PN}-init.d" wpa_supplicant 237 newinitd "${FILESDIR}/${PN}-init.d" wpa_supplicant
229 newconfd "${FILESDIR}/${PN}-conf.d" wpa_supplicant 238 newconfd "${FILESDIR}/${PN}-conf.d" wpa_supplicant
231 240
232 exeinto /etc/wpa_supplicant/ 241 exeinto /etc/wpa_supplicant/
233 newexe "${FILESDIR}/wpa_cli.sh" wpa_cli.sh 242 newexe "${FILESDIR}/wpa_cli.sh" wpa_cli.sh
234 243
235 dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \ 244 dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \
236 wpa_supplicant.conf || die "dodoc failed" 245 wpa_supplicant.conf
237 246
238 doman doc/docbook/*.{5,8} || die "doman failed" 247 doman doc/docbook/*.{5,8}
239 248
240 if use qt4 ; then 249 if use qt4 ; then
241 into /usr 250 into /usr
242 dobin wpa_gui-qt4/wpa_gui || die 251 dobin wpa_gui-qt4/wpa_gui
243 doicon wpa_gui-qt4/icons/wpa_gui.svg || die "Icon not found" 252 doicon wpa_gui-qt4/icons/wpa_gui.svg
244 make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;" 253 make_desktop_entry wpa_gui "WPA Supplicant Administration GUI" "wpa_gui" "Qt;Network;"
245 fi 254 fi
246 255
247 if use wimax; then
248 emake DESTDIR="${D}" -C ../src/eap_peer install || die 256 use wimax && emake DESTDIR="${D}" -C ../src/eap_peer install
249 fi
250 257
251 if use dbus ; then 258 if use dbus ; then
252 cd "${S}"/dbus 259 pushd "${S}"/dbus > /dev/null
253 insinto /etc/dbus-1/system.d 260 insinto /etc/dbus-1/system.d
254 newins dbus-wpa_supplicant.conf wpa_supplicant.conf || die 261 newins dbus-wpa_supplicant.conf wpa_supplicant.conf
255 insinto /usr/share/dbus-1/system-services 262 insinto /usr/share/dbus-1/system-services
256 doins fi.epitest.hostap.WPASupplicant.service fi.w1.wpa_supplicant1.service || die 263 doins fi.epitest.hostap.WPASupplicant.service fi.w1.wpa_supplicant1.service
257 keepdir /var/run/wpa_supplicant 264 keepdir /var/run/wpa_supplicant
265 popd > /dev/null
258 fi 266 fi
259 267
260 # systemd stuff 268 # systemd stuff
261 systemd_dounit "${FILESDIR}"/wpa_supplicant.service 269 systemd_dounit "${FILESDIR}"/wpa_supplicant.service
262 systemd_newunit "${FILESDIR}"/wpa_supplicant_at.service 'wpa_supplicant@.service' || die 270 systemd_newunit "${FILESDIR}"/wpa_supplicant_at.service 'wpa_supplicant@.service'
263} 271}
264 272
265pkg_postinst() { 273pkg_postinst() {
266 einfo "If this is a clean installation of wpa_supplicant, you" 274 einfo "If this is a clean installation of wpa_supplicant, you"
267 einfo "have to create a configuration file named" 275 einfo "have to create a configuration file named"

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20