Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update solaris packaging script #31

Closed
wants to merge 2 commits into from

2 participants

@rgevaert

The build script to build the solaris package was outdated:

  • mco was not installed
  • building from tar didn't work because the Rakefile was not included

https://projects.puppetlabs.com/issues/8601

@ripienaar ripienaar closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 30, 2012
  1. @rgevaert

    Update solaris packaging.

    rgevaert authored
  2. @rgevaert

    Building from tar works.

    rgevaert authored
This page is out of date. Refresh to see the latest.
Showing with 31 additions and 12 deletions.
  1. +23 −8 ext/solaris/README
  2. +8 −4 ext/solaris/build
View
31 ext/solaris/README
@@ -1,18 +1,33 @@
+Building
+--------
+
+Requirements, you can get them from opencsw:
+- coreuitls (CSWcoreutils)
+- gmake (CSWgmake)
+- ggrep (CSWggrep)
+
Just run ./build on your solaris system.
-Build requirements, get them from opencsw:
-- gmake
-- coreutils
+Running
+-------
-Run requirements, get them from opencsw:
-- ruby
-- rubygems
+Requirements, get them from opencsw:
+- ruby (CSWruby)
+- rubygems (CSWrubygems)
Run requirements
- rubystomp library
http://stomp.codehaus.org/Ruby+Client
Up and till version 1.0.4 it is a single file. Put in /opt/csw/lib/ruby/site_ruby/1.8/
-Configuration:
-server.cfg:
+Configuration
+-------------
+
+/etc/mcollective/server.cfg
+
+Put the plugins in:
libdir = /opt/csw/share/mcollective/plugins
+
+Credits
+-------
+Rudy Gevaert <rudy.gevaert+mcollective@ugent.be>
View
12 ext/solaris/build
@@ -5,11 +5,14 @@ BUILDDIR = solaris/tmp
PKG = solaris/pkg
DESTDIR = ${CURDIR}/${BUILDDIR}
PKGDIR = ${CURDIR}/${PKG}
-PKGNAME = CSW$(shell ggrep "PROJ_NAME = " ../../Rakefile | cut -d' ' -f3 | sed -e 's/"//g')
-VERSION = $(shell ggrep "PROJ_VERSION = " ../../Rakefile | cut -d' ' -f3 | sed -e 's/"//g')
-RELEASE = $(shell ggrep "PROJ_RELEASE = " ../../Rakefile | cut -d' ' -f3 | sed -e 's/"//g')
+PKGNAME = CSWmcollective
+VERSION = $(shell cd ../.. ; RUBYLIB=./lib /opt/csw/bin/ruby18 -r mcollective -e 'puts MCollective::VERSION' )
+# If we checked out from git:
+ifeq ($(VERSION),@DEVELOPMENT_VERSION@)
+ VERSION = $(shell ggrep "PROJ_VERSION = " ../../Rakefile | cut -d' ' -f3 | sed -e 's/"//g')
+endif
+RELEASE = 1
PKGVERSION = ${VERSION}-${RELEASE}\,REV=$(shell date +%Y.%m.%d)
-
RUBY_VERSION = 1.8
RUBY_SITE = ${DESTDIR}/opt/csw/lib/ruby/site_ruby/${RUBY_VERSION}
@@ -27,6 +30,7 @@ install:
# install binaries
ginstall -g bin $(CURDIR)/../../mc-* $(DESTDIR)/opt/csw/sbin/
+ ginstall -g bin $(CURDIR)/../../mco $(DESTDIR)/opt/csw/sbin/
ginstall -g bin $(CURDIR)/../../mcollectived.rb $(DESTDIR)/opt/csw/sbin/mcollectived
# install libraries
gcp -a $(CURDIR)/../../lib/* $(RUBY_SITE)/
Something went wrong with that request. Please try again.