107f9cd5d6
- override prefix and libdir during install - ndpi-fix-build.patch: don't install multiple copies of the library OBS-URL: https://build.opensuse.org/request/show/678536 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/ndpi?expand=0&rev=7
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
Index: nDPI-2.6/Makefile.am
|
|
===================================================================
|
|
--- nDPI-2.6.orig/Makefile.am
|
|
+++ nDPI-2.6/Makefile.am
|
|
@@ -1,7 +1,7 @@
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
SUBDIRS = src/lib example tests
|
|
|
|
-pkgconfigdir = $(prefix)/libdata/pkgconfig
|
|
+pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libndpi.pc
|
|
|
|
EXTRA_DIST = autogen.sh
|
|
Index: nDPI-2.6/src/lib/Makefile.in
|
|
===================================================================
|
|
--- nDPI-2.6.orig/src/lib/Makefile.in
|
|
+++ nDPI-2.6/src/lib/Makefile.in
|
|
@@ -61,7 +61,7 @@ distclean: clean
|
|
install: $(NDPI_LIBS)
|
|
mkdir -p $(DESTDIR)$(libdir)
|
|
cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
|
|
- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
|
- ln -Ffs $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
|
+ ln -Ffs $(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE)
|
|
+ ln -Ffs $(NDPI_LIB_SHARED) $(DESTDIR)$(libdir)/$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
|
mkdir -p $(DESTDIR)$(includedir)
|
|
cp ../include/*.h $(DESTDIR)$(includedir)
|