diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-21 09:18:01 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-21 09:18:01 +0000 |
commit | 44d534531423f26fcc4ba7b6f0f5328f3eb301f4 (patch) | |
tree | fbc13661fcdf7900dbf5e3dadf26329db7b8db38 /net-misc | |
parent | Restricting jython properly (diff) | |
download | gentoo-2-44d534531423f26fcc4ba7b6f0f5328f3eb301f4.tar.gz gentoo-2-44d534531423f26fcc4ba7b6f0f5328f3eb301f4.tar.bz2 gentoo-2-44d534531423f26fcc4ba7b6f0f5328f3eb301f4.zip |
Version bump.
(Portage version: 2.2.0_alpha87/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/vmpsd/files/vmpsd-1.4-snmp-support.patch | 56 | ||||
-rw-r--r-- | net-misc/vmpsd/vmpsd-1.4.ebuild | 42 |
2 files changed, 98 insertions, 0 deletions
diff --git a/net-misc/vmpsd/files/vmpsd-1.4-snmp-support.patch b/net-misc/vmpsd/files/vmpsd-1.4-snmp-support.patch new file mode 100644 index 000000000000..66890af3a731 --- /dev/null +++ b/net-misc/vmpsd/files/vmpsd-1.4-snmp-support.patch @@ -0,0 +1,56 @@ +diff -Nuar vmpsd.orig/Makefile.am vmpsd/Makefile.am +--- vmpsd.orig/Makefile.am 2004-10-31 00:59:51.000000000 +0000 ++++ vmpsd/Makefile.am 2012-02-21 09:11:30.120856909 +0000 +@@ -1,5 +1,6 @@ + bin_PROGRAMS = vmpsd +-vmpsd_SOURCES = vmpsd.c daemon.c data.c log.c parser.c vqp.c data.h log.h vqp.h external.c external.h ++vmpsd_SOURCES = vmpsd.c daemon.c data.c log.c parser.c vqp.c snmp.c data.h log.h vqp.h external.c external.h + vmpsd_CFLAGS = -DSYSCONFDIR="\"${sysconfdir}\"" ++vmpsd_LDADD = $(SNMP_LIB) + man_MANS = vmpsd.1 + sysconf_DATA = vlan.db +diff -Nuar vmpsd.orig/Makefile.in vmpsd/Makefile.in +--- vmpsd.orig/Makefile.in 2006-05-15 13:33:57.000000000 +0000 ++++ vmpsd/Makefile.in 2012-02-21 09:08:54.807227002 +0000 +@@ -59,7 +59,7 @@ + am_vmpsd_OBJECTS = vmpsd-vmpsd.$(OBJEXT) vmpsd-daemon.$(OBJEXT) \ + vmpsd-data.$(OBJEXT) vmpsd-log.$(OBJEXT) \ + vmpsd-parser.$(OBJEXT) vmpsd-vqp.$(OBJEXT) \ +- vmpsd-external.$(OBJEXT) ++ vmpsd-external.$(OBJEXT) $(SNMP_OBJECTS) + vmpsd_OBJECTS = $(am_vmpsd_OBJECTS) + vmpsd_LDADD = $(LDADD) + DEFAULT_INCLUDES = -I. -I$(srcdir) -I. +diff -Nuar vmpsd.orig/snmp.c vmpsd/snmp.c +--- vmpsd.orig/snmp.c 2004-07-08 09:34:29.000000000 +0000 ++++ vmpsd/snmp.c 2012-02-21 09:11:51.817566865 +0000 +@@ -8,6 +8,8 @@ + #include <netinet/in.h> + #include <arpa/inet.h> + ++#define UCD_COMPATIBLE 1 ++#include <net-snmp/net-snmp-config.h> + #include <ucd-snmp/ucd-snmp-includes.h> + + #include "log.h" +diff -Nuar vmpsd.orig/vmpsd.c vmpsd/vmpsd.c +--- vmpsd.orig/vmpsd.c 2006-05-15 13:33:57.000000000 +0000 ++++ vmpsd/vmpsd.c 2012-02-21 09:12:28.987640940 +0000 +@@ -18,7 +18,7 @@ + + int parse_options(int argc, char **argv) + { +- char opt; ++ signed char opt; + char *options = "a:cde:f:l:p:"; + + opterr = 0; +@@ -80,7 +80,7 @@ + printf("\t-d do not detach, log to stderr also\n"); + printf("\t-e path use external program for mac to vlan assignment\n"); + printf("\t when/if used with -f, -f is disregarded\n"); +- printf("\t-f file read VMPS database from file (/etc/vmps.db)\n"); ++ printf("\t-f file read VMPS database from file ("SYSCONFDIR"/vmps.db)\n"); + printf("\t-l level set logging level:\n"); + printf("\t 0x0100 - fatal,\n"); + printf("\t 0x0200 - info,\n"); diff --git a/net-misc/vmpsd/vmpsd-1.4.ebuild b/net-misc/vmpsd/vmpsd-1.4.ebuild new file mode 100644 index 000000000000..b219b590078a --- /dev/null +++ b/net-misc/vmpsd/vmpsd-1.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/vmpsd/vmpsd-1.4.ebuild,v 1.1 2012/02/21 09:18:00 robbat2 Exp $ + +EAPI=4 +inherit eutils flag-o-matic autotools + +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="~amd64 ~ppc ~x86" +IUSE="" +DEPEND="net-analyzer/net-snmp + dev-libs/openssl" +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.4-snmp-support.patch + epatch "${FILESDIR}"/${PN}-1.3-64bit.patch + # Merged upstream + #EPATCH_OPTS="-d${S}" \ + #epatch "${FILESDIR}"/${PN}-1.3-format-sec.patch + eautoreconf +} + +src_configure() { + econf \ + --sysconfdir=/etc/vmpsd \ + --enable-snmp \ + LIBS="-lssl" \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${ED}" install || die + dodoc README INSTALL AUTHORS doc/*txt + newdoc external/README README.external + newdoc tools/README README.tools + dodoc external/simple tools/vqpcli.pl +} |