Gentoo Archives: gentoo-commits

From: "Richard Farina (zerochaos)" <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/aircrack-ng: aircrack-ng-1.2_rc1.ebuild ChangeLog
Date: Sat, 01 Nov 2014 03:07:53
Message-Id: 20141101030748.784DC92E4@oystercatcher.gentoo.org
1 zerochaos 14/11/01 03:07:48
2
3 Modified: ChangeLog
4 Added: aircrack-ng-1.2_rc1.ebuild
5 Log:
6 bump
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
9
10 Revision Changes Path
11 1.85 net-wireless/aircrack-ng/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/aircrack-ng/ChangeLog?rev=1.85&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/aircrack-ng/ChangeLog?rev=1.85&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/aircrack-ng/ChangeLog?r1=1.84&r2=1.85
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/ChangeLog,v
20 retrieving revision 1.84
21 retrieving revision 1.85
22 diff -u -r1.84 -r1.85
23 --- ChangeLog 3 Aug 2014 23:13:27 -0000 1.84
24 +++ ChangeLog 1 Nov 2014 03:07:48 -0000 1.85
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-wireless/aircrack-ng
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/ChangeLog,v 1.84 2014/08/03 23:13:27 zerochaos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/ChangeLog,v 1.85 2014/11/01 03:07:48 zerochaos Exp $
30 +
31 +*aircrack-ng-1.2_rc1 (01 Nov 2014)
32 +
33 + 01 Nov 2014; Rick Farina <zerochaos@g.o> +aircrack-ng-1.2_rc1.ebuild:
34 + bump
35
36 *aircrack-ng-1.2_beta3-r3 (03 Aug 2014)
37
38
39
40
41 1.1 net-wireless/aircrack-ng/aircrack-ng-1.2_rc1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/aircrack-ng/aircrack-ng-1.2_rc1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/aircrack-ng/aircrack-ng-1.2_rc1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: aircrack-ng-1.2_rc1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/aircrack-ng-1.2_rc1.ebuild,v 1.1 2014/11/01 03:07:48 zerochaos Exp $
51
52 EAPI="5"
53
54 PYTHON_COMPAT=( python2_7 )
55 DISTUTILS_OPTIONAL=1
56
57 inherit toolchain-funcs distutils-r1 flag-o-matic
58
59 DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
60 HOMEPAGE="http://www.aircrack-ng.org"
61
62 if [[ ${PV} == "9999" ]] ; then
63 inherit subversion
64 ESVN_REPO_URI="http://svn.aircrack-ng.org/trunk"
65 KEYWORDS=""
66 S="${WORKDIR}/${PN}"
67 else
68 MY_PV=${PV/_/-}
69 SRC_URI="http://download.${PN}.org/${PN}-${MY_PV}.tar.gz"
70 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
71 S="${WORKDIR}/${PN}-${MY_PV}"
72 fi
73
74 LICENSE="GPL-2"
75 SLOT="0"
76
77 IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +unstable"
78
79 DEPEND="dev-libs/openssl
80 netlink? ( dev-libs/libnl:3 )
81 pcre? ( dev-libs/libpcre )
82 airdrop-ng? ( ${PYTHON_DEPS} )
83 airgraph-ng? ( ${PYTHON_DEPS} )
84 sqlite? ( >=dev-db/sqlite-3.4 )
85 unstable? ( net-libs/libpcap
86 sys-libs/zlib )"
87 RDEPEND="${DEPEND}
88 kernel_linux? (
89 net-wireless/iw
90 net-wireless/wireless-tools
91 sys-apps/ethtool
92 sys-apps/usbutils
93 sys-apps/pciutils )
94 sys-apps/hwids
95 airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
96
97 REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
98 airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
99
100 src_compile() {
101 if [[ $($(tc-getCC) --version) == clang* ]] ; then
102 die "Please use gcc, upstream bug http://trac.aircrack-ng.org/ticket/1144"
103 fi
104
105 if [[ ${PV} == "9999" ]] ; then
106 liveflags=REVFLAGS=-D_REVISION="${ESVN_WC_REVISION}"
107 fi
108
109 emake \
110 CC="$(tc-getCC)" \
111 AR="$(tc-getAR)" \
112 LD="$(tc-getLD)" \
113 RANLIB="$(tc-getRANLIB)" \
114 libnl=$(usex netlink true false) \
115 pcre=$(usex pcre true false) \
116 sqlite=$(usex sqlite true false) \
117 unstable=$(usex unstable true false) \
118 ${liveflags}
119
120 if use airgraph-ng; then
121 cd "${S}/scripts/airgraph-ng"
122 distutils-r1_src_compile
123 fi
124 if use airdrop-ng; then
125 cd "${S}/scripts/airdrop-ng"
126 distutils-r1_src_compile
127 fi
128 }
129
130 src_test() {
131 if [[ ${PV} == "9999" ]] ; then
132 liveflags=REVFLAGS=-D_REVISION="${ESVN_WC_REVISION}"
133 fi
134
135 emake check \
136 libnl=$(usex netlink true false) \
137 pcre=$(usex pcre true false) \
138 sqlite=$(usex sqlite true false) \
139 unstable=$(usex unstable true false) \
140 ${liveflags}
141 }
142
143 src_install() {
144 if [[ ${PV} == "9999" ]] ; then
145 liveflags=REVFLAGS=-D_REVISION="${ESVN_WC_REVISION}"
146 fi
147
148 emake \
149 prefix="${ED}/usr" \
150 libnl=$(usex netlink true false) \
151 pcre=$(usex pcre true false) \
152 sqlite=$(usex sqlite true false) \
153 unstable=$(usex unstable true false) \
154 ${liveflags} \
155 install
156
157 dodoc AUTHORS ChangeLog INSTALLING README
158
159 if use airgraph-ng; then
160 cd "${S}/scripts/airgraph-ng"
161 distutils-r1_src_install
162 fi
163 if use airdrop-ng; then
164 cd "${S}/scripts/airdrop-ng"
165 distutils-r1_src_install
166 fi
167
168 #we don't need aircrack-ng's oui updater, we have our own
169 rm "${ED}"/usr/sbin/airodump-ng-oui-update
170 }
171
172 pkg_postinst() {
173 # Message is (c) FreeBSD
174 # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5
175 if use kernel_FreeBSD ; then
176 einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor"
177 einfo "mode of your wireless card. So do not care about what the manpages say about"
178 einfo "airmon-ng, airodump-ng sets monitor mode automatically."
179 echo
180 einfo "To return from monitor mode, issue the following command:"
181 einfo " ifconfig \${INTERFACE} -mediaopt monitor"
182 einfo
183 einfo "For aireplay-ng you need FreeBSD >= 7.0."
184 fi
185 }