svn commit: r430534 - in head/net-mgmt: . rubygem-oxidized rubygem-oxidized/files

Steve Wills swills at FreeBSD.org
Wed Jan 4 04:36:54 UTC 2017


Author: swills
Date: Wed Jan  4 04:36:53 2017
New Revision: 430534
URL: https://svnweb.freebsd.org/changeset/ports/430534

Log:
  devel/rubygem-oxidized: create port
  
  Oxidized is a network device configuration backup tool. It's a RANCID
  replacement.
  
  WWW: https://github.com/ytti/oxidized
  
  PR:		203374
  Submitted by:	Nick Hilliard <nick at foobar.org> (with modifications)

Added:
  head/net-mgmt/rubygem-oxidized/
  head/net-mgmt/rubygem-oxidized/Makefile   (contents, props changed)
  head/net-mgmt/rubygem-oxidized/distinfo   (contents, props changed)
  head/net-mgmt/rubygem-oxidized/files/
  head/net-mgmt/rubygem-oxidized/files/oxidized.in   (contents, props changed)
  head/net-mgmt/rubygem-oxidized/files/patch-gemspec   (contents, props changed)
  head/net-mgmt/rubygem-oxidized/pkg-descr   (contents, props changed)
Modified:
  head/net-mgmt/Makefile

Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile	Wed Jan  4 04:18:53 2017	(r430533)
+++ head/net-mgmt/Makefile	Wed Jan  4 04:36:53 2017	(r430534)
@@ -299,6 +299,7 @@
     SUBDIR += routers2-extras
     SUBDIR += rrdbot
     SUBDIR += rubygem-blimpy
+    SUBDIR += rubygem-oxidized
     SUBDIR += rubygem-snmp
     SUBDIR += rubygem-visage-app
     SUBDIR += sblim-wbemcli

Added: head/net-mgmt/rubygem-oxidized/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/rubygem-oxidized/Makefile	Wed Jan  4 04:36:53 2017	(r430534)
@@ -0,0 +1,35 @@
+# Created by: Nick Hilliard <nick at foobar.org>
+# $FreeBSD$
+
+PORTNAME=	oxidized
+PORTVERSION=	0.19.0
+CATEGORIES=	net-mgmt rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	nick at foobar.org
+COMMENT=	Network device configuration backup tool
+
+LICENSE=	APACHE20
+
+RUN_DEPENDS=	rubygem-asetus>=0.1:devel/rubygem-asetus \
+		rubygem-net-ssh>=3.0.2:security/rubygem-net-ssh \
+		rubygem-net-telnet>=0:security/rubygem-net-telnet \
+		rubygem-rugged>=0.21.4:devel/rubygem-rugged \
+		rubygem-slop3>=3.5:devel/rubygem-slop3
+
+NO_ARCH=	yes
+
+USE_RC_SUBR=	oxidized
+
+USE_RUBY=	yes
+USES=		gem
+
+USERS=		oxidized
+GROUPS=		oxidized
+
+SUB_LIST=	PREFIX=${PREFIX} \
+		RUBY=${RUBY}
+
+PLIST_FILES=	bin/oxidized
+
+.include <bsd.port.mk>

Added: head/net-mgmt/rubygem-oxidized/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/rubygem-oxidized/distinfo	Wed Jan  4 04:36:53 2017	(r430534)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1483497492
+SHA256 (rubygem/oxidized-0.19.0.gem) = d91d77adc582452198093eeca30bf1a78026edbd6e5197b5906fa4501fc68637
+SIZE (rubygem/oxidized-0.19.0.gem) = 59392

Added: head/net-mgmt/rubygem-oxidized/files/oxidized.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/rubygem-oxidized/files/oxidized.in	Wed Jan  4 04:36:53 2017	(r430534)
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: oxidized
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Configuration settings for oxidized in /etc/rc.conf:
+#
+# oxidized_enable (bool):
+#   Set to "NO" by default.
+#   Set it to "YES" to enable oxidized
+#
+# oxidized_args (str):
+#   Extra arguments passed to start command
+#
+# oxidized_home (str)
+#   Set to "/var/db/oxidized" by default.
+#   Set the OXIDIZED_HOME variable for oxidized process
+#
+# oxidized_user (str):
+#   Set to "oxidized" by default.
+#   User to run oxidized as.
+#
+# oxidized_group (str):
+#   Set to "oxidized" by default.
+#   Group for data file ownership.
+#
+
+. /etc/rc.subr
+
+name="oxidized"
+rcvar=oxidized_enable
+
+load_rc_config "${name}"
+
+: ${oxidized_enable="NO"}
+: ${oxidized_home="/var/db/oxidized"}
+: ${oxidized_args=""}
+: ${oxidized_user="oxidized"}
+: ${oxidized_group="oxidized"}
+
+piddir="/var/run/${name}"
+pidfile="${piddir}/${name}.pid"
+procname=%%RUBY%%
+command="/usr/sbin/daemon"
+command_args="-f -p ${pidfile} %%PREFIX%%/bin/oxidized ${oxidized_args}"
+
+export HOME=${oxidized_home}
+
+start_precmd="oxidized_prestart"
+
+oxidized_prestart() {
+	if [ ! -d ${piddir} ]; then
+		install -d -o "${oxidized_user}" -g "${oxidized_group}" -m 750 ${piddir}
+	fi
+}
+
+run_rc_command "$1"

Added: head/net-mgmt/rubygem-oxidized/files/patch-gemspec
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/rubygem-oxidized/files/patch-gemspec	Wed Jan  4 04:36:53 2017	(r430534)
@@ -0,0 +1,11 @@
+--- oxidized.gemspec.orig	2017-01-03 21:39:05.804207000 -0500
++++ oxidized.gemspec	2017-01-03 21:39:19.635551000 -0500
+@@ -26,7 +26,7 @@
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+       s.add_runtime_dependency(%q<asetus>.freeze, ["~> 0.1"])
+       s.add_runtime_dependency(%q<slop>.freeze, ["~> 3.5"])
+-      s.add_runtime_dependency(%q<net-ssh>.freeze, ["~> 3.0.2"])
++      s.add_runtime_dependency(%q<net-ssh>.freeze, [">= 3.0.2"])
+       s.add_runtime_dependency(%q<rugged>.freeze, [">= 0.21.4", "~> 0.21"])
+       s.add_runtime_dependency(%q<net-telnet>.freeze, [">= 0"])
+       s.add_development_dependency(%q<pry>.freeze, ["~> 0"])

Added: head/net-mgmt/rubygem-oxidized/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/rubygem-oxidized/pkg-descr	Wed Jan  4 04:36:53 2017	(r430534)
@@ -0,0 +1,4 @@
+Oxidized is a network device configuration backup tool. It's a RANCID
+replacement.
+
+WWW: https://github.com/ytti/oxidized


More information about the svn-ports-all mailing list