blob: 8761df15c6436c4611c5eac3e866848a3e1aa975 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-admin/quickswitch/quickswitch-1.0_pre1.ebuild,v 1.4 2002/07/25 13:17:40 seemant Exp $
S=${WORKDIR}/quickwitch
DESCRIPTION="Utility to switch network profiles on the fly"
SRC_URI="mirror://sourceforge/quickswitch/quickwitch-1.0pre1.tar.gz"
HOMEPAGE="http://edgesolutions.ca/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
DEPEND=">=sys-devel/perl-5.6.0"
src_install () {
cd ${S}
dobin switchto
dobin switcher
dosed "s:/etc/switchto.conf:/etc/quickswitch/switchto.conf:" /usr/bin/switchto
dosed "s:/etc/switchto.conf:/etc/quickswitch/switchto.conf:" /usr/bin/switcher
dosed "s:/etc/switchto.last:/etc/quickswitch/switchto.last:" /usr/bin/switchto
dodir /etc/quickswitch
insinto /etc/quickswitch
newins switchto.conf switchto.conf.sample
doins /etc/init.d
newins ${FILESDIR}/net.eth0-switchto.rc6 /etc/init.d/net.eth0-switchto
dodoc README LICENSE
}
|