File fix-cmci-include-path-makefile_in.patch of Package sblim-cmpi-pec
diff -wruN -x '*~' ../orig-sblim-cmpi-pec-1.0.1/client/Makefile.in ./client/Makefile.in
--- ../orig-sblim-cmpi-pec-1.0.1/client/Makefile.in 2010-01-08 01:31:40.000000000 +0100
+++ ./client/Makefile.in 2010-09-17 21:57:01.000000000 +0200
@@ -59,8 +59,8 @@
PROGRAMS = $(bin_PROGRAMS)
am_pecconfigure_OBJECTS = pecconfigure-pecconfigure.$(OBJEXT)
pecconfigure_OBJECTS = $(am_pecconfigure_OBJECTS)
-pecconfigure_DEPENDENCIES = /usr/local/lib/libcmpisfcc.a \
- /usr/local/lib/libcimcclient.a \
+pecconfigure_DEPENDENCIES = /usr/${LIB}/libcmpisfcc.so \
+ /usr/${LIB}/libcimcclient.so \
libpec_configurationmanagement.la
pecconfigure_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(pecconfigure_CFLAGS) \
@@ -68,16 +68,16 @@
am_peciterativetest_OBJECTS = \
peciterativetest-peciterativetest.$(OBJEXT)
peciterativetest_OBJECTS = $(am_peciterativetest_OBJECTS)
-peciterativetest_DEPENDENCIES = /usr/local/lib/libcmpisfcc.a \
- /usr/local/lib/libcimcclient.a \
+peciterativetest_DEPENDENCIES = /usr/${LIB}/libcmpisfcc.so \
+ /usr/${LIB}/libcimcclient.so \
libpec_configurationmanagement.la
peciterativetest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(peciterativetest_CFLAGS) \
$(CFLAGS) $(peciterativetest_LDFLAGS) $(LDFLAGS) -o $@
am_pectest_OBJECTS = pectest-pectest.$(OBJEXT)
pectest_OBJECTS = $(am_pectest_OBJECTS)
-pectest_DEPENDENCIES = /usr/local/lib/libcmpisfcc.a \
- /usr/local/lib/libcimcclient.a \
+pectest_DEPENDENCIES = /usr/${LIB}/libcmpisfcc.so \
+ /usr/${LIB}/libcimcclient.so \
libpec_configurationmanagement.la
pectest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CCLD) $(pectest_CFLAGS) $(CFLAGS) \
@@ -214,17 +214,17 @@
EXTRA_DIST = pec.conf pec_plugin.conf peclogiterativetest.sh \
pecloader.pl
pectest_SOURCES = pectest.c
-pectest_LDADD = /usr/local/lib/libcmpisfcc.a /usr/local/lib/libcimcclient.a libpec_configurationmanagement.la
+pectest_LDADD = /usr/${LIB}/libcmpisfcc.so /usr/${LIB}/libcimcclient.so libpec_configurationmanagement.la
pectest_LDFLAGS = -ldl
-pectest_CFLAGS = -I/usr/local/include/CimClientLib
+pectest_CFLAGS = -I/usr/include/CimClientLib
peciterativetest_SOURCES = peciterativetest.c
-peciterativetest_LDADD = /usr/local/lib/libcmpisfcc.a /usr/local/lib/libcimcclient.a libpec_configurationmanagement.la
+peciterativetest_LDADD = /usr/${LIB}/libcmpisfcc.so /usr/${LIB}/libcimcclient.so libpec_configurationmanagement.la
peciterativetest_LDFLAGS = -ldl
-peciterativetest_CFLAGS = -I/usr/local/include/CimClientLib
+peciterativetest_CFLAGS = -I/usr/include/CimClientLib
pecconfigure_SOURCES = pecconfigure.c
-pecconfigure_LDADD = /usr/local/lib/libcmpisfcc.a /usr/local/lib/libcimcclient.a libpec_configurationmanagement.la
+pecconfigure_LDADD = /usr/${LIB}/libcmpisfcc.so /usr/${LIB}/libcimcclient.so libpec_configurationmanagement.la
pecconfigure_LDFLAGS = -ldl
-pecconfigure_CFLAGS = -I/usr/local/include/CimClientLib
+pecconfigure_CFLAGS = -I/usr/include/CimClientLib
noinst_LTLIBRARIES = libpec_configurationmanagement.la
libpec_configurationmanagement_la_SOURCES = libpec_configurationmanagement.c libpec_configurationmanagement.h
libpec_configurationmanagement_la_CFLAGS = -D'INSTDIR="$(prefix)"'
@@ -577,8 +577,8 @@
install:
- mkdir -p ${prefix}/etc
- cp pec.conf ${prefix}/etc
+ mkdir -p $(DESTDIR)/etc
+ cp pec.conf $(DESTDIR)/etc
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff -wruN -x '*~' ../orig-sblim-cmpi-pec-1.0.1/provider/Makefile.in ./provider/Makefile.in
--- ../orig-sblim-cmpi-pec-1.0.1/provider/Makefile.in 2010-01-08 01:31:40.000000000 +0100
+++ ./provider/Makefile.in 2010-09-17 21:42:23.000000000 +0200
@@ -199,10 +199,10 @@
lib_LTLIBRARIES = libpec_plugin_indication.la
libpec_plugin_indication_la_SOURCES = pec_plugin_indication.c pec_plugin_indication.h
libpec_plugin_indication_la_LIBADD = libpec_plugins.la
-libpec_plugin_indication_la_CFLAGS = -D'DATADIR="$(datadir)"' -I/usr/local/include/cmpi
+libpec_plugin_indication_la_CFLAGS = -D'DATADIR="$(datadir)"' -I/usr/include/cmpi
noinst_LTLIBRARIES = libpec_plugins.la
libpec_plugins_la_SOURCES = pec_plugins.c pec_plugins.h
-libpec_plugins_la_CFLAGS = -I/usr/local/include/cmpi $(am__append_1)
+libpec_plugins_la_CFLAGS = -I/usr/include/cmpi $(am__append_1)
all: all-am
.SUFFIXES:
@@ -507,8 +507,8 @@
install:
- mkdir -p ${prefix}/lib/cmpi
- cp .libs/libpec_plugin_indication.so ${prefix}/lib/cmpi
+ mkdir -p $(DESTDIR)${prefix}/${LIB}/cmpi
+ cp .libs/libpec_plugin_indication.so $(DESTDIR)${prefix}/${LIB}/cmpi
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: