diff options
| author | Steve Wills <swills@FreeBSD.org> | 2014-04-13 02:34:44 +0000 |
|---|---|---|
| committer | Steve Wills <swills@FreeBSD.org> | 2014-04-13 02:34:44 +0000 |
| commit | cd68d15ee02ff9a521258f6553f41e98aa0e35d3 (patch) | |
| tree | e9ea46961adcd26d080e23035f8625514e790297 | |
| parent | - Update to 0.1.0 (diff) | |
- Update to 0.1.0
- Assign maintainership to submitter
PR: ports/188288
Submitted by: Michael Moll <kvedulv@kvedulv.de>
Notes
Notes:
svn path=/head/; revision=351176
5 files changed, 28 insertions, 35 deletions
diff --git a/sysutils/rubygem-hammer_cli_foreman/Makefile b/sysutils/rubygem-hammer_cli_foreman/Makefile index 8a4df8ddd5f7..0e3643e35ddc 100644 --- a/sysutils/rubygem-hammer_cli_foreman/Makefile +++ b/sysutils/rubygem-hammer_cli_foreman/Makefile @@ -2,20 +2,27 @@ # $FreeBSD$ PORTNAME= hammer_cli_foreman -PORTVERSION= 0.0.18 +PORTVERSION= 0.1.0 CATEGORIES= sysutils ruby MASTER_SITES= RG -MAINTAINER= ruby@FreeBSD.org +MAINTAINER= kvedulv@kvedulv.de COMMENT= Foreman commands for Hammer CLI LICENSE= GPLv3 -RUN_DEPENDS= rubygem-foreman_api>=0.1.11:${PORTSDIR}/devel/rubygem-foreman_api \ - rubygem-hammer_cli>=0.0.18:${PORTSDIR}/sysutils/rubygem-hammer_cli +RUN_DEPENDS= rubygem-apipie-bindings>=0.0.6:${PORTSDIR}/devel/rubygem-apipie-bindings \ + rubygem-hammer_cli=0.1.0:${PORTSDIR}/sysutils/rubygem-hammer_cli USE_RUBY= yes USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/hammer + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/hammer/cli.modules.d + ${INSTALL_DATA} ${FILESDIR}/foreman.yml.sample ${STAGEDIR}${PREFIX}/etc/hammer/cli.modules.d/foreman.yml.sample + +.include <bsd.port.post.mk> diff --git a/sysutils/rubygem-hammer_cli_foreman/distinfo b/sysutils/rubygem-hammer_cli_foreman/distinfo index 6cc076387e13..11050752e82b 100644 --- a/sysutils/rubygem-hammer_cli_foreman/distinfo +++ b/sysutils/rubygem-hammer_cli_foreman/distinfo @@ -1,2 +1,2 @@ -SHA256 (rubygem/hammer_cli_foreman-0.0.18.gem) = 97a7310e001726bf8bc0004bb9f08c87650e224fac351b1e3f8b2dc593e05337 -SIZE (rubygem/hammer_cli_foreman-0.0.18.gem) = 48640 +SHA256 (rubygem/hammer_cli_foreman-0.1.0.gem) = 2997c29333415fb8e642108f43b8f4034437290d26b16e149e2457f91f697fd2 +SIZE (rubygem/hammer_cli_foreman-0.1.0.gem) = 82944 diff --git a/sysutils/rubygem-hammer_cli_foreman/files/foreman.yml.sample b/sysutils/rubygem-hammer_cli_foreman/files/foreman.yml.sample new file mode 100644 index 000000000000..28f0ab6faf1d --- /dev/null +++ b/sysutils/rubygem-hammer_cli_foreman/files/foreman.yml.sample @@ -0,0 +1,11 @@ +:foreman: + :enable_module: true + :host: 'https://localhost/' + :username: 'admin' + :password: 'changeme' + + # Check cache status on each request + #:refresh_cache: false + + # API request timeout, set -1 for infinity + #:request_timeout: 120 #seconds diff --git a/sysutils/rubygem-hammer_cli_foreman/files/patch-lib__hammer_cli_foreman__commands.rb b/sysutils/rubygem-hammer_cli_foreman/files/patch-lib__hammer_cli_foreman__commands.rb deleted file mode 100644 index 6701e8e6304d..000000000000 --- a/sysutils/rubygem-hammer_cli_foreman/files/patch-lib__hammer_cli_foreman__commands.rb +++ /dev/null @@ -1,28 +0,0 @@ ---- lib/hammer_cli_foreman/commands.rb.orig 2014-03-12 11:03:33.000000000 +0100 -+++ lib/hammer_cli_foreman/commands.rb 2014-03-12 11:03:49.000000000 +0100 -@@ -60,9 +60,9 @@ - end - - def execute -- if respond_to?(:page) && respond_to?(:per_page) -- self.page ||= 1 -- self.per_page ||= HammerCLI::Settings.get(:ui, :per_page) || DEFAULT_PER_PAGE -+ if respond_to?(:option_page) && respond_to?(:option_per_page) -+ self.option_page ||= 1 -+ self.option_per_page ||= HammerCLI::Settings.get(:ui, :per_page) || DEFAULT_PER_PAGE - browse_collection - else - retrieve_and_print -@@ -79,10 +79,10 @@ - while list_next do - d = retrieve_and_print - -- if (d.size >= self.per_page.to_i) && interactive? -+ if (d.size >= self.option_per_page.to_i) && interactive? - answer = ask("List next page? (Y/n): ").downcase - list_next = (answer == 'y' || answer == '') -- self.page += 1 -+ self.option_page += 1 - else - list_next = false - end diff --git a/sysutils/rubygem-hammer_cli_foreman/pkg-plist b/sysutils/rubygem-hammer_cli_foreman/pkg-plist new file mode 100644 index 000000000000..ecd6ccbfbd6b --- /dev/null +++ b/sysutils/rubygem-hammer_cli_foreman/pkg-plist @@ -0,0 +1,3 @@ +@unexec if cmp -s %D/etc/hammer/cli.modules.d/foreman.yml.sample %D/etc/hammer/cli.modules.d/foreman.yml; then rm -f %D/etc/hammer/cli.modules.d/foreman.yml; fi +etc/hammer/cli.modules.d/foreman.yml.sample +@exec if [ ! -f %D/etc/hammer/cli.modules.d/foreman.yml ] ; then cp -p %D/etc/hammer/cli.modules.d/foreman.yml.sample %D/etc/hammer/cli.modules.d/foreman.yml; fi |
