Gentoo Archives: gentoo-commits

From: "Stephen Klimaszewski (steev)" <steev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/kismet: ChangeLog kismet-2011.03.2-r3.ebuild kismet-2010.01.1-r1.ebuild kismet-2007.10.1.ebuild kismet-2011.03.2-r1.ebuild
Date: Mon, 11 Jun 2012 01:17:16
Message-Id: 20120611011706.CE99B2004B@flycatcher.gentoo.org
1 steev 12/06/11 01:17:06
2
3 Modified: ChangeLog
4 Added: kismet-2011.03.2-r3.ebuild
5 Removed: kismet-2010.01.1-r1.ebuild kismet-2007.10.1.ebuild
6 kismet-2011.03.2-r1.ebuild
7 Log:
8 Remove old versions. Add new revision with patch to use the hostname as the kismet server name by default
9
10 (Portage version: 2.1.10.65/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.115 net-wireless/kismet/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/kismet/ChangeLog?rev=1.115&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/kismet/ChangeLog?rev=1.115&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/kismet/ChangeLog?r1=1.114&r2=1.115
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v
22 retrieving revision 1.114
23 retrieving revision 1.115
24 diff -u -r1.114 -r1.115
25 --- ChangeLog 22 May 2012 16:19:41 -0000 1.114
26 +++ ChangeLog 11 Jun 2012 01:17:06 -0000 1.115
27 @@ -1,6 +1,14 @@
28 # ChangeLog for net-wireless/kismet
29 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.114 2012/05/22 16:19:41 ssuominen Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.115 2012/06/11 01:17:06 steev Exp $
32 +
33 +*kismet-2011.03.2-r3 (11 Jun 2012)
34 +
35 + 11 Jun 2012; Steev Klimaszewski <steev@g.o> -kismet-2007.10.1.ebuild,
36 + -kismet-2010.01.1-r1.ebuild, -kismet-2011.03.2-r1.ebuild,
37 + +kismet-2011.03.2-r3.ebuild, +files/use-hostname-by-default.patch:
38 + Remove old versions. Add new revision with patch to use the hostname as the
39 + kismet server name by default
40
41 22 May 2012; Samuli Suominen <ssuominen@g.o>
42 kismet-2011.03.2-r1.ebuild, kismet-2011.03.2-r2.ebuild:
43
44
45
46 1.1 net-wireless/kismet/kismet-2011.03.2-r3.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/kismet/kismet-2011.03.2-r3.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/kismet/kismet-2011.03.2-r3.ebuild?rev=1.1&content-type=text/plain
50
51 Index: kismet-2011.03.2-r3.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2011.03.2-r3.ebuild,v 1.1 2012/06/11 01:17:06 steev Exp $
56
57 EAPI=4
58
59 inherit toolchain-funcs eutils
60
61 MY_P=${P/\./-}
62 MY_P=${MY_P/./-R}
63 S=${WORKDIR}/${MY_P}
64
65 if [[ ${PV} == "9999" ]] ; then
66 ESVN_REPO_URI="https://www.kismetwireless.net/code/svn/trunk"
67 inherit subversion
68 KEYWORDS=""
69 else
70 SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz"
71 KEYWORDS="~amd64 ~arm ~ppc ~x86"
72 fi
73
74 DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
75 HOMEPAGE="http://www.kismetwireless.net/"
76
77 LICENSE="GPL-2"
78 SLOT="0"
79 IUSE="+client +pcre speech +plugin-autowep +plugin-btscan +plugin-dot15d4 +plugin-ptw +plugin-spectools +ruby +suid"
80
81 # Bluez 4.98 breaks c++ building, so we choose to use -r2 which has the patch
82 # or 4.96 which still builds properly.
83 RDEPEND="net-wireless/wireless-tools
84 kernel_linux? ( sys-libs/libcap
85 >=dev-libs/libnl-1.1 )
86 net-libs/libpcap
87 pcre? ( dev-libs/libpcre )
88 suid? ( sys-libs/libcap )
89 client? ( sys-libs/ncurses )
90 !arm? ( speech? ( app-accessibility/flite ) )
91 ruby? ( dev-lang/ruby )
92 plugin-btscan? ( || (
93 >=net-wireless/bluez-4.98-r2
94 =net-wireless/bluez-4.96
95 ) )
96 plugin-dot15d4? ( virtual/libusb:0 )
97 plugin-spectools? ( net-wireless/spectools )"
98
99 DEPEND="${RDEPEND}
100 virtual/pkgconfig"
101
102 src_prepare() {
103 sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
104 conf/kismet.conf.in
105
106 # Don't strip and set correct mangrp
107 sed -i -e 's| -s||g' \
108 -e 's|@mangrp@|root|g' Makefile.in
109
110 epatch "${FILESDIR}"/makefile.patch
111 epatch "${FILESDIR}"/plugins-ldflags.patch
112 epatch "${FILESDIR}"/bluechanfix_r3184.patch
113 epatch "${FILESDIR}"/kismet-console-scrolling-backport.patch
114 epatch "${FILESDIR}"/header_alignment_r3326.patch
115 epatch "${FILESDIR}"/use-hostname-by-default.patch
116 }
117
118 src_configure() {
119 econf \
120 $(use_enable client) \
121 $(use_enable pcre)
122 }
123
124 src_compile() {
125 emake
126
127 if use plugin-autowep; then
128 cd "${S}"/plugin-autowep
129 KIS_SRC_DIR="${S}" emake
130 fi
131 if use plugin-btscan; then
132 cd "${S}"/plugin-btscan
133 KIS_SRC_DIR="${S}" emake
134 fi
135 if use plugin-dot15d4; then
136 cd "${S}"/plugin-dot15d4
137 KIS_SRC_DIR="${S}" emake
138 fi
139 if use plugin-ptw; then
140 cd "${S}"/plugin-ptw
141 KIS_SRC_DIR="${S}" emake
142 fi
143 if use plugin-spectools; then
144 cd "${S}"/plugin-spectools
145 KIS_SRC_DIR="${S}" emake
146 fi
147 }
148
149 src_install() {
150 if use plugin-autowep; then
151 cd "${S}"/plugin-autowep
152 KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
153 fi
154 if use plugin-btscan; then
155 cd "${S}"/plugin-btscan
156 KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
157 fi
158 if use plugin-dot15d4; then
159 cd "${S}"/plugin-dot15d4
160 KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
161 fi
162 if use plugin-ptw; then
163 cd "${S}"/plugin-ptw
164 KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
165 fi
166 if use plugin-spectools; then
167 cd "${S}"/plugin-spectools
168 KIS_SRC_DIR="${S}" emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" install
169 fi
170 if use ruby; then
171 cd "${S}"/ruby
172 dobin *.rb
173 fi
174
175 cd "${S}"
176 emake DESTDIR="${D}" commoninstall
177
178 ##dragorn would prefer I set fire to my head than do this, but it works
179 ##all external kismet plugins (read: kismet-ubertooth) must be rebuilt when kismet is
180 ##is there an automatic way to force this?
181 # install headers for external plugins
182 insinto /usr/include/kismet
183 doins *.h || die "Header installation failed"
184 doins Makefile.inc
185 #todo write a plugin finder that tells you what needs to be rebuilt when kismet is updated, etc
186
187 dodoc CHANGELOG RELEASENOTES.txt README* docs/DEVEL.client docs/README.newcore || die
188 newinitd "${FILESDIR}"/${PN}.initd kismet
189 newconfd "${FILESDIR}"/${PN}.confd kismet
190
191 insinto /etc
192 doins conf/kismet{,_drone}.conf || die
193
194 if use suid; then
195 dobin kismet_capture || die
196 fi
197 }
198
199 pkg_preinst() {
200 if use suid; then
201 enewgroup kismet
202 fowners root:kismet /usr/bin/kismet_capture || die
203 # Need to set the permissions after chowning.
204 # See chown(2)
205 fperms 4550 /usr/bin/kismet_capture || die
206 elog "Kismet has been installed with a setuid-root helper binary"
207 elog "to enable minimal-root operation. Users need to be part of"
208 elog "the 'kismet' group to perform captures from physical devices."
209 fi
210 }