From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1674 invoked by alias); 11 Aug 2009 17:35:00 -0000 Received: (qmail 1667 invoked by alias); 11 Aug 2009 17:35:00 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_92,SPF_HELO_PASS X-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_92,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: fence: master - fence: make libfenced shared To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: fence.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 30984aa352cc3990bdfbad25624216669062953a X-Git-Newrev: 1ac8b5822325a381cb5bb88fd841cf5e4c6174db From: "Fabio M. Di Nitto" Message-Id: <20090811173437.262DB1201D6@lists.fedorahosted.org> Date: Tue, 11 Aug 2009 17:35:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00181.txt.bz2 Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=1ac8b5822325a381cb5bb88fd841cf5e4c6174db Commit: 1ac8b5822325a381cb5bb88fd841cf5e4c6174db Parent: 30984aa352cc3990bdfbad25624216669062953a Author: Fabio M. Di Nitto AuthorDate: Tue Aug 11 16:46:38 2009 +0200 Committer: Fabio M. Di Nitto CommitterDate: Tue Aug 11 19:34:17 2009 +0200 fence: make libfenced shared libfenced is a private library. make it shared to simplify other tasks. DO NOT USE IT or horses will die. Signed-off-by: Fabio M. Di Nitto --- fence/libfenced/Makefile.am | 12 ++++-------- fence/libfenced/libfenced.h | 13 +++++++++++++ fence/libfenced/libfenced.pc.in | 2 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/fence/libfenced/Makefile.am b/fence/libfenced/Makefile.am index 615d152..3ebdef8 100644 --- a/fence/libfenced/Makefile.am +++ b/fence/libfenced/Makefile.am @@ -1,21 +1,17 @@ MAINTAINERCLEANFILES = Makefile.in +libversion = 3:0:0 + include_HEADERS = libfenced.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libfenced.pc -noinst_LTLIBRARIES = libfenced.la +lib_LTLIBRARIES = libfenced.la libfenced_la_SOURCES = main.c libfenced_la_CPPFLAGS = -I$(top_srcdir)/fence/fenced -install-exec-local: - $(INSTALL) -d $(DESTDIR)/$(libdir) - $(INSTALL) -m 644 $(builddir)/.libs/libfenced.a $(DESTDIR)/$(libdir)/ - -uninstall-local: - cd $(DESTDIR)/$(libdir) && \ - rm -f libfenced.a +libfenced_la_LDFLAGS = -version-info $(libversion) diff --git a/fence/libfenced/libfenced.h b/fence/libfenced/libfenced.h index b869136..8ddda65 100644 --- a/fence/libfenced/libfenced.h +++ b/fence/libfenced/libfenced.h @@ -1,3 +1,16 @@ +/* + * libfenced is a private library. + * + * If you think this library is installed on your cluster, you are wrong. + * You have never seen it, it doesn't exist, you'll never talk about it + * or ponder to use it. + * + * "You've got a nice noun there. + * It'd be a shame if anything were to ... happen to it." + * + * The Godfather (aka fabbione) + */ + #ifndef _LIBFENCED_H_ #define _LIBFENCED_H_ diff --git a/fence/libfenced/libfenced.pc.in b/fence/libfenced/libfenced.pc.in index 0a550fa..ec2c5e8 100644 --- a/fence/libfenced/libfenced.pc.in +++ b/fence/libfenced/libfenced.pc.in @@ -5,7 +5,7 @@ includedir=${prefix}/include Name: libfenced Version: @VERSION@ -Description: Cluster Fence Daemon library +Description: Private Fencing Comm. Library - DO NOT USE - see lib header Requires: Libs: -L${libdir} -lfenced Cflags: -I${includedir}