blob: b7c87c04cc6258f69972e620c7263eeac4afdbbd (
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
34
35
36
37
38
39
40
41
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vmpsd/vmpsd-1.3-r3.ebuild,v 1.2 2007/03/31 22:07:23 robbat2 Exp $
inherit eutils flag-o-matic
DESCRIPTION="An open-source VLAN management system"
HOMEPAGE="http://vmps.sourceforge.net"
SRC_URI="mirror://sourceforge/vmps/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"
IUSE=""
DEPEND="virtual/libc
net-analyzer/net-snmp
dev-libs/openssl"
S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${P}-snmp-support.patch
epatch ${FILESDIR}/${P}-64bit.patch
}
src_compile() {
append-ldflags -lssl
econf \
--sysconfdir=/etc/vmpsd \
--enable-snmp \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
cd "${S}"
emake DESTDIR="${D}" install || die
dodoc README INSTALL AUTHORS doc/*txt
newdoc external/README README.external
newdoc tools/README README.tools
dodoc external/simple tools/vqpcli.pl
}
|