3 MSITOOLS_DIR
:= msitools-
$(MSITOOLS_VERS
)
6 LCAB_DIR
:= lcab-
$(LCAB_VERSION
)
8 MSITOOLS_BUILD
:= $(BUILD_HELPER_DIR
)/$(MSITOOLS_DIR
)-build
9 MSITOOLS_INSTALL
:= $(BUILD_HELPER_DIR
)/$(MSITOOLS_DIR
)-install
10 MSITOOLS_PATCHING
:= $(BUILD_HELPER_DIR
)/$(MSITOOLS_DIR
)-patching
13 # Problem here is: msitools is not compilable on older distros
14 # like Debian 5 or RedHat 5.X. So here we rather ignore
15 # compile problems and msi{build,info} will be missing. Check_MK
16 # then knows this and the agent bakery cannot create MSI
17 # packages. People need to upgrade to a more modern platform
20 $(MSITOOLS
): $(MSITOOLS_BUILD
)
22 $(MSITOOLS
)-install: $(MSITOOLS_INSTALL
)
24 $(MSITOOLS_BUILD
): $(MSITOOLS_PATCHING
) $(BUILD_HELPER_DIR
)/$(LCAB_DIR
)-unpack
25 # Do not try to compile on lenny. Compiler is too old
26 if
[ "$$($(GCC_SYSTEM) --version | $(SED) -n '1s/.* //p' )" != 4.3.2 ] && cd
$(MSITOOLS_DIR
) && .
/configure
--prefix=$(OMD_ROOT
) ; then \
31 cd
$(LCAB_DIR
) && .
/configure
&& $(MAKE
)
34 $(MSITOOLS_INSTALL
): $(MSITOOLS_BUILD
)
36 if
[ -f
$(MSITOOLS_DIR
)/.libs
/msiinfo
] ; then \
37 install -m
755 $(MSITOOLS_DIR
)/.libs
/msiinfo
$(DESTDIR
)$(OMD_ROOT
)/bin
; \
38 install -m
755 $(MSITOOLS_DIR
)/.libs
/msibuild
$(DESTDIR
)$(OMD_ROOT
)/bin
; \
39 install -m
755 $(LCAB_DIR
)/lcab
$(DESTDIR
)$(OMD_ROOT
)/bin
; \
40 install -m
755 $(MSITOOLS_DIR
)/libmsi
/.libs
/libmsi.so
* $(DESTDIR
)$(OMD_ROOT
)/lib
; \
41 $(MKDIR
) $(DESTDIR
)$(OMD_ROOT
)/share
/check_mk
/agents
/windows
; \
42 install -m
644 $(PACKAGE_DIR
)/$(MSITOOLS
)/*.msi
$(DESTDIR
)$(OMD_ROOT
)/share
/check_mk
/agents
/windows
; \
49 $(RM
) -r
$(MSITOOLS_DIR
) $(LCAB_DIR
) $(BUILD_HELPER_DIR
)/$(MSITOOLS
)* $(BUILD_HELPER_DIR
)/$(LCAB_DIR
)*