1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/vmpsd/vmpsd-1.4.ebuild,v 1.2 2012/05/12 12:41:56 xarthisius Exp $ |
4 |
|
5 |
EAPI=4 |
6 |
inherit eutils flag-o-matic autotools |
7 |
|
8 |
DESCRIPTION="An open-source VLAN management system" |
9 |
HOMEPAGE="http://vmps.sourceforge.net" |
10 |
SRC_URI="mirror://sourceforge/vmps/${P}.tar.gz" |
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="~amd64 ~ppc ~x86" |
14 |
IUSE="" |
15 |
DEPEND="net-analyzer/net-snmp[ucd-compat(+)] |
16 |
dev-libs/openssl" |
17 |
S=${WORKDIR}/${PN} |
18 |
|
19 |
src_prepare() { |
20 |
epatch "${FILESDIR}"/${PN}-1.4-snmp-support.patch |
21 |
epatch "${FILESDIR}"/${PN}-1.3-64bit.patch |
22 |
# Merged upstream |
23 |
#EPATCH_OPTS="-d${S}" \ |
24 |
#epatch "${FILESDIR}"/${PN}-1.3-format-sec.patch |
25 |
eautoreconf |
26 |
} |
27 |
|
28 |
src_configure() { |
29 |
econf \ |
30 |
--sysconfdir=/etc/vmpsd \ |
31 |
--enable-snmp \ |
32 |
LIBS="-lssl" \ |
33 |
|| die "econf failed" |
34 |
} |
35 |
|
36 |
src_install() { |
37 |
emake DESTDIR="${D}" install || die |
38 |
dodoc README INSTALL AUTHORS doc/*txt |
39 |
newdoc external/README README.external |
40 |
newdoc tools/README README.tools |
41 |
dodoc external/simple tools/vqpcli.pl |
42 |
} |