From: <dme...@us...> - 2014-04-29 03:33:33
|
Revision: 8141 http://sourceforge.net/p/bigdata/code/8141 Author: dmekonnen Date: 2014-04-29 03:33:29 +0000 (Tue, 29 Apr 2014) Log Message: ----------- Adding brew formula. deploy-artifact-nss target added to build.xml to produce a minimal archive for running NSS. Modified Paths: -------------- branches/RDR/build.xml Added Paths: ----------- branches/RDR/bigdata/src/resources/deployment/brew/ branches/RDR/bigdata/src/resources/deployment/brew/bigdata.rb Added: branches/RDR/bigdata/src/resources/deployment/brew/bigdata.rb =================================================================== --- branches/RDR/bigdata/src/resources/deployment/brew/bigdata.rb (rev 0) +++ branches/RDR/bigdata/src/resources/deployment/brew/bigdata.rb 2014-04-29 03:33:29 UTC (rev 8141) @@ -0,0 +1,65 @@ +require 'formula' + +# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook +# /usr/local/Library/Contributions/example-formula.rb +# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! + +class Bigdata < Formula + homepage 'http://bigdata.com/blog/' + url 'http://bigdata.com/deploy/bigdata-1.3.0.tgz' + sha1 'a395a243a2746ce47cf8893f2207fd2e0de4a9c1' + + def install + prefix.install Dir['*'] + end + + def caveats; <<-EOS.undent + After launching, visit the Bigdata Workbench at: + + http://localhost:8080/bigdata + + "bigdata" command synopis: + ------------------------- + + Start the server: + + % bigdata start + + Stop the server: + + % bigdata stop + + Restart the server: + + % bigdata restart + + To tune the server configuration, edit the "#{var}/jetty/WEB-INF/RWStore.properties" file. + + Further documentation: + + #{doc} + EOS + end + + plist_options :startup => 'true', :manual => 'bigdata start' + + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" + "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>Label</key> + <string>#{plist_name}</string> + <key>Program</key> + <string>#{bin}/bigdata</string> + <key>RunAtLoad</key> + <true/> + <key>WorkingDirectory</key> + <string>#{prefix}</string> + </dict> + </plist> + EOS + end + +end Modified: branches/RDR/build.xml =================================================================== --- branches/RDR/build.xml 2014-04-29 02:10:07 UTC (rev 8140) +++ branches/RDR/build.xml 2014-04-29 03:33:29 UTC (rev 8141) @@ -1209,12 +1209,16 @@ <!-- Stage documentation from the wiki. --> <get dest="${dist.doc}/HAJournalServer.html" - src="http://sourceforge.net/apps/mediawiki/bigdata/index.php?title=HAJournalServer&printable=yes" + src="http://wiki.bigdata.com/wiki/index.php/HAJournalServer" /> <get dest="${dist.doc}/NanoSparqlServer.html" - src="http://sourceforge.net/apps/mediawiki/bigdata/index.php?title=NanoSparqlServer&printable=yes" + src="http://wiki.bigdata.com/wiki/index.php/NanoSparqlServer" /> - + + <!-- Stage files specific to NSS deployments provided by Brew and Chef. --> + <copy file="${src.resources}/bin/bigdata" + todir="${dist.bin}" /> + <chmod file="${dist.bin}/bigdata" perm="755" /> </target> <!-- --> @@ -1280,6 +1284,7 @@ <exclude name="bigdata/bin/disco-tool" /> <exclude name="bigdata/bin/pstart" /> <exclude name="bigdata/bin/startHAServices" /> + <exclude name="bigdata/bin/bigdata" /> </tarfileset> <!-- Add scripts separately, making them executable --> @@ -1293,6 +1298,35 @@ </target> + <target name="deploy-artifact-nss" depends="clean, stage" + description="Create compressed tar file for Jetty based deployment via Brew and Chef installers."> + + <tar destfile="${bigdata.dir}/REL-NSS.${version}.tgz" + compression="gzip"> + + <tarfileset dir="${bigdata.dir}/dist"> + <include name="bigdata/doc/**" /> + <exclude name="bigdata/doc/HAJournalServer.html" /> + <include name="bigdata/lib/**" /> + <exclude name="bigdata/lib/bigdata-ganglia.jar" /> + <exclude name="bigdata/lib/browser.jar" /> + <exclude name="bigdata/lib/reggie.jar" /> + <exclude name="bigdata/lib/zookeeper.jar" /> + <exclude name="bigdata/lib/jsk-*.jar" /> + <exclude name="bigdata/lib-dl" /> + <exclude name="bigdata/lib-ext" /> + <include name="bigdata/var/jetty/**" /> + </tarfileset> + + <!-- Add scripts separately, making them executable --> + + <tarfileset dir="${bigdata.dir}/dist" filemode="755"> + <include name="bigdata/bin/bigdata" /> + </tarfileset> + </tar> + + </target> + <!-- FIXME DEBUG and add 'depends="javadoc, stage" (should stage stage javadoc?)' --> <!-- Note: can require 'rpm' and 'rpm-build. --> <!-- TODO: We do not need both this and "deploy-artifact". --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |