[patch] Move shared library into app specific dir

While upgrading the Debian package for stunnel, I noticed that it installs a shared library into /usr/lib/libstunnel.so This is recommended against by Debian policy, because misguided users might end up linking against it. The following (minor) patch moves the library into /usr/lib/stunnel/ which is a better location for it. ---------------------------------------------------------------------- Index: stunnel-4.20/src/Makefile.am =================================================================== --- stunnel-4.20.orig/src/Makefile.am 2007-07-24 20:36:58.000000000 -0500 +++ stunnel-4.20/src/Makefile.am 2007-07-24 20:39:04.000000000 -0500 @@ -17,7 +17,7 @@ # Unix shared library -lib_LTLIBRARIES = libstunnel.la +pkglib_LTLIBRARIES = libstunnel.la libstunnel_la_SOURCES = $(shared_sources) libstunnel_la_LDFLAGS = -avoid-version @@ -27,7 +27,7 @@ # Additional compiler flags -AM_CPPFLAGS = -DLIBDIR='"$(libdir)"' -DCONFDIR='"$(sysconfdir)/stunnel"' -DPIDFILE='"$(prefix)/var/run/stunnel/stunnel.pid"' +AM_CPPFLAGS = -DLIBDIR='"$(pkglibdir)"' -DCONFDIR='"$(sysconfdir)/stunnel"' -DPIDFILE='"$(prefix)/var/run/stunnel/stunnel.pid"' # Win32 executable ---------------------------------------------------------------------- -- Rodrigo Gallardo GPG-Fingerprint: 7C81 E60C 442E 8FBC D975 2F49 0199 8318 ADC9 BC28
participants (1)
-
Luis Rodrigo Gallardo Cruz