From owner-svn-ports-all@FreeBSD.ORG Sun May 3 07:30:19 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E29FEB7; Sun, 3 May 2015 07:30:19 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C9F01CFF; Sun, 3 May 2015 07:30:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t437UJKA002892; Sun, 3 May 2015 07:30:19 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t437UIAg002890; Sun, 3 May 2015 07:30:18 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201505030730.t437UIAg002890@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 3 May 2015 07:30:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385233 - in head/net-mgmt/wmi-client: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2015 07:30:19 -0000 Author: jbeich Date: Sun May 3 07:30:18 2015 New Revision: 385233 URL: https://svnweb.freebsd.org/changeset/ports/385233 Log: net-mgmt/wmi-client: fix installation when PYTHON=on /usr/bin/strip: '/usr/ports/net-mgmt/wmi-client/work/stage/bin/wmic': No such file PR: 198953 Submitted by: KIKUCHI Koichiro (maintainer) Modified: head/net-mgmt/wmi-client/Makefile (contents, props changed) head/net-mgmt/wmi-client/files/patch-GNUmakefile (contents, props changed) Modified: head/net-mgmt/wmi-client/Makefile ============================================================================== --- head/net-mgmt/wmi-client/Makefile Sun May 3 07:30:00 2015 (r385232) +++ head/net-mgmt/wmi-client/Makefile Sun May 3 07:30:18 2015 (r385233) @@ -20,7 +20,8 @@ USE_AUTOTOOLS= autoconf:env autoheader:e USES= iconv gmake tar:bzip2 MAKEFILE= GNUmakefile -MAKE_ARGS+= ZENHOME="${PREFIX}" +MAKE_ARGS+= ZENHOME="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + INSTALL_LIB="${INSTALL_LIB}" ALL_TARGET= build PROGS= bin/wmic bin/winexe @@ -35,12 +36,7 @@ PLIST_SUB+= PYTHON="" PLIST_SUB+= PYTHON="@comment " .endif -.if ${PORT_OPTIONS:MPYTHON} -post-install: -.for x in ${PROGS:S,^,${PREFIX}/,} ${PYTHONPREFIX_SITELIBDIR}/libasync_wmi_lib.so.0.0.2 - @${STRIP_CMD} ${STAGEDIR}${x} -.endfor -.else +.if !${PORT_OPTIONS:MPYTHON} do-install: .for x in ${PROGS} @${INSTALL_PROGRAM} ${WRKSRC}/Samba/source/${x} ${STAGEDIR}${PREFIX}/${x} Modified: head/net-mgmt/wmi-client/files/patch-GNUmakefile ============================================================================== --- head/net-mgmt/wmi-client/files/patch-GNUmakefile Sun May 3 07:30:00 2015 (r385232) +++ head/net-mgmt/wmi-client/files/patch-GNUmakefile Sun May 3 07:30:18 2015 (r385233) @@ -1,6 +1,6 @@ ---- GNUmakefile.orig 2011-12-23 22:58:36.000000000 +0900 -+++ GNUmakefile 2014-08-21 13:05:52.000000000 +0900 -@@ -36,7 +36,7 @@ +--- GNUmakefile.orig 2011-12-23 13:58:36 UTC ++++ 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) # @@ -9,7 +9,7 @@ #-------------------------------------------------------------------------# # A key deliverable of this build process is the libasync_wmi shared # -@@ -70,7 +70,7 @@ +@@ -70,7 +70,7 @@ PATHED_LIBASYNC_WMI_LIB := $(SAMBA_S #-------------------------------------------------------------------------# # Comment out the next line to disable google-breakpad dependency. ifneq ($(shell uname), Darwin) @@ -18,7 +18,7 @@ endif ifneq ($(USE_BREAKPAD),) -@@ -124,7 +124,7 @@ +@@ -124,7 +124,7 @@ ifneq ($(USE_BREAKPAD),) endif @touch $@ @@ -27,7 +27,7 @@ @echo @echo "Checking prequisites for installing WMI" $(call check,directory,$(ZENHOME),"ZENHOME") -@@ -157,12 +157,12 @@ +@@ -158,27 +158,27 @@ endif $(SAMBA_SRCDIR)/Makefile: $(SAMBA_SRCDIR)/autogen.sh cd $(SAMBA_SRCDIR) ;\ ./autogen.sh ;\ @@ -43,3 +43,21 @@ 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