Index: head/sysutils/rubygem-smart_proxy_salt/Makefile =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/Makefile (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/Makefile (revision 387879) @@ -1,43 +1,43 @@ # Created by: Michael Moll # $FreeBSD$ PORTNAME= smart_proxy_salt -PORTVERSION= 1.0.0 +PORTVERSION= 2.1.2 CATEGORIES= sysutils ruby MASTER_SITES= RG MAINTAINER= mmoll@FreeBSD.org COMMENT= SaltStack Plug-In for Foreman's Smart Proxy LICENSE= GPLv3 -RUN_DEPENDS= foreman-proxy>=1.6.0:${PORTSDIR}/net/foreman-proxy \ +RUN_DEPENDS= foreman-proxy>=1.8.0:${PORTSDIR}/net/foreman-proxy \ ${PYTHON_PKGNAMEPREFIX}salt>0:${PORTSDIR}/sysutils/py-salt USES= python USE_RUBY= yes USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes -.include - post-patch: @${REINPLACE_CMD} \ -e "s|/usr/bin/env ruby|${RUBY}|g" \ -e "s|/usr/bin/env python|${PYTHON_CMD}|g" \ -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ ${WRKSRC}/bin/foreman-node \ ${WRKSRC}/sbin/upload-salt-reports post-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/etc/foreman-proxy ${MKDIR} ${STAGEDIR}${PREFIX}/etc/foreman-proxy/settings.d - ${INSTALL_DATA} ${FILESDIR}/salt.yml.sample ${STAGEDIR}${PREFIX}/etc/foreman-proxy/settings.d/salt.yml.sample - ${MKDIR} ${STAGEDIR}${PREFIX}/share/foreman-proxy + ${INSTALL_DATA} ${WRKSRC}/settings.d/salt.yml.example \ + ${STAGEDIR}${PREFIX}/etc/foreman-proxy/settings.d/salt.yml.sample ${MKDIR} ${STAGEDIR}${PREFIX}/share/foreman-proxy/bundler.d - ${INSTALL_DATA} ${FILESDIR}/salt.rb ${STAGEDIR}${PREFIX}/share/foreman-proxy/bundler.d/salt.rb + ${INSTALL_DATA} ${FILESDIR}/salt.rb \ + ${STAGEDIR}${PREFIX}/share/foreman-proxy/bundler.d/salt.rb ${MKDIR} ${STAGEDIR}${PREFIX}/etc/salt - ${INSTALL_DATA} ${FILESDIR}/foreman.yaml.sample ${STAGEDIR}${PREFIX}/etc/salt/foreman.yaml.sample - ${INSTALL_SCRIPT} ${WRKSRC}/sbin/upload-salt-reports ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/etc/foreman.yaml.example \ + ${STAGEDIR}${PREFIX}/etc/salt/foreman.yaml.sample + ${INSTALL_SCRIPT} ${WRKSRC}/sbin/upload-salt-reports \ + ${STAGEDIR}${PREFIX}/sbin -.include +.include Index: head/sysutils/rubygem-smart_proxy_salt/distinfo =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/distinfo (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/distinfo (revision 387879) @@ -1,2 +1,2 @@ -SHA256 (rubygem/smart_proxy_salt-1.0.0.gem) = a0a84ef93c6608701b8fd53d56c7e9e3a1793f13a0e65fc8ee4fada8be07ab3f -SIZE (rubygem/smart_proxy_salt-1.0.0.gem) = 22016 +SHA256 (rubygem/smart_proxy_salt-2.1.2.gem) = 6d7d74233e25e7c762b44cc3fc7241373a0c4d46aad4431c3ebe4aba9041550d +SIZE (rubygem/smart_proxy_salt-2.1.2.gem) = 23040 Index: head/sysutils/rubygem-smart_proxy_salt/files/foreman.yaml.sample =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/files/foreman.yaml.sample (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/files/foreman.yaml.sample (nonexistent) @@ -1,10 +0,0 @@ ---- -:proto: http -:host: foreman.example.com -:port: 3000 -:ssl_ca: "" -:ssl_cert: "" -:ssl_key: "" -:timeout: 10 -:salt: /usr/local/bin/salt -:upload_grains: true Property changes on: head/sysutils/rubygem-smart_proxy_salt/files/foreman.yaml.sample ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/rubygem-smart_proxy_salt/files/salt.yml.sample =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/files/salt.yml.sample (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/files/salt.yml.sample (nonexistent) @@ -1,4 +0,0 @@ ---- -:enabled: true -:autosign_file: /usr/local/etc/salt/autosign.conf -:salt_command_user: root Property changes on: head/sysutils/rubygem-smart_proxy_salt/files/salt.yml.sample ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/rubygem-smart_proxy_salt/files/patch-bin-foreman-node =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/files/patch-bin-foreman-node (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/files/patch-bin-foreman-node (revision 387879) @@ -1,11 +1,11 @@ ---- bin/foreman-node.orig 2014-09-27 23:35:54.000000000 +0200 -+++ bin/foreman-node 2014-09-27 23:39:19.000000000 +0200 +--- bin/foreman-node.orig 2015-05-15 19:21:46 UTC ++++ bin/foreman-node @@ -5,7 +5,7 @@ require 'yaml' --$settings_file = "/etc/salt/foreman.yaml" -+$settings_file = "%%LOCALBASE%%/etc/salt/foreman.yaml" +-$settings_file = '/etc/salt/foreman.yaml' ++$settings_file = '%%LOCALBASE%%/etc/salt/foreman.yaml' SETTINGS = YAML.load_file($settings_file) require 'net/http' Index: head/sysutils/rubygem-smart_proxy_salt/files/salt.rb =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/files/salt.rb (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/files/salt.rb (revision 387879) @@ -1 +1 @@ -gem 'smart_proxy_salt', '0.0.2' +gem 'smart_proxy_salt' Index: head/sysutils/rubygem-smart_proxy_salt/pkg-message =================================================================== --- head/sysutils/rubygem-smart_proxy_salt/pkg-message (revision 387878) +++ head/sysutils/rubygem-smart_proxy_salt/pkg-message (revision 387879) @@ -1,5 +1,5 @@ Further configuration is required to connect salt and foreman-proxy, see: -https://github.com/theforeman/foreman_salt/wiki#21-smart-proxy +http://theforeman.org/plugins/foreman_salt/2.0/#2.1SmartProxy To upload reports from SaltStack highstates to Foreman, add a line like this to your /etc/crontab: */10 * * * * root /usr/local/sbin/upload-salt-reports >>/var/log/foreman-proxy/salt-cron.log 2>&1 Property changes on: head/sysutils/rubygem-smart_proxy_salt/pkg-message ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property