summaryrefslogtreecommitdiff
blob: c0aa33bccff643b898ccf78c52aa8d0ba0630985 (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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit bash-completion

DESCRIPTION="Network selection utility"
HOMEPAGE="http://bitbucket.org/nelchael/netselect/"
SRC_URI="http://dev.gentoo.org/~nelchael/distfiles/${P}.tar.bz2"

RESTRICT="mirror"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

S="${WORKDIR}/${PN}"

src_install() {
	dodir /etc/netselect
	dodir /sbin
	keepdir /etc/netselect/postset.d

	cd "${S}"
	cp netselect "${D}/sbin/" || die "cp failed"
	cp netselect.conf "${D}/etc/netselect" || die "cp failed"

	dobashcompletion bc/netselect
}