aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wmi-client/gnumakefile.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-01-23 10:02:43 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-01-23 10:30:00 +0000
commitcbbbaf9ebace0d597f0a0e210344a2a5cabb7417 (patch)
tree967156aabdd72939c094b13922ef40fb9b4d0203 /testing/wmi-client/gnumakefile.patch
parent9ce2e6769410a7e04c13f2a5145f2e343ce3085e (diff)
downloadaports-cbbbaf9ebace0d597f0a0e210344a2a5cabb7417.tar.bz2
aports-cbbbaf9ebace0d597f0a0e210344a2a5cabb7417.tar.xz
testing/wmi-client: new aport
Diffstat (limited to 'testing/wmi-client/gnumakefile.patch')
-rw-r--r--testing/wmi-client/gnumakefile.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/testing/wmi-client/gnumakefile.patch b/testing/wmi-client/gnumakefile.patch
new file mode 100644
index 0000000000..bd1c9c1658
--- /dev/null
+++ b/testing/wmi-client/gnumakefile.patch
@@ -0,0 +1,63 @@
+--- a/GNUmakefile.orig 2011-12-23 13:58:36 UTC
++++ b/GNUmakefile
+@@ -36,7 +36,7 @@ endif
+ # Install dir for libasync_wmi_lib.so.* and pysamba wrapper code.
+ # e.g., Samba/source/bin/shared/libasync_wmi_lib.so.0.0.1 --> $(PY_LIBDIR)
+ #
+-PY_LIBDIR = $(ZENHOME)/lib/python
++PY_LIBDIR? = $(ZENHOME)/lib/python
+
+ #-------------------------------------------------------------------------#
+ # A key deliverable of this build process is the libasync_wmi shared #
+@@ -70,7 +70,7 @@ PATHED_LIBASYNC_WMI_LIB := $(SAMBA_S
+ #-------------------------------------------------------------------------#
+ # Comment out the next line to disable google-breakpad dependency.
+ ifneq ($(shell uname), Darwin)
+-USE_BREAKPAD = 1
++#USE_BREAKPAD = 1
+ endif
+
+ ifneq ($(USE_BREAKPAD),)
+@@ -124,7 +124,7 @@ ifneq ($(USE_BREAKPAD),)
+ endif
+ @touch $@
+
+-install-prereqs:
++install-prereqs: $(DESTDIR)$(PY_LIBDIR)
+ @echo
+ @echo "Checking prequisites for installing WMI"
+ $(call check,directory,$(ZENHOME),"ZENHOME")
+@@ -158,27 +158,27 @@ endif
+ $(SAMBA_SRCDIR)/Makefile: $(SAMBA_SRCDIR)/autogen.sh
+ cd $(SAMBA_SRCDIR) ;\
+ ./autogen.sh ;\
+- CPPFLAGS="$(WMI_CPPFLAGS)" ./configure --without-readline --enable-debug
++ CPPFLAGS="$(WMI_CPPFLAGS)" SMB_GNUTLS=NO ./configure --prefix=$(PREFIX) --without-readline
+
+ ifeq ($(USE_BREAKPAD),)
+-pywmi-build: build-prereqs $(LIBRPC_CONFIG_MK) $(SAMBA_SRCDIR)/Makefile
++pywmi-build: $(LIBRPC_CONFIG_MK) $(SAMBA_SRCDIR)/Makefile
+ else
+-pywmi-build: build-prereqs $(LIBRPC_CONFIG_MK) $(SAMBA_SRCDIR)/Makefile $(breakpad_LIB_SYMLINK)
++pywmi-build: $(LIBRPC_CONFIG_MK) $(SAMBA_SRCDIR)/Makefile $(breakpad_LIB_SYMLINK)
+ endif
+ cd $(SAMBA_SRCDIR);\
+ $(MAKE) $(WMI_BUILD_TARGETS) ;\
+ touch $@
+
+ pywmi-installed: install-prereqs $(DESTDIR)$(PY_LIBDIR) $(DESTDIR)$(ZENOSS_BINDIR) $(SAMBA_SRCDIR)/bin/wmic $(SAMBA_SRCDIR)/bin/winexe $(PATHED_LIBASYNC_WMI_LIB)
+- cp $(SAMBA_SRCDIR)/bin/wmic $(DESTDIR)$(ZENOSS_BINDIR)
+- cp $(SAMBA_SRCDIR)/bin/winexe $(DESTDIR)$(ZENOSS_BINDIR)
++ $(INSTALL_PROGRAM) $(SAMBA_SRCDIR)/bin/wmic $(DESTDIR)$(ZENOSS_BINDIR)
++ $(INSTALL_PROGRAM) $(SAMBA_SRCDIR)/bin/winexe $(DESTDIR)$(ZENOSS_BINDIR)
+ ifeq ($(shell uname), Darwin)
+ -(cd $(DESTDIR)$(PY_LIBDIR) && rm -f $(LIBASYNC_WMI_LIB_BASENAME)*)
+ cp $(PATHED_LIBASYNC_WMI_LIB) $(DESTDIR)$(PY_LIBDIR)/$(LIBASYNC_WMI_LIB_BASENAME).$(LIBASYNC_WMI_LIB_VERSION_nnn).dylib
+ (cd $(DESTDIR)$(PY_LIBDIR) && ln -sf $(LIBASYNC_WMI_LIB_BASENAME).$(LIBASYNC_WMI_LIB_VERSION_nnn).dylib $(LIBASYNC_WMI_LIB_BASENAME).dylib)
+ else
+ -(cd $(DESTDIR)$(PY_LIBDIR) && rm -f $(LIBASYNC_WMI_LIB_BASENAME)*)
+- cp $(PATHED_LIBASYNC_WMI_LIB) $(DESTDIR)$(PY_LIBDIR)
++ $(INSTALL_LIB) $(PATHED_LIBASYNC_WMI_LIB) $(DESTDIR)$(PY_LIBDIR)
+ (cd $(DESTDIR)$(PY_LIBDIR) && ln -sf $(LIBASYNC_WMI_LIB) $(LIBASYNC_WMI_LIB_SO_N))
+ endif
+ rm -rf $(DESTDIR)$(PY_LIBDIR)/pysamba