pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
openwsman: add new package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <tk%giga.or.at@localhost>
Pushed By: wiz
Date: Thu Jul 15 11:58:44 2021 +0200
Changeset: b5b2d5e57fa48742097adf79ede6a79d2f8b0afc
Modified Files:
Makefile
Added Files:
openwsman/DESCR
openwsman/Makefile
openwsman/PLIST
openwsman/distinfo
openwsman/patches/patch-src_lib_u_uuid.c
sblim-sfcc/DESCR
sblim-sfcc/Makefile
sblim-sfcc/PLIST
sblim-sfcc/buildlink3.mk
sblim-sfcc/distinfo
sblim-sfcc/patches/patch-backend_cimxml_indicationlistener.c
Log Message:
openwsman: add new package
Packages fine, runtime untested.
Also add its dependency sblim-sfcc.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b5b2d5e57fa48742097adf79ede6a79d2f8b0afc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 4 +-
openwsman/DESCR | 1 +
openwsman/Makefile | 49 +++++++++++
openwsman/PLIST | 99 ++++++++++++++++++++++
openwsman/distinfo | 7 ++
openwsman/patches/patch-src_lib_u_uuid.c | 24 ++++++
sblim-sfcc/DESCR | 8 ++
sblim-sfcc/Makefile | 25 ++++++
sblim-sfcc/PLIST | 42 +++++++++
sblim-sfcc/buildlink3.mk | 14 +++
sblim-sfcc/distinfo | 7 ++
.../patch-backend_cimxml_indicationlistener.c | 15 ++++
12 files changed, 294 insertions(+), 1 deletion(-)
diffs:
diff --git a/Makefile b/Makefile
index 5717a74dce..50adaa1c3f 100644
--- a/Makefile
+++ b/Makefile
@@ -2673,6 +2673,7 @@ SUBDIR+= openvas-manager
SUBDIR+= openvas-scanner
SUBDIR+= openvdb
SUBDIR+= openvrml
+SUBDIR+= openwsman
SUBDIR+= openxcom
SUBDIR+= openzwave
SUBDIR+= opera60-bin
@@ -3999,7 +4000,6 @@ SUBDIR+= py-mcint
SUBDIR+= py-mcomix3-git
SUBDIR+= py-mcview
SUBDIR+= py-mdanalysis
-SUBDIR+= py-modbus
SUBDIR+= py-mdp
SUBDIR+= py-mdptoolbox
SUBDIR+= py-mdtraj
@@ -4026,6 +4026,7 @@ SUBDIR+= py-mmLib
SUBDIR+= py-mne
SUBDIR+= py-mochi
SUBDIR+= py-modargs
+SUBDIR+= py-modbus
SUBDIR+= py-model-builder
SUBDIR+= py-modello
SUBDIR+= py-modelparameters
@@ -5064,6 +5065,7 @@ SUBDIR+= sara
SUBDIR+= sarf
SUBDIR+= sbc
SUBDIR+= sbcl-git
+SUBDIR+= sblim-sfcc
SUBDIR+= scalapack
SUBDIR+= scantailor
SUBDIR+= scare
diff --git a/openwsman/DESCR b/openwsman/DESCR
new file mode 100644
index 0000000000..25c765b9c1
--- /dev/null
+++ b/openwsman/DESCR
@@ -0,0 +1 @@
+openwsman is a WS-Management Server.
diff --git a/openwsman/Makefile b/openwsman/Makefile
new file mode 100644
index 0000000000..4eacd402c6
--- /dev/null
+++ b/openwsman/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD$
+
+DISTNAME= openwsman-2.6.11
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Openwsman/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Openwsman/openwsman/
+COMMENT= WS-Management for all
+LICENSE= modified-bsd
+
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DBUILD_PYTHON3:BOOL=ON
+CMAKE_ARGS+= -DBUILD_PYTHON:BOOL=OFF
+CMAKE_ARGS+= -DLIB:PATH=lib
+
+PKGCONFIG_OVERRIDE+= openwsman++.pc.in
+PKGCONFIG_OVERRIDE+= openwsman-server.pc.in
+PKGCONFIG_OVERRIDE+= openwsman.pc.in
+
+REPLACE_RUBY+= examples/winrs.rb
+
+INSTALLATION_DIRS+= share/examples/openwsman/pam.d
+
+EGDIR= share/examples/openwsman
+OWN_DIRS+= ${PKG_SYSCONFDIR}/openwsman
+CONF_FILES+= ${PREFIX}/${EGDIR}/openwsman.conf ${PKG_SYSCONFDIR}/openwsman/openwsman.conf
+CONF_FILES+= ${PREFIX}/${EGDIR}/openwsman_client.conf ${PKG_SYSCONFDIR}/openwsman/openwsman_client.conf
+CONF_FILES+= ${PREFIX}/${EGDIR}/owsmangencert.sh ${PKG_SYSCONFDIR}/openwsman/owsmangencert.sh
+CONF_FILES+= ${PREFIX}/${EGDIR}/ssleay.cnf ${PKG_SYSCONFDIR}/openwsman/ssleay.cnf
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/etc/openwsman && \
+ ${MV} openwsman.conf openwsman_client.conf owsmangencert.sh ssleay.cnf \
+ ${DESTDIR}${PREFIX}/share/examples/openwsman
+ ${MV} ${DESTDIR}${PREFIX}/etc/pam.d/openwsman/ \
+ ${DESTDIR}${PREFIX}/share/examples/openwsman/pam.d
+
+.include "../../wip/sblim-sfcc/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../lang/ruby/buildlink3.mk"
+.include "../../lang/ruby/replace.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/openwsman/PLIST b/openwsman/PLIST
new file mode 100644
index 0000000000..9146af63e6
--- /dev/null
+++ b/openwsman/PLIST
@@ -0,0 +1,99 @@
+@comment $NetBSD$
+bin/winrs
+include/openwsman/cim/cim-interface.h
+include/openwsman/cpp/Exception.h
+include/openwsman/cpp/OpenWsmanClient.h
+include/openwsman/cpp/WsmanClient.h
+include/openwsman/cpp/WsmanEPR.h
+include/openwsman/cpp/WsmanFilter.h
+include/openwsman/cpp/WsmanOptions.h
+include/openwsman/u/base64.h
+include/openwsman/u/buf.h
+include/openwsman/u/carpal.h
+include/openwsman/u/debug.h
+include/openwsman/u/debug_internal.h
+include/openwsman/u/gettimeofday.h
+include/openwsman/u/hash.h
+include/openwsman/u/iniparser.h
+include/openwsman/u/libu.h
+include/openwsman/u/list.h
+include/openwsman/u/lock.h
+include/openwsman/u/log.h
+include/openwsman/u/logprv.h
+include/openwsman/u/md5.h
+include/openwsman/u/memory.h
+include/openwsman/u/misc.h
+include/openwsman/u/os.h
+include/openwsman/u/pthreadx.h
+include/openwsman/u/strings.h
+include/openwsman/u/syslog.h
+include/openwsman/u/uerr.h
+include/openwsman/u/uoption.h
+include/openwsman/u/uri.h
+include/openwsman/u/uuid.h
+include/openwsman/wsman-api.h
+include/openwsman/wsman-cimindication-processor.h
+include/openwsman/wsman-client-api.h
+include/openwsman/wsman-client-transport.h
+include/openwsman/wsman-client.h
+include/openwsman/wsman-debug.h
+include/openwsman/wsman-declarations.h
+include/openwsman/wsman-epr.h
+include/openwsman/wsman-event-pool.h
+include/openwsman/wsman-faults.h
+include/openwsman/wsman-filter.h
+include/openwsman/wsman-key-value.h
+include/openwsman/wsman-names.h
+include/openwsman/wsman-server-api.h
+include/openwsman/wsman-soap-envelope.h
+include/openwsman/wsman-soap-message.h
+include/openwsman/wsman-soap.h
+include/openwsman/wsman-subscription-repository.h
+include/openwsman/wsman-types.h
+include/openwsman/wsman-xml-api.h
+include/openwsman/wsman-xml-binding.h
+include/openwsman/wsman-xml-serialize.h
+include/openwsman/wsman-xml-serializer.h
+include/openwsman/wsman-xml.h
+lib/libwsman.so
+lib/libwsman.so.1
+lib/libwsman.so.1.0.0
+lib/libwsman_client.so
+lib/libwsman_client.so.4
+lib/libwsman_client.so.4.0.0
+lib/libwsman_clientpp.so
+lib/libwsman_clientpp.so.1
+lib/libwsman_clientpp.so.1.0.0
+lib/libwsman_curl_client_transport.so
+lib/libwsman_curl_client_transport.so.1
+lib/libwsman_curl_client_transport.so.1.0.0
+lib/libwsman_server.so
+lib/libwsman_server.so.1
+lib/libwsman_server.so.1.0.0
+lib/openwsman/authenticators/libwsman_file_auth.so
+lib/openwsman/authenticators/libwsman_file_auth.so.1
+lib/openwsman/authenticators/libwsman_file_auth.so.1.0.0
+lib/openwsman/authenticators/libwsman_pam_auth.so
+lib/openwsman/authenticators/libwsman_pam_auth.so.1
+lib/openwsman/authenticators/libwsman_pam_auth.so.1.0.0
+lib/openwsman/plugins/libredirect.so
+lib/openwsman/plugins/libredirect.so.1
+lib/openwsman/plugins/libredirect.so.1.0.0
+lib/openwsman/plugins/libwsman_cim_plugin.so
+lib/openwsman/plugins/libwsman_cim_plugin.so.1
+lib/openwsman/plugins/libwsman_cim_plugin.so.1.0.0
+lib/openwsman/plugins/libwsman_identify_plugin.so
+lib/openwsman/plugins/libwsman_identify_plugin.so.1
+lib/openwsman/plugins/libwsman_identify_plugin.so.1.0.0
+lib/openwsman/plugins/libwsman_test.so
+lib/openwsman/plugins/libwsman_test.so.1
+lib/openwsman/plugins/libwsman_test.so.1.0.0
+lib/pkgconfig/openwsman++.pc
+lib/pkgconfig/openwsman-server.pc
+lib/pkgconfig/openwsman.pc
+sbin/openwsmand
+share/examples/openwsman/openwsman.conf
+share/examples/openwsman/openwsman_client.conf
+share/examples/openwsman/owsmangencert.sh
+share/examples/openwsman/pam.d/openwsman
+share/examples/openwsman/ssleay.cnf
diff --git a/openwsman/distinfo b/openwsman/distinfo
new file mode 100644
index 0000000000..cfe226cad8
--- /dev/null
+++ b/openwsman/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (openwsman-2.6.11.tar.gz) = a0084a5787fce4cbefa3f46fba04190f6907bae0
+RMD160 (openwsman-2.6.11.tar.gz) = 771f1a0aa2b6205e9b7ac17582ae87b69571b816
+SHA512 (openwsman-2.6.11.tar.gz) = aa718d1aa2649b401816fbfa59e2950c226af6f6b507cd3659f4505f5bed4309db7b9eb903320f83a5c6d9d251bffd5df08910bc908bb2d381f68682a81107ca
+Size (openwsman-2.6.11.tar.gz) = 512114 bytes
+SHA1 (patch-src_lib_u_uuid.c) = b174cf1ec812c5792e606247d45b02bb3c3facbc
diff --git a/openwsman/patches/patch-src_lib_u_uuid.c b/openwsman/patches/patch-src_lib_u_uuid.c
new file mode 100644
index 0000000000..2b1ee38079
--- /dev/null
+++ b/openwsman/patches/patch-src_lib_u_uuid.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Handle NetBSD like FreeBSD.
+
+--- src/lib/u/uuid.c.orig 2019-09-17 09:38:38.000000000 +0000
++++ src/lib/u/uuid.c
+@@ -141,7 +141,7 @@ generate_uuid(char *buf, int size, int b
+ #include <sys/param.h>
+ #include <netinet/in.h>
+
+-#if defined(__APPLE__) || defined(__FreeBSD__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <net/bpf.h>
+ #include <net/if_dl.h>
+ #include <net/if_types.h>
+@@ -337,7 +337,7 @@ generate_uuid ( char* buf,
+ clock_sequence++;
+
+ // get mac address
+-#if defined(__APPLE__) || defined(__FreeBSD__)
++#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+ if ( mac_address( mac, 6 ) == 0 )
+ #else
+ if (mac_addr_sys(mac) == 0 )
diff --git a/sblim-sfcc/DESCR b/sblim-sfcc/DESCR
new file mode 100644
index 0000000000..ea513e030c
--- /dev/null
+++ b/sblim-sfcc/DESCR
@@ -0,0 +1,8 @@
+The small footprint CIM client library is a C API allowing client
+applications to interface with CIM implementations (e.g., CIM
+servers). Due to its small memory and disk footprint it is well-suited
+for embedded environments.
+
+SFCC provides a generic layer to load the underlying libraries to
+communicate to the CIM server via 2 methods: http interface and
+local connect interface.
diff --git a/sblim-sfcc/Makefile b/sblim-sfcc/Makefile
new file mode 100644
index 0000000000..e44849bf8a
--- /dev/null
+++ b/sblim-sfcc/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= sblim-sfcc-2.2.8
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sblim/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://sourceforge.net/projects/sblim/
+COMMENT= Small Footprint CIM Client Library
+#LICENSE= # TODO: (see mk/license.mk)
+
+USE_LANGUAGES+= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= autoreconf autoconf automake
+GNU_CONFIGURE= yes
+
+BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+
+pre-configure:
+ cd ${WRKSRC} && autoreconf -fiv
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sblim-sfcc/PLIST b/sblim-sfcc/PLIST
new file mode 100644
index 0000000000..caafbebd85
--- /dev/null
+++ b/sblim-sfcc/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD$
+include/CimClientLib/cmci.h
+include/CimClientLib/cmcidt.h
+include/CimClientLib/cmcift.h
+include/CimClientLib/cmcimacs.h
+include/CimClientLib/native.h
+include/cimc/cimc.h
+include/cimc/cimcdt.h
+include/cimc/cimcft.h
+lib/libcimcClientXML.la
+lib/libcimcclient.la
+lib/libcmpisfcc.la
+man/man3/CMCIClient.3
+man/man3/CMCIClientFT.associatorNames.3
+man/man3/CMCIClientFT.associators.3
+man/man3/CMCIClientFT.createInstance.3
+man/man3/CMCIClientFT.deleteInstance.3
+man/man3/CMCIClientFT.enumClassNames.3
+man/man3/CMCIClientFT.enumClasses.3
+man/man3/CMCIClientFT.enumInstanceNames.3
+man/man3/CMCIClientFT.enumInstances.3
+man/man3/CMCIClientFT.execQuery.3
+man/man3/CMCIClientFT.getClass.3
+man/man3/CMCIClientFT.getInstance.3
+man/man3/CMCIClientFT.getProperty.3
+man/man3/CMCIClientFT.invokeMethod.3
+man/man3/CMCIClientFT.referenceNames.3
+man/man3/CMCIClientFT.references.3
+man/man3/CMCIClientFT.setInstance.3
+man/man3/CMCIClientFT.setProperty.3
+man/man3/CMPIArgs.3
+man/man3/CMPIDateTime.3
+man/man3/CMPIEnumeration.3
+man/man3/CMPIInstance.3
+man/man3/CMPIObjectPath.3
+man/man3/CMPIStatus.3
+man/man3/CMPIString.3
+man/man3/CMPIValue.3
+man/man3/cmciConnect.3
+share/doc/sfcc-${PKGVERSION}/AUTHORS
+share/doc/sfcc-${PKGVERSION}/COPYING
+share/doc/sfcc-${PKGVERSION}/README
diff --git a/sblim-sfcc/buildlink3.mk b/sblim-sfcc/buildlink3.mk
new file mode 100644
index 0000000000..2d6ce9250e
--- /dev/null
+++ b/sblim-sfcc/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= sblim-sfcc
+
+.if !defined(SBLIM_SFCC_BUILDLINK3_MK)
+SBLIM_SFCC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.sblim-sfcc+= sblim-sfcc>=2.2.8
+BUILDLINK_PKGSRCDIR.sblim-sfcc?= ../../wip/sblim-sfcc
+
+#.include "../../www/curl/buildlink3.mk"
+.endif # SBLIM_SFCC_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -sblim-sfcc
diff --git a/sblim-sfcc/distinfo b/sblim-sfcc/distinfo
new file mode 100644
index 0000000000..2146d5344e
--- /dev/null
+++ b/sblim-sfcc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (sblim-sfcc-2.2.8.tar.bz2) = 794e9e15ed54f391f227427445789463560f0990
+RMD160 (sblim-sfcc-2.2.8.tar.bz2) = 77c0fb44f2a453fb6867d2094b8c075be57dc8bb
+SHA512 (sblim-sfcc-2.2.8.tar.bz2) = b5eb7712aed1e40f19993ba5f5ee2f1f48c01246d28e9f4d89cee53000801ce4fe7c862a82163a55774c71094223b32bf8981a883ad04e820f9c749e746f52fa
+Size (sblim-sfcc-2.2.8.tar.bz2) = 376918 bytes
+SHA1 (patch-backend_cimxml_indicationlistener.c) = ac747b69733ae48662d445fdc884f06ae9c93c12
diff --git a/sblim-sfcc/patches/patch-backend_cimxml_indicationlistener.c b/sblim-sfcc/patches/patch-backend_cimxml_indicationlistener.c
new file mode 100644
index 0000000000..d2c224e5ba
--- /dev/null
+++ b/sblim-sfcc/patches/patch-backend_cimxml_indicationlistener.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Avoid using undefined macro.
+
+--- backend/cimxml/indicationlistener.c.orig 2014-11-26 16:26:46.000000000 +0000
++++ backend/cimxml/indicationlistener.c
+@@ -455,7 +455,7 @@ static void* establish_listener(int sslM
+ else if(dataRead == 0) {
+ /* timed out, trying again */
+ } else {
+- if ((connFd = accept(listenFd, (__SOCKADDR_ARG) & sin, &sz))<0) {
++ if ((connFd = accept(listenFd, (struct sockaddr *) &sin, &sz))<0) {
+ fprintf(stderr, "Error during accept(), return value was: %d\n", connFd);
+ exit(0);
+ }
Home |
Main Index |
Thread Index |
Old Index