/[gentoo-x86]/net-wireless/gkismet/gkismet-0.0.8.ebuild
Gentoo

Contents of /net-wireless/gkismet/gkismet-0.0.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Nov 26 16:28:54 2004 UTC (15 years, 2 months ago) by brix
Branch: MAIN
Changes since 1.1: +2 -2 lines
Version bump. Depend on exact version of net-wireless/kismet.

1 brix 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 brix 1.2 # $Header: /var/cvsroot/gentoo-x86/net-wireless/gkismet/gkismet-0.0.8.ebuild,v 1.1 2004/10/20 21:40:50 brix Exp $
4 brix 1.1
5     DESCRIPTION="Gtk perl based Kismet client"
6     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
7     HOMEPAGE="http://gkismet.sourceforge.net"
8     KEYWORDS="~x86"
9    
10     LICENSE="GPL-2"
11     SLOT="0"
12     IUSE=""
13    
14     DEPEND="dev-perl/gtk-perl
15 brix 1.2 =net-wireless/kismet-2004.04.1*
16 brix 1.1 sys-apps/sed"
17    
18     src_unpack() {
19     unpack ${P}.tar.gz
20    
21     # install to /usr
22     sed -i "s:^PREFIX=/usr/local:PREFIX=${D}/usr:" ${S}/Makefile
23    
24     # install config files to /etc
25     sed -i "s:^ETC=\$(PREFIX)/etc/gkismet:ETC=${D}/etc/gkismet:" \
26     ${S}/Makefile
27    
28     # set correct prefix
29     sed -i "s:!PREFIX!:/usr:" ${S}/gkismet.pl
30    
31     # config files are now in /etc/gkismet
32     sed -i "s:\$self->{'path'}{'etc'} = \$prefix . '/etc/gkismet':\$self->{'path'}{'etc'} = '/etc/gkismet':" \
33     ${S}/GKismetApplication.pm
34     }
35    
36     src_install () {
37     emake install || die
38    
39     dodoc README Changelog
40     }
41    
42     pkg_postinst() {
43     einfo ""
44     einfo "If ${PN} complains about not finding Gnome.pm, remerge"
45     einfo "dev-perl/gtk-perl with USE=gnome"
46     einfo ""
47     }

  ViewVC Help
Powered by ViewVC 1.1.20