diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/projects/mathy.rb | 5 | ||||
| -rw-r--r-- | config/software/c-example.rb | 42 | ||||
| -rw-r--r-- | config/software/erlang-example.rb | 38 | ||||
| -rw-r--r-- | config/software/mathy.rb | 16 | ||||
| -rw-r--r-- | config/software/ruby-example.rb | 24 |
5 files changed, 19 insertions, 106 deletions
diff --git a/config/projects/mathy.rb b/config/projects/mathy.rb index b8b69e9..8d35131 100644 --- a/config/projects/mathy.rb +++ b/config/projects/mathy.rb @@ -1,7 +1,7 @@ name 'mathy' -maintainer 'CHANGE ME' -homepage 'CHANGEME.com' +maintainer 'mo khan' +homepage 'github.com/mokhan/mathy' replaces 'mathy' install_path '/opt/mathy' @@ -13,6 +13,7 @@ dependency 'preparation' # mathy dependencies/components # dependency 'somedep' +dependency 'mathy' # version manifest file dependency 'version-manifest' diff --git a/config/software/c-example.rb b/config/software/c-example.rb deleted file mode 100644 index c9389b4..0000000 --- a/config/software/c-example.rb +++ /dev/null @@ -1,42 +0,0 @@ -# This is an example software definition for a C project. -# -# Lots of software definitions for popular open source software -# already exist in `opscode-omnibus`: -# -# https://github.com/opscode/omnibus-software/tree/master/config/software -# -name "c-example" -version "1.0.0" - -dependency "zlib" -dependency "openssl" - -source :url => "http://itchy.neckbeard.se/download/c-example-1.0.0.tar.gz", - :md5 => "8e23151f569fb54afef093ac0695077d" - -relative_path 'c-example-1.0.0' - -env = { - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", - "LD_RUN_PATH" => "#{install_dir}/embedded/lib" -} - -build do - command ["./configure", - "--prefix=#{install_dir}/embedded", - "--disable-debug", - "--enable-optimize", - "--disable-ldap", - "--disable-ldaps", - "--disable-rtsp", - "--enable-proxy", - "--disable-dependency-tracking", - "--enable-ipv6", - "--without-libidn", - "--with-ssl=#{install_dir}/embedded", - "--with-zlib=#{install_dir}/embedded"].join(" "), :env => env - - command "make -j #{max_build_jobs}", :env => env - -end diff --git a/config/software/erlang-example.rb b/config/software/erlang-example.rb deleted file mode 100644 index 8916b92..0000000 --- a/config/software/erlang-example.rb +++ /dev/null @@ -1,38 +0,0 @@ -# This is an example software definition for an Erlang project. -# -# Lots of software definitions for popular open source software -# already exist in `opscode-omnibus`: -# -# https://github.com/opscode/omnibus-software/tree/master/config/software -# -name "erlang-example" -version "1.0.0" - -dependency "erlang" -dependency "rebar" -dependency "rsync" - -source :git => "git://github.com/example/erlang.git" - -relative_path "erlang-example" - -env = { - "PATH" => "#{install_dir}/embedded/bin:#{ENV["PATH"]}", - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", - "LD_RUN_PATH" => "#{install_dir}/embedded/lib" -} - -build do - command "make distclean", :env => env - command "make rel", :env => env - command "mkdir -p #{install_dir}/embedded/service/example-erlang" - command ["#{install_dir}/embedded/bin/rsync", - "-a", - "--delete", - "--exclude=.git/***", - "--exclude=.gitignore", - "./rel/erlang-example/", - "#{install_dir}/embedded/service/erlang-example/"].join(" ") - command "rm -rf #{install_dir}/embedded/service/erlang-example/log" -end diff --git a/config/software/mathy.rb b/config/software/mathy.rb new file mode 100644 index 0000000..738c8c7 --- /dev/null +++ b/config/software/mathy.rb @@ -0,0 +1,16 @@ +# This is an example software definition for a Ruby project. +# +# Lots of software definitions for popular open source software +# already exist in `opscode-omnibus`: +# +# https://github.com/opscode/omnibus-software/tree/master/config/software +# +name "mathy" +version "0.0.2" + +dependency "ruby" +dependency "rubygems" + +build do + gem "install mathy -n #{install_dir}/bin --no-rdoc --no-ri -v #{version}" +end diff --git a/config/software/ruby-example.rb b/config/software/ruby-example.rb deleted file mode 100644 index 31bc0db..0000000 --- a/config/software/ruby-example.rb +++ /dev/null @@ -1,24 +0,0 @@ -# This is an example software definition for a Ruby project. -# -# Lots of software definitions for popular open source software -# already exist in `opscode-omnibus`: -# -# https://github.com/opscode/omnibus-software/tree/master/config/software -# -name "ruby-example" -version "1.0.0" - -dependency "ruby" -dependency "rubygems" -dependency "bundler" -dependency "rsync" - -source :git => "git://github.com/example/ruby.git" - -relative_path "ruby-example" - -build do - bundle "install --path=#{install_dir}/embedded/service/gem" - command "mkdir -p #{install_dir}/embedded/service/ruby-example" - command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/ruby-example/" -end |
