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