diff options
| author | James Kyle | 2014-09-05 09:42:01 -0700 |
|---|---|---|
| committer | Misty De Meo | 2015-01-23 17:22:34 -0800 |
| commit | 57c2990c4ec303982ed2120e59b1047b74b8f538 (patch) | |
| tree | f3f2237982fe3d8afafbd0a71478e1b7736c47dc /Library/Formula | |
| parent | 2078107a0031d5f892eb500f304d2079226dc734 (diff) | |
| download | homebrew-57c2990c4ec303982ed2120e59b1047b74b8f538.tar.bz2 | |
wsmancli 2.3.1
Dependencies also added:
- Openwsman: 2.3.6 - WS Management Library
- Sblim-sfcc: 2.2.8 - WBEM Library
- Aded @clarkewd patches for tests
Closes #32116.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/openwsman.rb | 52 | ||||
| -rw-r--r-- | Library/Formula/sblim-sfcc.rb | 27 | ||||
| -rw-r--r-- | Library/Formula/wsmancli.rb | 22 |
3 files changed, 101 insertions, 0 deletions
diff --git a/Library/Formula/openwsman.rb b/Library/Formula/openwsman.rb new file mode 100644 index 000000000..3f9e552ed --- /dev/null +++ b/Library/Formula/openwsman.rb @@ -0,0 +1,52 @@ +class Openwsman < Formula + homepage "http://openwsman.github.io" + url "https://github.com/Openwsman/openwsman/archive/v2.4.12.tar.gz" + sha1 "15fbe4454c3d48ab229036b09400afd5037f4ef2" + + depends_on "libxml2" + depends_on "sblim-sfcc" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + depends_on "openssl" + + def install + system "./autoconfiscate.sh" + system "./configure", "--disable-more-warnings", + "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + (testpath/"openwsman.conf").write <<-EOS.undent + [server] + # conf file based on https://raw.githubusercontent.com/Openwsman/openwsman/master/etc/openwsman.conf + + port = 5985 + + ipv4 = yes + ipv6 = yes + ssl_disabled_protocols = SSLv2 SSLv3 + + min_threads = 4 + max_threads = 0 + + basic_authenticator = libwsman_pam_auth.dylib + basic_authenticator_arg = openwsman + + + [cim] + default_cim_namespace = root/cimv2 + cim_client_frontend = XML + vendor_namespaces = OpenWBEM=http://schema.openwbem.org/wbem/wscim/1/cim-schema/2,Linux=http://sblim.sf.net/wbem/wscim/1/cim-schema/2,OMC=http://schema.omc-project.org/wbem/wscim/1/cim-schema/2,PG=http://schema.openpegasus.org/wbem/wscim/1/cim-schema/2,RCP=http://schema.suse.com/wbem/wscim/1/cim-schema/2,DCIM=http://schemas.dell.com/wbem/wscim/1/cim-schema/2,SPAR=http://schema.unisys.com/wbem/wscim/1/cim-schema/2,SVS=http://schemas.ts.fujitsu.com/wbem/wscim/1/cim-schema/2 + port = 5989 + ssl = yes + verify_cert = no + EOS + + # should be able to open and parse the a config file + system "#{sbin}/openwsmand", "--config-file=#{testpath}/openwsman.conf" + end +end diff --git a/Library/Formula/sblim-sfcc.rb b/Library/Formula/sblim-sfcc.rb new file mode 100644 index 000000000..115ec9671 --- /dev/null +++ b/Library/Formula/sblim-sfcc.rb @@ -0,0 +1,27 @@ +class SblimSfcc < Formula + homepage "https://sourceforge.net/projects/sblim/" + url "https://downloads.sourceforge.net/project/sblim/sblim-sfcc/sblim-sfcc-2.2.8.tar.bz2" + sha1 "794e9e15ed54f391f227427445789463560f0990" + depends_on :libtool + depends_on :autoconf + depends_on :automake + depends_on "openssl" + + def install + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "make", "install" + end + + # based on the test at #https://github.com/Homebrew/homebrew/blob/master/Library/Formula/tinyxml.rb + test do + (testpath/"test.cpp").write <<-EOS.undent + #include <cimc/cimc.h> + int main() + { + return 0; + } + EOS + system ENV.cxx, "test.cpp", "-lcimcClient", "-o", "test" + system "./test" + end +end diff --git a/Library/Formula/wsmancli.rb b/Library/Formula/wsmancli.rb new file mode 100644 index 000000000..9bcd8020d --- /dev/null +++ b/Library/Formula/wsmancli.rb @@ -0,0 +1,22 @@ +class Wsmancli < Formula + homepage "https://github.com/Openwsman/wsmancli" + url "https://github.com/Openwsman/wsmancli/archive/v2.3.1.tar.gz" + sha1 "a9b3dbe14d257687da4ace7c142e829c05c80994" + + depends_on "openwsman" + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + depends_on "openssl" + + def install + system "./bootstrap" + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/wsman", "-q" + end +end |
