View | Details | Raw Unified | Return to bug 252613 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/syslog-ng/Makefile (-6 / +6 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	syslog-ng
4
PORTNAME=	syslog-ng
5
DISTVERSION=	3.30.1
5
DISTVERSION=	3.30.1
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
MASTER_SITES=	https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${DISTVERSION}/
8
MASTER_SITES=	https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${DISTVERSION}/
9
9
Lines 10-15 Link Here
10
MAINTAINER=	cy@FreeBSD.org
10
MAINTAINER=	cy@FreeBSD.org
11
COMMENT=	Powerful syslogd replacement
11
COMMENT=	Powerful syslogd replacement
12
12
13
LICENSE=	GPLv2+ LGPL21+
14
LICENSE_COMB=	multi
15
13
BROKEN_sparc64=		fails to link: Internal error: Segmentation fault (program ld)
16
BROKEN_sparc64=		fails to link: Internal error: Segmentation fault (program ld)
14
17
15
LIB_DEPENDS=	libpcre.so:devel/pcre \
18
LIB_DEPENDS=	libpcre.so:devel/pcre \
Lines 226-238 Link Here
226
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/
229
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/
227
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/
230
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/
228
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.8 ${STAGEDIR}${PREFIX}/man/man8/
231
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.8 ${STAGEDIR}${PREFIX}/man/man8/
229
.if ${OSVERSION} > 1200000
232
230
	${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample \
233
	${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample \
231
		${STAGEDIR}${PREFIX}/etc
234
		${STAGEDIR}${PREFIX}/etc
232
.else
235
233
	${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample.11 \
234
		${STAGEDIR}${PREFIX}/etc/syslog-ng.conf.sample
235
.endif
236
	${INSTALL_DATA} ${WRKSRC}/scl/syslog-ng.conf.dist \
236
	${INSTALL_DATA} ${WRKSRC}/scl/syslog-ng.conf.dist \
237
		${WRKSRC}/scl/scl.conf.sample ${STAGEDIR}${PREFIX}/etc
237
		${WRKSRC}/scl/scl.conf.sample ${STAGEDIR}${PREFIX}/etc
238
	${INSTALL_DATA} ${WRKSRC}/lib/ivykis/src/include/iv*.h \
238
	${INSTALL_DATA} ${WRKSRC}/lib/ivykis/src/include/iv*.h \
(-)sysutils/syslog-ng/files/syslog-ng.conf.sample (-3 / +1 lines)
Lines 16-24 Link Here
16
#
16
#
17
# sources
17
# sources
18
#
18
#
19
source src { unix-dgram("/var/run/log" flags(syslog-protocol));
19
source src { system(); udp(); internal(); };
20
	     file("/dev/klog" flags(kernel) program_override("kernel: "));
21
	     internal(); };
22
20
23
#
21
#
24
# destinations
22
# destinations
(-)sysutils/syslog-ng/files/syslog-ng.conf.sample.11 (-185 lines)
Lines 1-185 Link Here
1
@version:3.29
2
@include "scl.conf"
3
4
#
5
# This sample configuration file is essentially equilivent to the stock
6
# FreeBSD /etc/syslog.conf file.
7
#
8
# $FreeBSD: head/sysutils/syslog-ng/files/syslog-ng.conf.sample 340872 2014-01-24 00:14:07Z mat $
9
#
10
11
#
12
# options
13
#
14
options { chain_hostnames(off); flush_lines(0); threaded(yes); };
15
16
#
17
# sources
18
#
19
source src { system();
20
	     udp(); internal(); };
21
22
#
23
# destinations
24
#
25
destination messages { file("/var/log/messages"); };
26
destination security { file("/var/log/security"); };
27
destination authlog { file("/var/log/auth.log"); };
28
destination maillog { file("/var/log/maillog"); };
29
destination lpd-errs { file("/var/log/lpd-errs"); };
30
destination xferlog { file("/var/log/xferlog"); };
31
destination cron { file("/var/log/cron"); };
32
destination debuglog { file("/var/log/debug.log"); };
33
destination consolelog { file("/var/log/console.log"); };
34
destination all { file("/var/log/all.log"); };
35
destination newscrit { file("/var/log/news/news.crit"); };
36
destination newserr { file("/var/log/news/news.err"); };
37
destination newsnotice { file("/var/log/news/news.notice"); };
38
destination slip { file("/var/log/slip.log"); };
39
destination ppp { file("/var/log/ppp.log"); };
40
destination console { file("/dev/console"); };
41
destination allusers { usertty("*"); };
42
#destination loghost { udp("loghost" port(514)); };
43
44
#
45
# log facility filters
46
#
47
filter f_auth { facility(auth); };
48
filter f_authpriv { facility(authpriv); };
49
filter f_not_authpriv { not facility(authpriv); };
50
#filter f_console { facility(console); };
51
filter f_cron { facility(cron); };
52
filter f_daemon { facility(daemon); };
53
filter f_ftp { facility(ftp); };
54
filter f_kern { facility(kern); };
55
filter f_lpr { facility(lpr); };
56
filter f_mail { facility(mail); };
57
filter f_news { facility(news); };
58
filter f_security { facility(security); };
59
filter f_user { facility(user); };
60
filter f_uucp { facility(uucp); };
61
filter f_local0 { facility(local0); };
62
filter f_local1 { facility(local1); };
63
filter f_local2 { facility(local2); };
64
filter f_local3 { facility(local3); };
65
filter f_local4 { facility(local4); };
66
filter f_local5 { facility(local5); };
67
filter f_local6 { facility(local6); };
68
filter f_local7 { facility(local7); };
69
70
#
71
# log level filters
72
#
73
filter f_emerg { level(emerg); };
74
filter f_alert { level(alert..emerg); };
75
filter f_crit { level(crit..emerg); };
76
filter f_err { level(err..emerg); };
77
filter f_warning { level(warning..emerg); };
78
filter f_notice { level(notice..emerg); };
79
filter f_info { level(info..emerg); };
80
filter f_debug { level(debug..emerg); };
81
filter f_is_debug { level(debug); };
82
83
#
84
# program filters
85
#
86
filter f_ppp { program("ppp"); };
87
filter f_slip { program("startslip"); };
88
89
#
90
# *.err;kern.warning;auth.notice;mail.crit		/dev/console
91
#
92
log { source(src); filter(f_err); destination(console); };
93
log { source(src); filter(f_kern); filter(f_warning); destination(console); };
94
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
95
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
96
97
#
98
# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err	/var/log/messages
99
#
100
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
101
log { source(src); filter(f_kern); filter(f_debug); destination(messages); };
102
log { source(src); filter(f_lpr); filter(f_info); destination(messages); };
103
log { source(src); filter(f_mail); filter(f_crit); destination(messages); };
104
log { source(src); filter(f_news); filter(f_err); destination(messages); };
105
106
#
107
# security.*						/var/log/security
108
#
109
log { source(src); filter(f_security); destination(security); };
110
111
#
112
# auth.info;authpriv.info				/var/log/auth.log
113
log { source(src); filter(f_auth); filter(f_info); destination(authlog); };
114
log { source(src); filter(f_authpriv); filter(f_info); destination(authlog); };
115
116
#
117
# mail.info						/var/log/maillog
118
#
119
log { source(src); filter(f_mail); filter(f_info); destination(maillog); };
120
121
#
122
# lpr.info						/var/log/lpd-errs
123
#
124
log { source(src); filter(f_lpr); filter(f_info); destination(lpd-errs); };
125
126
#
127
# ftp.info						/var/log/xferlog
128
#
129
log { source(src); filter(f_ftp); filter(f_info); destination(xferlog); };
130
131
#
132
# cron.*						/var/log/cron
133
#
134
log { source(src); filter(f_cron); destination(cron); };
135
136
#
137
# *.=debug						/var/log/debug.log
138
#
139
log { source(src); filter(f_is_debug); destination(debuglog); };
140
141
#
142
# *.emerg						*
143
#
144
log { source(src); filter(f_emerg); destination(allusers); };
145
146
#
147
# uncomment this to log all writes to /dev/console to /var/log/console.log
148
# console.info						/var/log/console.log
149
#
150
#log { source(src); filter(f_console); filter(f_info); destination(consolelog); };
151
152
#
153
# uncomment this to enable logging of all log messages to /var/log/all.log
154
# touch /var/log/all.log and chmod it to mode 600 before it will work
155
# *.*							/var/log/all.log
156
#
157
#log { source(src); destination(all); };
158
159
#
160
# uncomment this to enable logging to a remote loghost named loghost
161
# *.*							@loghost
162
#
163
#log { source(src); destination(loghost); };
164
165
#
166
# uncomment these if you're running inn
167
# news.crit						/var/log/news/news.crit
168
# news.err						/var/log/news/news.err
169
# news.notice						/var/log/news/news.notice
170
#
171
#log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
172
#log { source(src); filter(f_news); filter(f_err); destination(newserr); };
173
#log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
174
175
#
176
# !startslip
177
# *.*							/var/log/slip.log
178
#
179
log { source(src); filter(f_slip); destination(slip); };
180
181
#
182
# !ppp
183
# *.*							/var/log/ppp.log
184
#
185
log { source(src); filter(f_ppp); destination(ppp); };

Return to bug 252613