Skip to content

Commit ec57eec

Browse files
committed
add syslog-ng devel package
This patch adds a syslog-ng-dev package that contains the syslog-ng headers and related files that makes it possible to build modules outside of the syslog-ng source tree. Signed-off-by: Viktor Juhasz <jviktor@balabit.hu> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
1 parent 805f240 commit ec57eec

File tree

8 files changed

+53
-4
lines changed

8 files changed

+53
-4
lines changed

Makefile.am

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
SUBDIRS = lib modules syslog-ng scripts tests doc contrib scl debian tgz2build
1+
SUBDIRS = lib modules syslog-ng scripts tests doc contrib scl debian tgz2build build
22

33
ACLOCAL_AMFLAGS = -I m4 --install
44

55
EXTRA_DIST = VERSION \
6-
syslog-ng.spec syslog-ng.spec.in dist.conf dist.conf.in ChangeLog
6+
syslog-ng.spec syslog-ng.spec.in dist.conf dist.conf.in ChangeLog syslog-ng.pc.in
7+
8+
pkgconfigdir = $(libdir)/pkgconfig
9+
pkgconfig_DATA = syslog-ng.pc
710

811
.PHONY: ChangeLog
912

build/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
EXTRA_DIST = lex-rules.am
3+
4+
toolsdir = $(datadir)/tools
5+
tools_DATA = lex-rules.am ../lib/cfg-grammar.y ../lib/merge-grammar.pl

configure.in

+2
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,8 @@ AC_SUBST(PACKAGE_SUFFIX)
922922
AC_OUTPUT(dist.conf
923923
Makefile
924924
syslog-ng.spec
925+
syslog-ng.pc
926+
build/Makefile
925927
lib/Makefile
926928
syslog-ng/Makefile
927929
modules/Makefile

debian/control

+11
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ Description: Next generation logging daemon
1717
* filtering based on message content
1818
* portability
1919
* better network forwarding
20+
21+
Package: syslog-ng-dev
22+
Architecture: any
23+
Depends: syslog-ng
24+
Section: libdevel
25+
Description: Next generation logging daemon dev package
26+
Syslog-ng tries to fill the gaps original syslogd's were lacking:
27+
* powerful configurability
28+
* filtering based on message content
29+
* portability
30+
* better network forwarding

lib/Makefile.am

+11-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ lib_LTLIBRARIES = libsyslog-ng.la
99
libsyslog_ng_la_LIBADD = @CORE_DEPS_LIBS@
1010
libsyslog_ng_la_LDFLAGS = -no-undefined
1111

12+
pkginclude_HEADERS = afinter.h center.h compat.h filter-expr-parser.h logmatcher.h \
13+
logprocess.h logsource.h memtrace.h parser-expr-parser.h serialize.h syslog-ng.h \
14+
alarms.h cfg.h control.h filter.h logmpx.h logproto.h logstamp.h messages.h persist-state.h \
15+
sgroup.h tags.h apphook.h cfg-lexer.h dgroup.h gprocess.h logmsg.h logqueue.h logtransport.h \
16+
misc.h plugin.h stats.h templates.h atomic.h cfg-parser.h dnscache.h gsockaddr.h logparser.h \
17+
logreader.h logwriter.h msg-format.h pragma-parser.h str-format.h timeutils.h \
18+
block-ref-parser.h children.h driver.h gsocket.h logpipe.h \
19+
logrewrite.h mainloop.h nvtable.h rewrite-expr-parser.h \
20+
syslog-names.h utils.h cfg-grammar.h cfg-lex.h
21+
1222
libsyslog_ng_la_SOURCES = \
1323
misc.c misc.h utils.c utils.h messages.c messages.h syslog-names.c syslog-names.h \
1424
mainloop.c mainloop.h \
@@ -59,7 +69,7 @@ BUILT_SOURCES = cfg-lex.c cfg-lex.h cfg-grammar.c cfg-grammar.h \
5969

6070
EXTRA_DIST = $(BUILT_SOURCES) \
6171
filter-expr-grammar.ym block-ref-grammar.ym pragma-grammar.ym parser-expr-grammar.ym rewrite-expr-grammar.ym \
62-
syslog-ng.h
72+
syslog-ng.h merge-grammar.pl
6373

6474
CLEAN_FILES = $(BUILT_SOURCES)
6575

syslog-ng.pc.in

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Package Information for pkg-config
2+
prefix=@prefix@
3+
exec_prefix=@exec_prefix@
4+
libdir=@libdir@
5+
includedir=@includedir@
6+
toolsdir=@datadir@/tools
7+
8+
Name: syslog-ng-dev
9+
Description: Dev package for syslog-ng module
10+
Version: @VERSION@
11+
Requires: glib-2.0
12+
Libs: -L${libdir} @GLIB_LIBS@
13+
Cflags: -I${includedir}/syslog-ng

tgz2build/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
EXTRA_DIST = syslog-ng.files rules tgz2deps
2+
EXTRA_DIST = syslog-ng.files syslog-ng-dev.files rules rules.conf tgz2deps

tgz2build/syslog-ng-dev.files

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
opt/syslog-ng/include/*
2+
opt/syslog-ng/lib/pkgconfig/*
3+
opt/syslog-ng/lib/*.a
4+
opt/syslog-ng/lib/*.la
5+
opt/syslog-ng/lib/*.so*

0 commit comments

Comments
 (0)