diff options
author | bouyer <bouyer@pkgsrc.org> | 2005-06-06 16:07:42 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2005-06-06 16:07:42 +0000 |
commit | 20b937ad5281eb92e5fc7267fbce47112ce26835 (patch) | |
tree | ef5befe9fe740e7781344a1e63db2bbe5d5937fd /net | |
parent | 35e5264d4c621304c0b3b97a9543c8cdcc3d3b1f (diff) | |
download | pkgsrc-20b937ad5281eb92e5fc7267fbce47112ce26835.tar.gz |
Import openvmps 1.3 to the package collection.
VMPS (VLAN Management Policy Server) is a way of assigning switch ports to
specific VLANs based on the MAC address of connecting device. OpenVMPS is a
GPL implementation of VMPS.
Diffstat (limited to 'net')
-rw-r--r-- | net/openvmps/DESCR | 3 | ||||
-rw-r--r-- | net/openvmps/Makefile | 23 | ||||
-rw-r--r-- | net/openvmps/PLIST | 7 | ||||
-rw-r--r-- | net/openvmps/distinfo | 8 | ||||
-rw-r--r-- | net/openvmps/files/vmpsd.sh | 18 | ||||
-rw-r--r-- | net/openvmps/patches/patch-aa | 14 | ||||
-rw-r--r-- | net/openvmps/patches/patch-ab | 56 | ||||
-rw-r--r-- | net/openvmps/patches/patch-ac | 25 |
8 files changed, 154 insertions, 0 deletions
diff --git a/net/openvmps/DESCR b/net/openvmps/DESCR new file mode 100644 index 00000000000..07000af602c --- /dev/null +++ b/net/openvmps/DESCR @@ -0,0 +1,3 @@ +VMPS (VLAN Management Policy Server) is a way of assigning switch ports to +specific VLANs based on the MAC address of connecting device. OpenVMPS is a +GPL implementation of VMPS. diff --git a/net/openvmps/Makefile b/net/openvmps/Makefile new file mode 100644 index 00000000000..7f6c778e627 --- /dev/null +++ b/net/openvmps/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ + +DISTNAME= vmpsd-1.3 +PKGNAME= openvmps-1.3 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vmps/} + +MAINTAINER= bouyer@NetBSD.org +HOMEPAGE= http://vmps.sourceforge.net/ +COMMENT= GPL implementation of the VMPS protocol + +WRKSRC= ${WRKDIR}/vmpsd + +GNU_CONFIGURE= YES +USE_PKGINSTALL= YES + +EGDIR= ${PREFIX}/share/examples/openvmps +RCD_SCRIPTS= vmpsd +RCD_SCRIPT_WRK.vmpsd= ${WRKDIR}/vmpsd.rcd #conflict with ${WRKSRC} + +CONF_FILES= ${EGDIR}/vlan.db ${PKG_SYSCONFDIR}/vlan.db + +.include "../../mk/bsd.pkg.mk" diff --git a/net/openvmps/PLIST b/net/openvmps/PLIST new file mode 100644 index 00000000000..84e4697cb5e --- /dev/null +++ b/net/openvmps/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/06/06 16:07:42 bouyer Exp $ +bin/vmpsd +man/man1/vmpsd.1 +share/examples/openvmps/vlan.db +share/examples/rc.d/vmpsd + +@dirrm share/examples/openvmps diff --git a/net/openvmps/distinfo b/net/openvmps/distinfo new file mode 100644 index 00000000000..24fbeb1bc78 --- /dev/null +++ b/net/openvmps/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ + +SHA1 (vmpsd-1.3.tar.gz) = 39a8f925191690f209d9f1609321f20360810cf1 +RMD160 (vmpsd-1.3.tar.gz) = 1185fbd654d5d0e939fdfa08149d1ebcb3fc0ef2 +Size (vmpsd-1.3.tar.gz) = 95202 bytes +SHA1 (patch-aa) = 4bead41f3def8d179af073ac883d77d6c1301dec +SHA1 (patch-ab) = a30282863432d654669643103de3711da6d53620 +SHA1 (patch-ac) = c5871b991808ca33d9ad0a7ee89ea1f1a4b0e803 diff --git a/net/openvmps/files/vmpsd.sh b/net/openvmps/files/vmpsd.sh new file mode 100644 index 00000000000..10be1c0b403 --- /dev/null +++ b/net/openvmps/files/vmpsd.sh @@ -0,0 +1,18 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: vmpsd.sh,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ +# + +# PROVIDE: vmpsd +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="vmpsd" +rcvar="vmpsd" +command="@PREFIX@/bin/${name}" +required_files="@PKG_SYSCONFDIR@/vlan.db" +extra_commands="reload" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/openvmps/patches/patch-aa b/net/openvmps/patches/patch-aa new file mode 100644 index 00000000000..fe169afdcd3 --- /dev/null +++ b/net/openvmps/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ + +--- daemon.c.orig 2005-06-06 13:03:05.000000000 +0200 ++++ daemon.c 2005-06-06 13:04:47.000000000 +0200 +@@ -44,6 +44,9 @@ + + { + register int childpid; ++#ifdef VMPS_CHECK_BSD ++ int fd; ++#endif + + #ifdef SIGTTOU + signal(SIGTTOU, SIG_IGN); diff --git a/net/openvmps/patches/patch-ab b/net/openvmps/patches/patch-ab new file mode 100644 index 00000000000..1f6ff858727 --- /dev/null +++ b/net/openvmps/patches/patch-ab @@ -0,0 +1,56 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ + +--- Makefile.in.orig 2005-06-06 13:30:39.000000000 +0200 ++++ Makefile.in 2005-06-06 13:33:01.000000000 +0200 +@@ -52,7 +52,7 @@ + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = config.h + CONFIG_CLEAN_FILES = +-am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(sysconfdir)" ++am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(egsysconfdir)" + binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) + PROGRAMS = $(bin_PROGRAMS) + am_vmpsd_OBJECTS = vmpsd-vmpsd.$(OBJEXT) vmpsd-daemon.$(OBJEXT) \ +@@ -166,6 +166,7 @@ + sbindir = @sbindir@ + sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ ++egsysconfdir = @prefix@/share/examples/openvmps + target_alias = @target_alias@ + 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_CFLAGS = -DSYSCONFDIR="\"${sysconfdir}\"" +@@ -442,20 +443,20 @@ + done + install-sysconfDATA: $(sysconf_DATA) + @$(NORMAL_INSTALL) +- test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)" ++ test -z "$(egsysconfdir)" || $(mkdir_p) "$(DESTDIR)$(egsysconfdir)" + @list='$(sysconf_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \ +- $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \ ++ echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(egsysconfdir)/$$f'"; \ ++ $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(egsysconfdir)/$$f"; \ + done + + uninstall-sysconfDATA: + @$(NORMAL_UNINSTALL) + @list='$(sysconf_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \ +- rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \ ++ echo " rm -f '$(DESTDIR)$(egsysconfdir)/$$f'"; \ ++ rm -f "$(DESTDIR)$(egsysconfdir)/$$f"; \ + done + + ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) +@@ -634,7 +635,7 @@ + check: check-am + all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h + installdirs: +- for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(sysconfdir)"; do \ ++ for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(egsysconfdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done + install: install-am diff --git a/net/openvmps/patches/patch-ac b/net/openvmps/patches/patch-ac new file mode 100644 index 00000000000..01ae24e5626 --- /dev/null +++ b/net/openvmps/patches/patch-ac @@ -0,0 +1,25 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ + +--- vmpsd.c.orig Mon Jun 6 14:20:37 2005 ++++ vmpsd.c Mon Jun 6 14:21:50 2005 +@@ -137,9 +137,19 @@ + #ifdef HAVE_SIGACTION + { + struct sigaction action; +- action.sa_sigaction = handle_sighup; + sigemptyset(&action.sa_mask); ++#ifdef SA_SIGINFO ++ action.sa_sigaction = handle_sighup; + action.sa_flags = SA_SIGINFO; ++#else ++ action.sa_handler = handle_sighup; ++#ifdef SA_RESTART ++ action.sa_flags = SA_RESTART; ++#else ++ action.sa_flags = 0; ++#endif ++#endif ++ + sigaction(SIGHUP, &action, NULL); + } + #else |