[stunnel-users] [patch] Move shared library into app specific dir

Luis Rodrigo Gallardo Cruz rodrigo at nul-unu.com
Fri Sep 14 19:55:27 CEST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20070914/ecb9ccab/attachment.sig>


More information about the stunnel-users mailing list