/[gentoo-x86]/net-wireless/wifiscanner/wifiscanner-1.0.1-r2.ebuild
Gentoo

Diff of /net-wireless/wifiscanner/wifiscanner-1.0.1-r2.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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/wifiscanner/Attic/wifiscanner-1.0.1-r2.ebuild,v 1.2 2011/04/02 12:49:04 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-wireless/wifiscanner/Attic/wifiscanner-1.0.1-r2.ebuild,v 1.3 2012/01/14 05:28:15 vapier Exp $
4
5EAPI="4"
6
7inherit autotools
4 8
5MY_P=WifiScanner-${PV} 9MY_P=WifiScanner-${PV}
6S=${WORKDIR}/${MY_P}
7DESCRIPTION="WifiScanner is an analyzer and detector of 802.11b stations and access points." 10DESCRIPTION="analyzer and detector of 802.11b stations and access points"
8HOMEPAGE="http://wifiscanner.sourceforge.net/" 11HOMEPAGE="http://wifiscanner.sourceforge.net/"
9SRC_URI="mirror://sourceforge/wifiscanner/${MY_P}.tar.gz" 12SRC_URI="mirror://sourceforge/wifiscanner/${MY_P}.tar.gz"
10 13
11LICENSE="GPL-2" 14LICENSE="GPL-2"
12SLOT="0" 15SLOT="0"
13IUSE="wireshark ncurses"
14KEYWORDS="~amd64 ~ppc ~x86" 16KEYWORDS="~amd64 ~ppc ~x86"
17IUSE="ncurses wireshark"
18
15RDEPEND="wireshark? ( net-analyzer/wireshark ) 19RDEPEND="wireshark? ( net-analyzer/wireshark )
16 ncurses? ( sys-libs/ncurses ) 20 ncurses? ( sys-libs/ncurses )
17 net-libs/libpcap 21 net-libs/libpcap
18 dev-libs/glib" 22 dev-libs/glib"
19DEPEND="${RDEPEND}" 23DEPEND="${RDEPEND}"
20 24
21src_compile () { 25S=${WORKDIR}/${MY_P}
26
27src_prepare() {
28 sed -i \
29 -e '/^gentoo_ltmain_version=/s|:space:|[:space:]|g' \
30 $(find -name configure) || die #349770
31}
32
33src_configure() {
22 econf \ 34 econf \
23 $(use_enable ncurses curses) \ 35 $(use_enable ncurses curses) \
24 $(use_enable wireshark wtap) \ 36 $(use_enable wireshark wtap) \
25 --without-internal-wiretap \ 37 --without-internal-wiretap \
26 --with-wtap_path=/usr/include/wiretap \ 38 --with-wtap_path=/usr/include/wiretap
27 || die "econf failed"
28 emake || die "emake failed"
29} 39}
30 40
31src_install () { 41src_install() {
32 emake install DESTDIR="${D}" || die 42 default
33 dodoc AUTHORS BUG-REPORT-ADDRESS ChangeLog FAQ NEWS THANKS TODO doc/* 43 dodoc BUG-REPORT-ADDRESS
34} 44}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20