summaryrefslogtreecommitdiff
blob: e05be66f112541c3f1b3b5b220d215a7ca9f3d6c (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vconfig/vconfig-1.7.ebuild,v 1.5 2004/06/25 00:18:16 agriffis Exp $

MY_PN="vlan"
DESCRIPTION="802.1Q vlan control utility"
HOMEPAGE="http://www.candelatech.com/~greear/vlan.html"
SRC_URI="http://www.candelatech.com/~greear/vlan/${MY_PN}.${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~sparc "
IUSE="static"
DEPEND=">=sys-kernel/linux-headers-2.4.14"
RDEPEND=">=virtual/kernel-2.4.14"
S=${WORKDIR}/${MY_PN}

src_compile() {
	use static && LDFLAGS="${LDFLAGS} -static"
	emake CC="gcc" CCFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
}

src_install() {
	dosbin vconfig || die "dosbin error"
	doman vconfig.8 || die "doman error"
	dodoc CHANGELOG README || die "dodoc error"
	dohtml howto.html vlan.html || die "dohtml error"
}

pkg_postinst() {
	ewarn "MTU problems exist for many ethernet drivers"
}