Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 15:38:55 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307289 - in head/net-mgmt/openvmps: . files
Message-ID:  <201211101538.qAAFctix046478@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Nov 10 15:38:55 2012
New Revision: 307289
URL: http://svnweb.freebsd.org/changeset/ports/307289

Log:
  Update to version 1.4.04
  
  PR:		ports/172047
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Added:
  head/net-mgmt/openvmps/files/patch-data.c   (contents, props changed)
  head/net-mgmt/openvmps/files/vmpsd.in   (contents, props changed)
Deleted:
  head/net-mgmt/openvmps/files/patch-Makefile.in
  head/net-mgmt/openvmps/files/patch-daemon.c
  head/net-mgmt/openvmps/files/vpmsd.in
Modified:
  head/net-mgmt/openvmps/Makefile
  head/net-mgmt/openvmps/distinfo

Modified: head/net-mgmt/openvmps/Makefile
==============================================================================
--- head/net-mgmt/openvmps/Makefile	Sat Nov 10 15:22:12 2012	(r307288)
+++ head/net-mgmt/openvmps/Makefile	Sat Nov 10 15:38:55 2012	(r307289)
@@ -2,21 +2,20 @@
 # $FreeBSD$
 
 PORTNAME=	openvmps
-PORTVERSION=	1.3
-PORTREVISION=	1
+PORTVERSION=	1.4.04
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/vmps/vmpsd/${PORTVERSION}
 DISTNAME=	vmpsd-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A GPL implementation of the VMPS protocol
+COMMENT=	GPL implementation of the VMPS protocol
 
-WRKSRC=		${WRKDIR}/vmpsd
-USE_RC_SUBR=	vpmsd
+LICENSE=	GPLv2
 
-GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
+USE_RC_SUBR=	vmpsd
 
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=--bindir=${PREFIX}/sbin
 
 MAN1=		vmpsd.1
@@ -27,11 +26,14 @@ MAN1=		vmpsd.1
 IGNORE=		does not run correctly on amd64 architecture, see ports/136376
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e '/^install-exec-am:/s|install-sysconfDATA||' \
+		${WRKSRC}/Makefile.in
+
 post-install:
-	${INSTALL_DATA} -m 644 ${WRKSRC}/vlan.db \
-		${PREFIX}/etc/vmps.db.sample
-	@if [ ! -f ${PREFIX}/etc/vmps.db ]; then \
-		${CP} -p ${PREFIX}/etc/vmps.db.sample ${PREFIX}/etc/vmps.db ; \
-	fi
+	${INSTALL_DATA} ${WRKSRC}/vlan.db ${PREFIX}/etc/vmps.db.sample
+.if !exists(${PREFIX}/etc/vmps.db)
+	cd ${PREFIX}/etc && ${CP} -p vmps.db.sample vmps.db
+.endif
 
 .include <bsd.port.post.mk>

Modified: head/net-mgmt/openvmps/distinfo
==============================================================================
--- head/net-mgmt/openvmps/distinfo	Sat Nov 10 15:22:12 2012	(r307288)
+++ head/net-mgmt/openvmps/distinfo	Sat Nov 10 15:38:55 2012	(r307289)
@@ -1,2 +1,2 @@
-SHA256 (vmpsd-1.3.tar.gz) = 6f6bd6c5d1e9fc862c27cf783bcbabef21619aa5fe7984231eb55e32e11ca142
-SIZE (vmpsd-1.3.tar.gz) = 95202
+SHA256 (vmpsd-1.4.04.tar.gz) = 3b82ed9547eb126ffbefdd9b890870ebfac466c0bc93cfea1764a360772912ab
+SIZE (vmpsd-1.4.04.tar.gz) = 193900

Added: head/net-mgmt/openvmps/files/patch-data.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/openvmps/files/patch-data.c	Sat Nov 10 15:38:55 2012	(r307289)
@@ -0,0 +1,11 @@
+--- data.c.orig	2012-11-10 16:26:08.000000000 +0100
++++ data.c	2012-11-10 16:27:30.000000000 +0100
+@@ -37,7 +37,7 @@
+ 
+ void *xfree(void *p) {
+ 
+-	if (p == NULL) return;
++	if (p == NULL) return NULL;
+ 	vmps_log(DEBUG|SYSTEM, "FREE: %x",p);
+ 	free(p);
+ }

Added: head/net-mgmt/openvmps/files/vmpsd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/openvmps/files/vmpsd.in	Sat Nov 10 15:38:55 2012	(r307289)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Start or stop vmpsd
+# $FreeBSD$
+
+# PROVIDE: vmpsd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+# Define these vmpsd_* variables in one of these files:
+#       /etc/rc.conf
+#       /etc/rc.conf.local
+#       /etc/rc.conf.d/vmpsd
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE 
+#
+[ -z "$vmpsd_enable" ] && vmpsd_enable="NO" # Enable vmpsd
+#vmpsd_program="%%PREFIX%%/sbin/vmpsd"       # Location of vmpsd
+[ -z "$vmpsd_flags" ] && vmpsd_flags="-f /usr/local/etc/vmps.db"   # Flags to vmpsd program
+
+. /etc/rc.subr
+
+name="vmpsd"
+rcvar=vmpsd_enable
+command="%%PREFIX%%/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211101538.qAAFctix046478>