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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Jun 8 15:55:17 2005 UTC (14 years, 8 months ago) by brix
Branch: MAIN
Version bump.
(Portage version: 2.0.51.22-r1)

1 brix 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     inherit eutils
6    
7     DESCRIPTION="Gtk perl based client for Kismet"
8     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
9     HOMEPAGE="http://gkismet.sourceforge.net"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~x86"
14    
15     IUSE=""
16    
17     DEPEND="sys-apps/sed"
18     RDEPEND="dev-perl/gtk-perl
19     >=net-wireless/kismet-2005.04.1"
20    
21     pkg_setup() {
22     if ! built_with_use dev-perl/gtk-perl gnome; then
23     eerror
24     eerror "${P} needs dev-perl/gtk-perl emerged with USE=\"gnome\""
25     eerror
26     die "${P} needs dev-perl/gtk-perl emerged with USE=\"gnome\""
27     fi
28     }
29    
30     src_unpack() {
31     unpack ${P}.tar.gz
32    
33     sed -i \
34     -e"s:^PREFIX=/usr/local:PREFIX=${D}/usr:" \
35     -e "s:^ETC=\$(PREFIX)/etc/gkismet:ETC=${D}/etc/gkismet:" \
36     ${S}/Makefile
37    
38     sed -i -e "s:!PREFIX!:/usr:" ${S}/gkismet.pl
39    
40     sed -i -e "s:\$self->{'path'}{'etc'} = \$prefix . '/etc/gkismet':\$self->{'path'}{'etc'} = '/etc/gkismet':" \
41     ${S}/GKismetApplication.pm
42     }
43    
44     src_install () {
45     emake install || die "emake install failed"
46    
47     dodoc README Changelog
48     }

  ViewVC Help
Powered by ViewVC 1.1.20