pkgconfig: Export corosysconfdir

Useful for external code to easily tell where corosync.conf
is (in case someone configured it for /usr/local/etc, ...)

E.g. pacemaker's crm_report collects corosync.conf, and some
of its testing tools generate a corosync.conf for a test cluster.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
This commit is contained in:
Jan Friesse 2022-01-03 14:55:06 +01:00
parent 6210a89314
commit ada1cfa021
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright (c) 2009 Red Hat, Inc.
# Copyright (c) 2009-2022 Red Hat, Inc.
#
# All rights reserved.
#
@ -63,6 +63,7 @@ lib%.pc: libtemplate.pc.in Makefile
-e 's#@''LIBDIR@#$(libdir)#g' \
-e 's#@''LIBVERSION@#$(VERSION)#g' \
-e 's#@''LOGDIR@#$(LOGDIR)#g' \
-e 's#@''COROSYSCONFDIR@#$(COROSYSCONFDIR)#g' \
$< > $@-t
chmod a-w $@-t
mv $@-t $@

View File

@ -3,6 +3,7 @@ exec_prefix=${prefix}
libdir=@LIBDIR@
includedir=${prefix}/include
logdir=@LOGDIR@
corosysconfdir=@COROSYSCONFDIR@
Name: corosync
Version: @LIBVERSION@