# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Network profiles manager"
HOMEPAGE="http://netswitch.tuxfamily.org/"
SRC_URI="http://netswitch.tuxfamily.org/files/${P}.tar.gz"

IUSE="wifi"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"

RDEPEND="
	sys-apps/sed
	sys-apps/iproute2
	sys-apps/net-tools
	wifi? ( net-wireless/wireless-tools )"

DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}
	cd ${S}
}

src_compile() {
	emake || die "make failed"
}

src_install() {
	cd ${WORKDIR}/libswitch-${PV}
	make PREFIX=/usr DESTDIR=${D} \
		install || die "install failed"
}