Module: check_mk
Branch: master
Commit: 985144463b790ec929be9b94b5f182e4f01073e7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=985144463b790e…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Feb 20 11:57:33 2017 +0100
refactored cmk-update-agent MEI cleanup code and Makefile
Change-Id: I0fa65a76cedf5ea2c870d41c257c584b329b3821
---
agents/windows/frozen_binaries/Makefile.include | 42 +++++++++++++++++++++++++
agents/windows/frozen_binaries/src/.gitignore | 4 +++
2 files changed, 46 insertions(+)
diff --git a/agents/windows/frozen_binaries/Makefile.include
b/agents/windows/frozen_binaries/Makefile.include
new file mode 100644
index 0000000..4a0f38e
--- /dev/null
+++ b/agents/windows/frozen_binaries/Makefile.include
@@ -0,0 +1,42 @@
+
+PYTHON_VERSION = 2.7.13
+
+clean:
+ [ -d build ] && rm -rf build || true
+
+src/virtual-wine:
+ cd src ; git clone
https://github.com/htgoebel/virtual-wine.git
+
+src/python-$(PYTHON_VERSION).msi:
+ cd src ; wget
https://www.python.org/ftp/python/$(PYTHON_VERSION)/python-$(PYTHON_VERSION…
+
+src/get-pip.py:
+ cd src ; wget
https://bootstrap.pypa.io/get-pip.py
+
+src/pyinstaller:
+ cd src ; git clone
git://github.com/pyinstaller/pyinstaller.git
+
+prepare-build-env: src/virtual-wine
+ mkdir build
+ cd build ; \
+ cp -pr ../src/virtual-wine . ; \
+ sed -i '/winecfg$$/d' ./virtual-wine/vwine-setup ; \
+ ./virtual-wine/vwine-setup venv_wine
+
+prepare-python: src/python-$(PYTHON_VERSION).msi src/get-pip.py src/pyinstaller
+ cd build ; \
+ . venv_wine/bin/activate ; \
+ wine msiexec /qn /i ../src/python-$(PYTHON_VERSION).msi ; \
+ cp ../src/get-pip.py venv_wine/drive_c/ ; \
+ cp -pr ../src/pyinstaller venv_wine/drive_c/pyinstaller ; \
+ wine c:\\Python27\\python c:\\get-pip.py ; \
+ cd venv_wine/drive_c/pyinstaller ; \
+ wine c:\\Python27\\python c:\\Python27\\Scripts\\pip.exe install . ; \
+ cd ../../.. ; \
+ wine c:\\Python27\\python c:\\Python27\\Scripts\\pip.exe install pypiwin32 ; \
+ wine c:\\Python27\\python c:\\Python27\\Scripts\\pip.exe install pyopenssl ; \
+ wine c:\\Python27\\python c:\\Python27\\Scripts\\pip.exe install requests ; \
+ wine c:\\Python27\\python c:\\Python27\\Scripts\\pip.exe install psutil
+
+setup:
+ sudo apt-get install scons upx-ucl wine
diff --git a/agents/windows/frozen_binaries/src/.gitignore
b/agents/windows/frozen_binaries/src/.gitignore
new file mode 100644
index 0000000..cfeb945
--- /dev/null
+++ b/agents/windows/frozen_binaries/src/.gitignore
@@ -0,0 +1,4 @@
+python-*.msi
+get-pip.py
+pyinstaller
+virtual-wine