-
Notifications
You must be signed in to change notification settings - Fork 4
/
openwsman.rb
55 lines (41 loc) · 1.77 KB
/
openwsman.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
class Openwsman < Formula
homepage 'http://openwsman.github.io'
url "https://github.com/Openwsman/openwsman/archive/v2.3.6.tar.gz"
sha1 'ed8cfc3c1705e8aecf4a64d2285e69bdfc0f11ff'
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
# 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.so
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 "openwsmand", "--config-file=openwsman.conf"
end
end