View | Details | Raw Unified | Return to bug 234702
Collapse All | Expand All

(-)sysutils/syslog-ng319/Makefile (-1 / +2 lines)
Lines 1-220 Link Here
1
# Created by: Ivan Lago <ivan.lago@ifom-ieo-campus.it>
1
# Created by: Ivan Lago <ivan.lago@ifom-ieo-campus.it>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	syslog-ng
4
PORTNAME=	syslog-ng
5
DISTVERSION=	3.19.1
5
DISTVERSION=	3.19.1
6
PORTREVISION=	1
6
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
7
DISTFILES=	syslog-ng-${DISTVERSION}.tar.gz
8
DISTFILES=	syslog-ng-${DISTVERSION}.tar.gz
8
MASTER_SITES=	https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${DISTVERSION}/
9
MASTER_SITES=	https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${DISTVERSION}/
9
.if !defined(MASTERDIR)
10
.if !defined(MASTERDIR)
10
PKGNAMESUFFIX=	319
11
PKGNAMESUFFIX=	319
11
.endif
12
.endif
12
13
13
MAINTAINER=	cy@FreeBSD.org
14
MAINTAINER=	cy@FreeBSD.org
14
COMMENT=	Powerful syslogd replacement
15
COMMENT=	Powerful syslogd replacement
15
16
16
LIB_DEPENDS=	libpcre.so:devel/pcre \
17
LIB_DEPENDS=	libpcre.so:devel/pcre \
17
		libuuid.so:misc/e2fsprogs-libuuid
18
		libuuid.so:misc/e2fsprogs-libuuid
18
19
19
BROKEN_sparc64=		fails to link: Internal error: Segmentation fault (program ld)
20
BROKEN_sparc64=		fails to link: Internal error: Segmentation fault (program ld)
20
21
21
CONFLICTS?=	syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \
22
CONFLICTS?=	syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \
22
		syslog-ng[0-9][0-9]-[0-9]* \
23
		syslog-ng[0-9][0-9]-[0-9]* \
23
		syslog-ng-devel-[0-9]* eventlog*
24
		syslog-ng-devel-[0-9]* eventlog*
24
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
25
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
25
26
26
MAKE_JOBS_UNSAFE=	yes
27
MAKE_JOBS_UNSAFE=	yes
27
OPTIONS_DEFINE=	TCP_WRAPPERS SQL SPOOF IPV6 SMTP JSON GEOIP GEOIP2 DOCS REDIS JAVA PYTHON MONGO CURL JAVA_MOD AMQP
28
OPTIONS_DEFINE=	TCP_WRAPPERS SQL SPOOF IPV6 SMTP JSON GEOIP GEOIP2 DOCS REDIS JAVA PYTHON MONGO CURL JAVA_MOD AMQP
28
OPTIONS_DEFAULT=	JSON
29
OPTIONS_DEFAULT=	JSON CURL
29
TCP_WRAPPERS_DESC=	Build with TCP Wrappers
30
TCP_WRAPPERS_DESC=	Build with TCP Wrappers
30
SQL_DESC=		Build with database (libdbi) support
31
SQL_DESC=		Build with database (libdbi) support
31
SPOOF_DESC=		Build with spoof source support
32
SPOOF_DESC=		Build with spoof source support
32
SMTP_DESC=		Build with SMTP support
33
SMTP_DESC=		Build with SMTP support
33
JSON_DESC=		Build with JSON-C support
34
JSON_DESC=		Build with JSON-C support
34
GEOIP_DESC=		Build with GeoIP support (deprecated)
35
GEOIP_DESC=		Build with GeoIP support (deprecated)
35
GEOIP2_DESC=		Build with geoip2 (MaxMindDB) support
36
GEOIP2_DESC=		Build with geoip2 (MaxMindDB) support
36
REDIS_DESC=		Build with Redis support
37
REDIS_DESC=		Build with Redis support
37
JAVA_DESC=		Build with Java support (no modules)
38
JAVA_DESC=		Build with Java support (no modules)
38
JAVA_MOD_DESC=		Build with Java modules (needs Maven / Internet access)
39
JAVA_MOD_DESC=		Build with Java modules (needs Maven / Internet access)
39
PYTHON_DESC=		Build with Python 3.6 support
40
PYTHON_DESC=		Build with Python 3.6 support
40
CURL_DESC=		Build with Curl HTTP support
41
CURL_DESC=		Build with Curl HTTP support
41
AMQP_DESC=		Build with AMQP support
42
AMQP_DESC=		Build with AMQP support
42
43
43
USES=		autoreconf:build gmake libtool pathfix pkgconfig ssl \
44
USES=		autoreconf:build gmake libtool pathfix pkgconfig ssl \
44
		gettext-runtime python:3.6,build shebangfix
45
		gettext-runtime python:3.6,build shebangfix
45
USE_LDCONFIG=	yes
46
USE_LDCONFIG=	yes
46
USE_RC_SUBR=	syslog-ng
47
USE_RC_SUBR=	syslog-ng
47
SHEBANG_FILES=	lib/merge-grammar.py
48
SHEBANG_FILES=	lib/merge-grammar.py
48
SHEBANG_LANG=	python3
49
SHEBANG_LANG=	python3
49
GNU_CONFIGURE=	yes
50
GNU_CONFIGURE=	yes
50
USE_GNOME=	glib20
51
USE_GNOME=	glib20
51
SUB_FILES=	pkg-message
52
SUB_FILES=	pkg-message
52
INSTALL_TARGET=	install-strip
53
INSTALL_TARGET=	install-strip
53
54
54
CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \
55
CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \
55
		--enable-dynamic-linking --enable-manpages \
56
		--enable-dynamic-linking --enable-manpages \
56
		--disable-linux-caps \
57
		--disable-linux-caps \
57
		--datadir=${PREFIX}/share/
58
		--datadir=${PREFIX}/share/
58
59
59
CONFIGURE_ENV+=		OPENSSL_CFLAGS="-I${OPENSSLINC}" \
60
CONFIGURE_ENV+=		OPENSSL_CFLAGS="-I${OPENSSLINC}" \
60
			OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
61
			OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
61
62
62
TCP_WRAPPERS_CONFIGURE_ENABLE=	tcp-wrapper
63
TCP_WRAPPERS_CONFIGURE_ENABLE=	tcp-wrapper
63
64
64
SPOOF_LIB_DEPENDS=		libnet.so:net/libnet
65
SPOOF_LIB_DEPENDS=		libnet.so:net/libnet
65
SPOOF_CONFIGURE_ENABLE=		spoof-source
66
SPOOF_CONFIGURE_ENABLE=		spoof-source
66
SPOOF_CONFIGURE_ON=		--with-libnet=/usr/local/bin
67
SPOOF_CONFIGURE_ON=		--with-libnet=/usr/local/bin
67
SPOOF_CONFIGURE_ENV=		LIBNET_CFLAGS="-I/usr/local/include" \
68
SPOOF_CONFIGURE_ENV=		LIBNET_CFLAGS="-I/usr/local/include" \
68
				LIBNET_LIBS="-L/usr/local/lib -lnet"
69
				LIBNET_LIBS="-L/usr/local/lib -lnet"
69
70
70
IPV6_CONFIGURE_ENABLE=		ipv6
71
IPV6_CONFIGURE_ENABLE=		ipv6
71
72
72
AMQP_CONFIGURE_ENABLE=		amqp
73
AMQP_CONFIGURE_ENABLE=		amqp
73
AMQP_PLIST_FILES=		lib/syslog-ng/libafamqp.so
74
AMQP_PLIST_FILES=		lib/syslog-ng/libafamqp.so
74
AMQP_LIB_DEPENDS=		librabbitmq.so:net/rabbitmq-c
75
AMQP_LIB_DEPENDS=		librabbitmq.so:net/rabbitmq-c
75
76
76
GEOIP_CONFIGURE_ENABLE=		geoip
77
GEOIP_CONFIGURE_ENABLE=		geoip
77
GEOIP_LIB_DEPENDS=		libGeoIP.so:net/GeoIP
78
GEOIP_LIB_DEPENDS=		libGeoIP.so:net/GeoIP
78
GEOIP_CONFIGURE_ENV=		GEOIP_LIBS="-L${LOCALBASE}/lib -lGeoIP"
79
GEOIP_CONFIGURE_ENV=		GEOIP_LIBS="-L${LOCALBASE}/lib -lGeoIP"
79
GEOIP_PLIST_FILES=		lib/syslog-ng/libgeoip-plugin.so
80
GEOIP_PLIST_FILES=		lib/syslog-ng/libgeoip-plugin.so
80
81
81
GEOIP2_CONFIGURE_ENABLE=	geoip2
82
GEOIP2_CONFIGURE_ENABLE=	geoip2
82
GEOIP2_LIB_DEPENDS=		libmaxminddb.so:net/libmaxminddb                                
83
GEOIP2_LIB_DEPENDS=		libmaxminddb.so:net/libmaxminddb                                
83
GEOIP2_LDFLAGS=			-L${LOCALBASE}/lib
84
GEOIP2_LDFLAGS=			-L${LOCALBASE}/lib
84
GEOIP2_PLIST_FILES=		lib/syslog-ng/libgeoip2-plugin.so
85
GEOIP2_PLIST_FILES=		lib/syslog-ng/libgeoip2-plugin.so
85
86
86
REDIS_CONFIGURE_ENABLE=		redis
87
REDIS_CONFIGURE_ENABLE=		redis
87
REDIS_LIB_DEPENDS=		libhiredis.so:databases/hiredis
88
REDIS_LIB_DEPENDS=		libhiredis.so:databases/hiredis
88
REDIS_PLIST_FILES=		lib/syslog-ng/libredis.so
89
REDIS_PLIST_FILES=		lib/syslog-ng/libredis.so
89
90
90
SMTP_CONFIGURE_ON=		--with-libesmtp=${LOCALBASE} --enable-smtp
91
SMTP_CONFIGURE_ON=		--with-libesmtp=${LOCALBASE} --enable-smtp
91
SMTP_CONFIGURE_OFF=		--without-libesmtp --disable-smtp
92
SMTP_CONFIGURE_OFF=		--without-libesmtp --disable-smtp
92
SMTP_LIB_DEPENDS=		libesmtp.so:mail/libesmtp
93
SMTP_LIB_DEPENDS=		libesmtp.so:mail/libesmtp
93
SMTP_PLIST_FILES=		lib/syslog-ng/libafsmtp.so
94
SMTP_PLIST_FILES=		lib/syslog-ng/libafsmtp.so
94
95
95
SQL_CONFIGURE_ENABLE=		sql
96
SQL_CONFIGURE_ENABLE=		sql
96
SQL_LIB_DEPENDS=		libdbi.so:databases/libdbi
97
SQL_LIB_DEPENDS=		libdbi.so:databases/libdbi
97
SQL_CONFIGURE_ENV=		LIBDBI_LIBS="-ldbi"
98
SQL_CONFIGURE_ENV=		LIBDBI_LIBS="-ldbi"
98
SQL_LDFLAGS=			-L${LOCALBASE}/lib
99
SQL_LDFLAGS=			-L${LOCALBASE}/lib
99
SQL_PLIST_FILES=		lib/syslog-ng/libafsql.so
100
SQL_PLIST_FILES=		lib/syslog-ng/libafsql.so
100
101
101
MONGO_CONFIGURE_ENABLE=		mongodb
102
MONGO_CONFIGURE_ENABLE=		mongodb
102
MONGO_CONFIGURE_ON=		--with-mongoc=system
103
MONGO_CONFIGURE_ON=		--with-mongoc=system
103
MONGO_LIB_DEPENDS=		libmongoc-1.0.so:devel/mongo-c-driver
104
MONGO_LIB_DEPENDS=		libmongoc-1.0.so:devel/mongo-c-driver
104
MONGO_LIB_DEPENDS+=		libbson-1.0.so:devel/libbson
105
MONGO_LIB_DEPENDS+=		libbson-1.0.so:devel/libbson
105
MONGO_PLIST_FILES=		lib/syslog-ng/libafmongodb.so
106
MONGO_PLIST_FILES=		lib/syslog-ng/libafmongodb.so
106
107
107
JSON_CONFIGURE_ENABLE=		json
108
JSON_CONFIGURE_ENABLE=		json
108
JSON_LIB_DEPENDS=		libjson-c.so:devel/json-c
109
JSON_LIB_DEPENDS=		libjson-c.so:devel/json-c
109
JSON_PLIST_FILES=		lib/syslog-ng/libjson-plugin.so \
110
JSON_PLIST_FILES=		lib/syslog-ng/libjson-plugin.so \
110
				share/syslog-ng/include/scl/cim/template.conf
111
				share/syslog-ng/include/scl/cim/template.conf
111
112
112
JAVA_CONFIGURE_ENABLE=		java
113
JAVA_CONFIGURE_ENABLE=		java
113
JAVA_USE=			JAVA=yes
114
JAVA_USE=			JAVA=yes
114
JAVA_PLIST_FILES=		lib/syslog-ng/libmod-java.so \
115
JAVA_PLIST_FILES=		lib/syslog-ng/libmod-java.so \
115
				lib/syslog-ng/java-modules/syslog-ng-core.jar
116
				lib/syslog-ng/java-modules/syslog-ng-core.jar
116
117
117
JAVA_MOD_CONFIGURE_ENABLE=	java-modules
118
JAVA_MOD_CONFIGURE_ENABLE=	java-modules
118
JAVA_MOD_USE=			JAVA=yes
119
JAVA_MOD_USE=			JAVA=yes
119
JAVA_MOD_BUILD_DEPENDS=		gradle:devel/gradle \
120
JAVA_MOD_BUILD_DEPENDS=		gradle:devel/gradle \
120
				bash:shells/bash
121
				bash:shells/bash
121
JAVA_MOD_PLIST_DIRS=		lib/syslog-ng/java-modules/elastic-jest-client
122
JAVA_MOD_PLIST_DIRS=		lib/syslog-ng/java-modules/elastic-jest-client
122
JAVA_MOD_PLIST_FILES=		lib/syslog-ng/java-modules/log4j-1.2.16.jar \
123
JAVA_MOD_PLIST_FILES=		lib/syslog-ng/java-modules/log4j-1.2.16.jar \
123
				lib/syslog-ng/java-modules/elastic-jest-client/jest-2.0.2.jar \
124
				lib/syslog-ng/java-modules/elastic-jest-client/jest-2.0.2.jar \
124
				lib/syslog-ng/java-modules/elastic-jest-client/jest-common-2.0.2.jar \
125
				lib/syslog-ng/java-modules/elastic-jest-client/jest-common-2.0.2.jar \
125
				lib/syslog-ng/java-modules/elastic-jest-client/httpcore-nio-4.4.4.jar \
126
				lib/syslog-ng/java-modules/elastic-jest-client/httpcore-nio-4.4.4.jar \
126
				lib/syslog-ng/java-modules/elastic-jest-client/httpclient-4.5.2.jar \
127
				lib/syslog-ng/java-modules/elastic-jest-client/httpclient-4.5.2.jar \
127
				lib/syslog-ng/java-modules/elastic-jest-client/httpasyncclient-4.1.1.jar \
128
				lib/syslog-ng/java-modules/elastic-jest-client/httpasyncclient-4.1.1.jar \
128
				lib/syslog-ng/java-modules/elastic-jest-client/slf4j-api-1.7.13.jar \
129
				lib/syslog-ng/java-modules/elastic-jest-client/slf4j-api-1.7.13.jar \
129
				lib/syslog-ng/java-modules/elastic-jest-client/guava-19.0.jar \
130
				lib/syslog-ng/java-modules/elastic-jest-client/guava-19.0.jar \
130
				lib/syslog-ng/java-modules/elastic-jest-client/gson-2.6.2.jar \
131
				lib/syslog-ng/java-modules/elastic-jest-client/gson-2.6.2.jar \
131
				lib/syslog-ng/java-modules/elastic-jest-client/commons-lang3-3.4.jar \
132
				lib/syslog-ng/java-modules/elastic-jest-client/commons-lang3-3.4.jar \
132
				lib/syslog-ng/java-modules/elastic-jest-client/httpcore-4.4.4.jar \
133
				lib/syslog-ng/java-modules/elastic-jest-client/httpcore-4.4.4.jar \
133
				lib/syslog-ng/java-modules/elastic-jest-client/commons-logging-1.2.jar \
134
				lib/syslog-ng/java-modules/elastic-jest-client/commons-logging-1.2.jar \
134
				lib/syslog-ng/java-modules/elastic-jest-client/commons-codec-1.9.jar \
135
				lib/syslog-ng/java-modules/elastic-jest-client/commons-codec-1.9.jar \
135
				lib/syslog-ng/java-modules/elastic-jest-client/slf4j-simple-1.7.13.jar \
136
				lib/syslog-ng/java-modules/elastic-jest-client/slf4j-simple-1.7.13.jar \
136
				lib/syslog-ng/java-modules/hdfs.jar \
137
				lib/syslog-ng/java-modules/hdfs.jar \
137
				lib/syslog-ng/java-modules/elastic.jar \
138
				lib/syslog-ng/java-modules/elastic.jar \
138
				lib/syslog-ng/java-modules/elastic-v2.jar \
139
				lib/syslog-ng/java-modules/elastic-v2.jar \
139
				lib/syslog-ng/java-modules/kafka.jar \
140
				lib/syslog-ng/java-modules/kafka.jar \
140
				lib/syslog-ng/java-modules/dummy.jar \
141
				lib/syslog-ng/java-modules/dummy.jar \
141
				lib/syslog-ng/java-modules/http.jar \
142
				lib/syslog-ng/java-modules/http.jar \
142
				lib/syslog-ng/java-modules/syslog-ng-common.jar
143
				lib/syslog-ng/java-modules/syslog-ng-common.jar
143
144
144
PYTHON_CONFIGURE_ON=		--enable-python
145
PYTHON_CONFIGURE_ON=		--enable-python
145
PYTHON_CONFIGURE_OFF=		--disable-python --with-python=3.6
146
PYTHON_CONFIGURE_OFF=		--disable-python --with-python=3.6
146
PYTHON_CONFIGURE_WITH=		python=3.6
147
PYTHON_CONFIGURE_WITH=		python=3.6
147
PYTHON_PLIST_FILES=		lib/syslog-ng/libmod-python.so \
148
PYTHON_PLIST_FILES=		lib/syslog-ng/libmod-python.so \
148
                   %%PYTHON_SITELIBDIR%%/syslogng-1.0-py%%PYTHON_VER%%.egg-info \
149
                   %%PYTHON_SITELIBDIR%%/syslogng-1.0-py%%PYTHON_VER%%.egg-info \
149
                   %%PYTHON_SITELIBDIR%%/syslogng/__init__.py \
150
                   %%PYTHON_SITELIBDIR%%/syslogng/__init__.py \
150
                   %%PYTHON_SITELIBDIR%%/syslogng/__pycache__/__init__.cpython-36.pyc \
151
                   %%PYTHON_SITELIBDIR%%/syslogng/__pycache__/__init__.cpython-36.pyc \
151
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__init__.py \
152
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__init__.py \
152
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/__init__.cpython-36.pyc \
153
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/__init__.cpython-36.pyc \
153
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/choicecompleter.py \
154
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/choicecompleter.py \
154
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/choicecompleter.cpython-36.pyc \
155
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/choicecompleter.cpython-36.pyc \
155
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/commandlinelexer.py \
156
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/commandlinelexer.py \
156
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/commandlinelexer.cpython-36.pyc \
157
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/commandlinelexer.cpython-36.pyc \
157
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/completer.py  \
158
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/completer.py  \
158
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/completer.cpython-36.pyc \
159
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/completer.cpython-36.pyc \
159
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/completerlang.py  \
160
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/completerlang.py  \
160
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/completerlang.cpython-36.pyc \
161
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/completerlang.cpython-36.pyc \
161
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/debuggercli.py \
162
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/debuggercli.py \
162
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/debuggercli.cpython-36.pyc \
163
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/debuggercli.cpython-36.pyc \
163
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/debuglang.py \
164
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/debuglang.py \
164
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/debuglang.cpython-36.pyc \
165
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/debuglang.cpython-36.pyc \
165
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/getoptlexer.py \
166
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/getoptlexer.py \
166
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/getoptlexer.cpython-36.pyc \
167
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/getoptlexer.cpython-36.pyc \
167
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/langcompleter.py \
168
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/langcompleter.py \
168
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/langcompleter.cpython-36.pyc \
169
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/langcompleter.cpython-36.pyc \
169
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/lexer.py \
170
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/lexer.py \
170
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/lexer.cpython-36.pyc \
171
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/lexer.cpython-36.pyc \
171
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/lexertoken.py \
172
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/lexertoken.py \
172
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/lexertoken.cpython-36.pyc \
173
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/lexertoken.cpython-36.pyc \
173
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/macrocompleter.py \
174
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/macrocompleter.py \
174
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/macrocompleter.cpython-36.pyc \
175
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/macrocompleter.cpython-36.pyc \
175
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/readline.py \
176
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/readline.py \
176
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/readline.cpython-36.pyc \
177
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/readline.cpython-36.pyc \
177
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/syslognginternals.py \
178
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/syslognginternals.py \
178
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/syslognginternals.cpython-36.pyc \
179
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/syslognginternals.cpython-36.pyc \
179
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/tablexer.py \
180
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/tablexer.py \
180
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/tablexer.cpython-36.pyc \
181
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/tablexer.cpython-36.pyc \
181
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/templatelang.py \
182
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/templatelang.py \
182
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/templatelang.cpython-36.pyc \
183
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/templatelang.cpython-36.pyc \
183
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/templatelexer.py \
184
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/templatelexer.py \
184
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/templatelexer.cpython-36.pyc \
185
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/templatelexer.cpython-36.pyc \
185
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/tflang.py \
186
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/tflang.py \
186
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/tflang.cpython-36.pyc
187
                   %%PYTHON_SITELIBDIR%%/syslogng/debuggercli/__pycache__/tflang.cpython-36.pyc
187
188
188
CURL_CONFIGURE_OFF=		--with-libcurl=off
189
CURL_CONFIGURE_OFF=		--with-libcurl=off
189
CURL_LIB_DEPENDS=		libcurl.so:ftp/curl
190
CURL_LIB_DEPENDS=		libcurl.so:ftp/curl
190
CURL_PLIST_FILES=		lib/syslog-ng/libhttp.so
191
CURL_PLIST_FILES=		lib/syslog-ng/libhttp.so
191
192
192
193
193
.include <bsd.port.pre.mk>
194
.include <bsd.port.pre.mk>
194
195
195
.if !${PORT_OPTIONS:MJSON}
196
.if !${PORT_OPTIONS:MJSON}
196
BROKEN=           Default configuration does not currently support non-JSON builds
197
BROKEN=           Default configuration does not currently support non-JSON builds
197
.endif
198
.endif
198
199
199
post-patch:
200
post-patch:
200
	@${CP} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist
201
	@${CP} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist
201
	@${CP} ${WRKSRC}/scl/scl.conf ${WRKSRC}/scl/scl.conf.sample
202
	@${CP} ${WRKSRC}/scl/scl.conf ${WRKSRC}/scl/scl.conf.sample
202
203
203
post-install:
204
post-install:
204
.if ${PORT_OPTIONS:MDOCS}
205
.if ${PORT_OPTIONS:MDOCS}
205
	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} ${STAGEDIR}${DOCSDIR}
206
	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} ${STAGEDIR}${DOCSDIR}
206
	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}
207
	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}
207
	${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
208
	${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
208
	${INSTALL_DATA} ${WRKSRC}/NEWS.md ${STAGEDIR}${DOCSDIR}
209
	${INSTALL_DATA} ${WRKSRC}/NEWS.md ${STAGEDIR}${DOCSDIR}
209
.endif
210
.endif
210
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/
211
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/
211
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/
212
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/
212
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.8 ${STAGEDIR}${PREFIX}/man/man8/
213
	${INSTALL_MAN} ${WRKSRC}/doc/man/*.8 ${STAGEDIR}${PREFIX}/man/man8/
213
	${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample \
214
	${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample \
214
		${STAGEDIR}${PREFIX}/etc
215
		${STAGEDIR}${PREFIX}/etc
215
	${INSTALL_DATA} ${WRKSRC}/scl/syslog-ng.conf.dist \
216
	${INSTALL_DATA} ${WRKSRC}/scl/syslog-ng.conf.dist \
216
		${WRKSRC}/scl/scl.conf.sample ${STAGEDIR}${PREFIX}/etc
217
		${WRKSRC}/scl/scl.conf.sample ${STAGEDIR}${PREFIX}/etc
217
	${INSTALL_DATA} ${WRKSRC}/lib/ivykis/src/include/iv*.h \
218
	${INSTALL_DATA} ${WRKSRC}/lib/ivykis/src/include/iv*.h \
218
		${STAGEDIR}${PREFIX}/include/syslog-ng/
219
		${STAGEDIR}${PREFIX}/include/syslog-ng/
219
220
220
.include <bsd.port.post.mk>
221
.include <bsd.port.post.mk>
(-)sysutils/syslog-ng319/files/syslog-ng.conf.sample (-1 / +1 lines)
Lines 1-185 Link Here
1
@version:3.18
1
@version:3.19
2
@include "scl.conf"
2
@include "scl.conf"
3
3
4
#
4
#
5
# This sample configuration file is essentially equilivent to the stock
5
# This sample configuration file is essentially equilivent to the stock
6
# FreeBSD /etc/syslog.conf file.
6
# FreeBSD /etc/syslog.conf file.
7
#
7
#
8
# $FreeBSD: head/sysutils/syslog-ng/files/syslog-ng.conf.sample 340872 2014-01-24 00:14:07Z mat $
8
# $FreeBSD: head/sysutils/syslog-ng/files/syslog-ng.conf.sample 340872 2014-01-24 00:14:07Z mat $
9
#
9
#
10
10
11
#
11
#
12
# options
12
# options
13
#
13
#
14
options { chain_hostnames(off); flush_lines(0); threaded(yes); };
14
options { chain_hostnames(off); flush_lines(0); threaded(yes); };
15
15
16
#
16
#
17
# sources
17
# sources
18
#
18
#
19
source src { system();
19
source src { system();
20
	     udp(); internal(); };
20
	     udp(); internal(); };
21
21
22
#
22
#
23
# destinations
23
# destinations
24
#
24
#
25
destination messages { file("/var/log/messages"); };
25
destination messages { file("/var/log/messages"); };
26
destination security { file("/var/log/security"); };
26
destination security { file("/var/log/security"); };
27
destination authlog { file("/var/log/auth.log"); };
27
destination authlog { file("/var/log/auth.log"); };
28
destination maillog { file("/var/log/maillog"); };
28
destination maillog { file("/var/log/maillog"); };
29
destination lpd-errs { file("/var/log/lpd-errs"); };
29
destination lpd-errs { file("/var/log/lpd-errs"); };
30
destination xferlog { file("/var/log/xferlog"); };
30
destination xferlog { file("/var/log/xferlog"); };
31
destination cron { file("/var/log/cron"); };
31
destination cron { file("/var/log/cron"); };
32
destination debuglog { file("/var/log/debug.log"); };
32
destination debuglog { file("/var/log/debug.log"); };
33
destination consolelog { file("/var/log/console.log"); };
33
destination consolelog { file("/var/log/console.log"); };
34
destination all { file("/var/log/all.log"); };
34
destination all { file("/var/log/all.log"); };
35
destination newscrit { file("/var/log/news/news.crit"); };
35
destination newscrit { file("/var/log/news/news.crit"); };
36
destination newserr { file("/var/log/news/news.err"); };
36
destination newserr { file("/var/log/news/news.err"); };
37
destination newsnotice { file("/var/log/news/news.notice"); };
37
destination newsnotice { file("/var/log/news/news.notice"); };
38
destination slip { file("/var/log/slip.log"); };
38
destination slip { file("/var/log/slip.log"); };
39
destination ppp { file("/var/log/ppp.log"); };
39
destination ppp { file("/var/log/ppp.log"); };
40
destination console { file("/dev/console"); };
40
destination console { file("/dev/console"); };
41
destination allusers { usertty("*"); };
41
destination allusers { usertty("*"); };
42
#destination loghost { udp("loghost" port(514)); };
42
#destination loghost { udp("loghost" port(514)); };
43
43
44
#
44
#
45
# log facility filters
45
# log facility filters
46
#
46
#
47
filter f_auth { facility(auth); };
47
filter f_auth { facility(auth); };
48
filter f_authpriv { facility(authpriv); };
48
filter f_authpriv { facility(authpriv); };
49
filter f_not_authpriv { not facility(authpriv); };
49
filter f_not_authpriv { not facility(authpriv); };
50
#filter f_console { facility(console); };
50
#filter f_console { facility(console); };
51
filter f_cron { facility(cron); };
51
filter f_cron { facility(cron); };
52
filter f_daemon { facility(daemon); };
52
filter f_daemon { facility(daemon); };
53
filter f_ftp { facility(ftp); };
53
filter f_ftp { facility(ftp); };
54
filter f_kern { facility(kern); };
54
filter f_kern { facility(kern); };
55
filter f_lpr { facility(lpr); };
55
filter f_lpr { facility(lpr); };
56
filter f_mail { facility(mail); };
56
filter f_mail { facility(mail); };
57
filter f_news { facility(news); };
57
filter f_news { facility(news); };
58
filter f_security { facility(security); };
58
filter f_security { facility(security); };
59
filter f_user { facility(user); };
59
filter f_user { facility(user); };
60
filter f_uucp { facility(uucp); };
60
filter f_uucp { facility(uucp); };
61
filter f_local0 { facility(local0); };
61
filter f_local0 { facility(local0); };
62
filter f_local1 { facility(local1); };
62
filter f_local1 { facility(local1); };
63
filter f_local2 { facility(local2); };
63
filter f_local2 { facility(local2); };
64
filter f_local3 { facility(local3); };
64
filter f_local3 { facility(local3); };
65
filter f_local4 { facility(local4); };
65
filter f_local4 { facility(local4); };
66
filter f_local5 { facility(local5); };
66
filter f_local5 { facility(local5); };
67
filter f_local6 { facility(local6); };
67
filter f_local6 { facility(local6); };
68
filter f_local7 { facility(local7); };
68
filter f_local7 { facility(local7); };
69
69
70
#
70
#
71
# log level filters
71
# log level filters
72
#
72
#
73
filter f_emerg { level(emerg); };
73
filter f_emerg { level(emerg); };
74
filter f_alert { level(alert..emerg); };
74
filter f_alert { level(alert..emerg); };
75
filter f_crit { level(crit..emerg); };
75
filter f_crit { level(crit..emerg); };
76
filter f_err { level(err..emerg); };
76
filter f_err { level(err..emerg); };
77
filter f_warning { level(warning..emerg); };
77
filter f_warning { level(warning..emerg); };
78
filter f_notice { level(notice..emerg); };
78
filter f_notice { level(notice..emerg); };
79
filter f_info { level(info..emerg); };
79
filter f_info { level(info..emerg); };
80
filter f_debug { level(debug..emerg); };
80
filter f_debug { level(debug..emerg); };
81
filter f_is_debug { level(debug); };
81
filter f_is_debug { level(debug); };
82
82
83
#
83
#
84
# program filters
84
# program filters
85
#
85
#
86
filter f_ppp { program("ppp"); };
86
filter f_ppp { program("ppp"); };
87
filter f_slip { program("startslip"); };
87
filter f_slip { program("startslip"); };
88
88
89
#
89
#
90
# *.err;kern.warning;auth.notice;mail.crit		/dev/console
90
# *.err;kern.warning;auth.notice;mail.crit		/dev/console
91
#
91
#
92
log { source(src); filter(f_err); destination(console); };
92
log { source(src); filter(f_err); destination(console); };
93
log { source(src); filter(f_kern); filter(f_warning); 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); };
94
log { source(src); filter(f_auth); filter(f_notice); destination(console); };
95
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
95
log { source(src); filter(f_mail); filter(f_crit); destination(console); };
96
96
97
#
97
#
98
# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err	/var/log/messages
98
# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err	/var/log/messages
99
#
99
#
100
log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
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); };
101
log { source(src); filter(f_kern); filter(f_debug); destination(messages); };
102
log { source(src); filter(f_lpr); filter(f_info); 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); };
103
log { source(src); filter(f_mail); filter(f_crit); destination(messages); };
104
log { source(src); filter(f_news); filter(f_err); destination(messages); };
104
log { source(src); filter(f_news); filter(f_err); destination(messages); };
105
105
106
#
106
#
107
# security.*						/var/log/security
107
# security.*						/var/log/security
108
#
108
#
109
log { source(src); filter(f_security); destination(security); };
109
log { source(src); filter(f_security); destination(security); };
110
110
111
#
111
#
112
# auth.info;authpriv.info				/var/log/auth.log
112
# auth.info;authpriv.info				/var/log/auth.log
113
log { source(src); filter(f_auth); filter(f_info); destination(authlog); };
113
log { source(src); filter(f_auth); filter(f_info); destination(authlog); };
114
log { source(src); filter(f_authpriv); filter(f_info); destination(authlog); };
114
log { source(src); filter(f_authpriv); filter(f_info); destination(authlog); };
115
115
116
#
116
#
117
# mail.info						/var/log/maillog
117
# mail.info						/var/log/maillog
118
#
118
#
119
log { source(src); filter(f_mail); filter(f_info); destination(maillog); };
119
log { source(src); filter(f_mail); filter(f_info); destination(maillog); };
120
120
121
#
121
#
122
# lpr.info						/var/log/lpd-errs
122
# lpr.info						/var/log/lpd-errs
123
#
123
#
124
log { source(src); filter(f_lpr); filter(f_info); destination(lpd-errs); };
124
log { source(src); filter(f_lpr); filter(f_info); destination(lpd-errs); };
125
125
126
#
126
#
127
# ftp.info						/var/log/xferlog
127
# ftp.info						/var/log/xferlog
128
#
128
#
129
log { source(src); filter(f_ftp); filter(f_info); destination(xferlog); };
129
log { source(src); filter(f_ftp); filter(f_info); destination(xferlog); };
130
130
131
#
131
#
132
# cron.*						/var/log/cron
132
# cron.*						/var/log/cron
133
#
133
#
134
log { source(src); filter(f_cron); destination(cron); };
134
log { source(src); filter(f_cron); destination(cron); };
135
135
136
#
136
#
137
# *.=debug						/var/log/debug.log
137
# *.=debug						/var/log/debug.log
138
#
138
#
139
log { source(src); filter(f_is_debug); destination(debuglog); };
139
log { source(src); filter(f_is_debug); destination(debuglog); };
140
140
141
#
141
#
142
# *.emerg						*
142
# *.emerg						*
143
#
143
#
144
log { source(src); filter(f_emerg); destination(allusers); };
144
log { source(src); filter(f_emerg); destination(allusers); };
145
145
146
#
146
#
147
# uncomment this to log all writes to /dev/console to /var/log/console.log
147
# uncomment this to log all writes to /dev/console to /var/log/console.log
148
# console.info						/var/log/console.log
148
# console.info						/var/log/console.log
149
#
149
#
150
#log { source(src); filter(f_console); filter(f_info); destination(consolelog); };
150
#log { source(src); filter(f_console); filter(f_info); destination(consolelog); };
151
151
152
#
152
#
153
# uncomment this to enable logging of all log messages to /var/log/all.log
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
154
# touch /var/log/all.log and chmod it to mode 600 before it will work
155
# *.*							/var/log/all.log
155
# *.*							/var/log/all.log
156
#
156
#
157
#log { source(src); destination(all); };
157
#log { source(src); destination(all); };
158
158
159
#
159
#
160
# uncomment this to enable logging to a remote loghost named loghost
160
# uncomment this to enable logging to a remote loghost named loghost
161
# *.*							@loghost
161
# *.*							@loghost
162
#
162
#
163
#log { source(src); destination(loghost); };
163
#log { source(src); destination(loghost); };
164
164
165
#
165
#
166
# uncomment these if you're running inn
166
# uncomment these if you're running inn
167
# news.crit						/var/log/news/news.crit
167
# news.crit						/var/log/news/news.crit
168
# news.err						/var/log/news/news.err
168
# news.err						/var/log/news/news.err
169
# news.notice						/var/log/news/news.notice
169
# news.notice						/var/log/news/news.notice
170
#
170
#
171
#log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
171
#log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
172
#log { source(src); filter(f_news); filter(f_err); destination(newserr); };
172
#log { source(src); filter(f_news); filter(f_err); destination(newserr); };
173
#log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
173
#log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
174
174
175
#
175
#
176
# !startslip
176
# !startslip
177
# *.*							/var/log/slip.log
177
# *.*							/var/log/slip.log
178
#
178
#
179
log { source(src); filter(f_slip); destination(slip); };
179
log { source(src); filter(f_slip); destination(slip); };
180
180
181
#
181
#
182
# !ppp
182
# !ppp
183
# *.*							/var/log/ppp.log
183
# *.*							/var/log/ppp.log
184
#
184
#
185
log { source(src); filter(f_ppp); destination(ppp); };
185
log { source(src); filter(f_ppp); destination(ppp); };

Return to bug 234702