Lines 18-24
Link Here
|
18 |
gtk2? ( >=dev-libs/glib-2.0.4 =x11-libs/gtk+-2* ) : ( gtk? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* ) ) |
18 |
gtk2? ( >=dev-libs/glib-2.0.4 =x11-libs/gtk+-2* ) : ( gtk? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* ) ) |
19 |
gtk? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* ) |
19 |
gtk? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* ) |
20 |
ssl? ( >=dev-libs/openssl-0.9.6e ) |
20 |
ssl? ( >=dev-libs/openssl-0.9.6e ) |
21 |
>=net-libs/libpcap-0.7.1" |
21 |
>=net-libs/libpcap-0.7.1 |
|
|
22 |
>=net-libs/adns-1.0" |
22 |
|
23 |
|
23 |
DEPEND="${RDEPEND} |
24 |
DEPEND="${RDEPEND} |
24 |
dev-lang/perl |
25 |
dev-lang/perl |
Lines 38-67
Link Here
|
38 |
|
39 |
|
39 |
src_compile() { |
40 |
src_compile() { |
40 |
local myconf |
41 |
local myconf |
|
|
42 |
# Disable the GUI by default, enabling only if we have GTK+ 1.x or 2.x |
43 |
myconf="--disable-ethereal" |
41 |
if [ "`use gtk2`" ] |
44 |
if [ "`use gtk2`" ] |
42 |
then |
45 |
then |
43 |
myconf="--enable-gtk2" |
46 |
myconf="--enable-gtk2" |
44 |
elif [ -z "`use gtk`" ] |
47 |
elif [ "`use gtk`" ] |
45 |
then |
48 |
then |
46 |
myconf="--disable-ethereal" |
49 |
myconf="--enable-ethereal" |
47 |
fi |
50 |
fi |
48 |
|
51 |
|
49 |
use ssl || myconf="${myconf} --without-ssl" |
52 |
use ssl || myconf="${myconf} --without-ssl" |
50 |
use snmp || myconf="${myconf} --without-ucdsnmp" |
53 |
use snmp || myconf="${myconf} --without-ucdsnmp" |
51 |
use ipv6 && myconf="${myconf} --enable-ipv6" |
54 |
use ipv6 && myconf="${myconf} --enable-ipv6" |
52 |
use gtk || myconf="${myconf} --disable-ethereal" |
|
|
53 |
|
55 |
|
54 |
addwrite "/usr/share/snmp/mibs/.index" |
56 |
addwrite "/usr/share/snmp/mibs/.index" |
55 |
|
57 |
|
56 |
econf \ |
58 |
econf \ |
57 |
--enable-pcap \ |
59 |
--with-pcap \ |
58 |
--enable-zlib \ |
60 |
--with-zlib \ |
|
|
61 |
--with-adns \ |
59 |
--enable-tethereal \ |
62 |
--enable-tethereal \ |
60 |
--enable-editcap \ |
63 |
--enable-editcap \ |
61 |
--enable-mergecap \ |
64 |
--enable-mergecap \ |
62 |
--enable-text2cap \ |
65 |
--enable-text2cap \ |
63 |
--enable-idl2eth \ |
66 |
--enable-idl2eth \ |
64 |
--enable-dftest \ |
|
|
65 |
--enable-randpkt \ |
67 |
--enable-randpkt \ |
66 |
--sysconfdir=/etc/ethereal \ |
68 |
--sysconfdir=/etc/ethereal \ |
67 |
--with-plugindir=/usr/lib/ethereal/plugins/${PV} \ |
69 |
--with-plugindir=/usr/lib/ethereal/plugins/${PV} \ |