Revision 2a172bdc
Added by Daniel Lobato Garcia almost 8 years ago
plugins/ruby-foreman-azure/debian/changelog | ||
---|---|---|
ruby-foreman-azure (1.0.1-1) stable; urgency=low
|
||
|
||
* Initial release.
|
||
|
||
-- Daniel Lobato Garcia <elobatocs@gmail.com> Thu, 2 Jun 2016 10:11:49 +0200
|
plugins/ruby-foreman-azure/debian/compat | ||
---|---|---|
8
|
plugins/ruby-foreman-azure/debian/control | ||
---|---|---|
Source: ruby-foreman-azure
|
||
Section: ruby
|
||
Priority: extra
|
||
Maintainer: Daniel Lobato Garcia <elobatocs@gmail.com>
|
||
Build-Depends: debhelper, foreman (>= 1.11.0), foreman-assets (>= 1.11.0), foreman-sqlite3 (>= 1.11.0), ruby-foreman-deface (<<2.0.0)
|
||
Standards-Version: 3.9.3
|
||
Homepage: https://github.com/theforeman/foreman_azure
|
||
|
||
Package: ruby-foreman-azure
|
||
Architecture: all
|
||
Depends: ${misc:Depends}, bundler, foreman (>= 1.11.0), ruby-foreman-deface (<<2.0.0)
|
||
Description: Foreman Azure plugin
|
||
Integration with Azure in Foreman.
|
plugins/ruby-foreman-azure/debian/copyright | ||
---|---|---|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||
Upstream-Name: ruby-foreman-azure
|
||
Source: https://github.com/theforeman/foreman_azure
|
||
|
||
Files: *
|
||
Copyright: 2016 Daniel Lobato Garcia <elobatocs@gmail.com>
|
||
License: GPL-3.0+
|
plugins/ruby-foreman-azure/debian/gem.list | ||
---|---|---|
# list of gem urls to download via Jenkins, space separated
|
||
GEMS="https://rubygems.org/downloads/foreman_azure-1.0.1.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/fog-azure-0.0.2.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/azure-0.7.5.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/azure-core-0.1.1.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/faraday_middleware-0.10.0.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/systemu-2.6.5.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/uuid-2.3.8.gem"
|
||
GEMS="$GEMS https://rubygems.org/downloads/macaddr-1.7.1.gem"
|
plugins/ruby-foreman-azure/debian/install | ||
---|---|---|
foreman_azure.rb usr/share/foreman/bundler.d
|
||
cache usr/share/foreman/vendor
|
||
foreman_azure var/lib/foreman/public/assets
|
plugins/ruby-foreman-azure/debian/postinst | ||
---|---|---|
#!/bin/sh
|
||
# postinst script for foreman-*
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
if [ ! -z "${DEBUG}" ]; then
|
||
set -x
|
||
else
|
||
set -e
|
||
fi
|
||
|
||
. /usr/share/debconf/confmodule
|
||
|
||
LOGFILE='/var/log/foreman-install.log'
|
||
PLUGIN='foreman_azure'
|
||
|
||
# if this script aborts with an error dpkg can
|
||
# hang if daemons have been started
|
||
trap db_stop EXIT
|
||
|
||
BUNDLE=bundle
|
||
[ -h /usr/bin/foreman-ruby ] && BUNDLE="/usr/bin/foreman-ruby /usr/bin/bundle"
|
||
|
||
# Update gems
|
||
export HOME=/usr/share/foreman
|
||
cd /usr/share/foreman
|
||
if [ ! -z "${DEBUG}" ]; then
|
||
if [ -n "$2" ] ; then
|
||
$BUNDLE update $PLUGIN --local
|
||
else
|
||
$BUNDLE install --local --no-prune
|
||
fi
|
||
else
|
||
if [ -n "$2" ] ; then
|
||
$BUNDLE update $PLUGIN --local 2>&1 >> $LOGFILE
|
||
else
|
||
$BUNDLE install --local --no-prune 2>&1 >> $LOGFILE
|
||
fi
|
||
fi
|
||
|
||
# Own all the core files
|
||
chown -Rf foreman:foreman '/usr/share/foreman'
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
plugins/ruby-foreman-azure/debian/rules | ||
---|---|---|
#!/usr/bin/make -f
|
||
# -*- makefile -*-
|
||
# Sample debian/rules that uses debhelper.
|
||
# This file was originally written by Joey Hess and Craig Small.
|
||
# As a special exception, when this file is copied by dh-make into a
|
||
# dh-make output file, you may use that output file without restriction.
|
||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||
|
||
# Uncomment this to turn on verbose mode.
|
||
#export DH_VERBOSE=1
|
||
|
||
PLUGIN = foreman_azure
|
||
|
||
build:
|
||
cp cache/* /usr/share/foreman/vendor/cache/
|
||
cp $(PLUGIN).rb /usr/share/foreman/bundler.d/
|
||
cd /usr/share/foreman && ( \
|
||
bundle install --local && \
|
||
bundle exec rake plugin:assets:precompile[$(PLUGIN)] RAILS_ENV=production \
|
||
)
|
||
GEM_PATH=$$(cd /usr/share/foreman && bundle show $(PLUGIN)) && \
|
||
cp -rp $${GEM_PATH}/public/assets/$(PLUGIN) ./
|
||
|
||
%:
|
||
dh $@
|
plugins/ruby-foreman-azure/debian/source/format | ||
---|---|---|
3.0 (native)
|
plugins/ruby-foreman-azure/foreman_azure.rb | ||
---|---|---|
gem 'foreman_azure', '1.0.1'
|
Also available in: Unified diff
plugins:foreman_azure - Release 1.0.1