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

(-)Makefile (-23 / +22 lines)
Lines 1-5 Link Here
1
# New ports collection makefile for:	syslog-ng
1
# New ports collection makefile for:	syslog-ng
2
# Date created:		10 november 1006
2
# Date created:		10 november 2006
3
# Whom:			Ivan Lago <ivan.lago@ifom-ieo-campus.it>
3
# Whom:			Ivan Lago <ivan.lago@ifom-ieo-campus.it>
4
#
4
#
5
# $FreeBSD: ports/sysutils/syslog-ng/Makefile,v 1.45 2011/10/18 04:29:48 cy Exp $
5
# $FreeBSD: ports/sysutils/syslog-ng/Makefile,v 1.45 2011/10/18 04:29:48 cy Exp $
Lines 7-23 Link Here
7
7
8
PORTNAME=	syslog-ng
8
PORTNAME=	syslog-ng
9
PORTVERSION=	3.3.1
9
PORTVERSION=	3.3.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
12
MASTER_SITES=	http://www.balabit.com/downloads/files/syslog-ng/sources/$(PORTVERSION)/source/
12
MASTER_SITES=	http://www.balabit.com/downloads/files/syslog-ng/sources/${PORTVERSION}/source/
13
DISTFILES=	$(PORTNAME)_$(PORTVERSION).tar.gz
13
DISTNAME=	${PORTNAME}_${PORTVERSION}
14
14
15
MAINTAINER=	cy@FreeBSD.org
15
MAINTAINER=	cy@FreeBSD.org
16
COMMENT=	A powerful syslogd replacement
16
COMMENT=	A powerful syslogd replacement
17
17
18
CONFLICTS?=	syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \
18
CONFLICTS?=	syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \
19
		syslog-ng-devel-[0-9]*
19
		syslog-ng-devel-[0-9]*
20
WRKSRC=		$(WRKDIR)/$(PORTNAME)-$(PORTVERSION)
20
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
21
21
22
OPTIONS=	SYS_SSL "Build with OpenSSL support (from system)" off \
22
OPTIONS=	SYS_SSL "Build with OpenSSL support (from system)" off \
23
		PORTS_SSL "Build with OpenSSL support (from ports)" off \
23
		PORTS_SSL "Build with OpenSSL support (from ports)" off \
Lines 37-42 Link Here
37
MAN5=		syslog-ng.conf.5
37
MAN5=		syslog-ng.conf.5
38
MAN8=		syslog-ng.8
38
MAN8=		syslog-ng.8
39
39
40
USE_LDCONFIG=	yes
40
USE_RC_SUBR=	syslog-ng.sh
41
USE_RC_SUBR=	syslog-ng.sh
41
GNU_CONFIGURE=	yes
42
GNU_CONFIGURE=	yes
42
USE_GMAKE=	yes
43
USE_GMAKE=	yes
Lines 44-69 Link Here
44
SUB_FILES=	pkg-message
45
SUB_FILES=	pkg-message
45
46
46
CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \
47
CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \
47
		--enable-dynamic-linking --with-libnet=${LOCALBASE}/bin
48
		--enable-dynamic-linking
48
CFLAGS+=	`${LIBNET_CONFIG} --cflags` -I${LOCALBASE}/include
49
LDFLAGS+=	`${LIBNET_CONFIG} --libs`
50
49
51
.if defined(WITH_SYS_SSL) && defined(WITH_PORTS_SSL)
50
.if defined(WITH_SYS_SSL) && defined(WITH_PORTS_SSL)
52
BROKEN=		SYS_SSL and PORTS_SSL are mutually exclusive
51
BROKEN=		SYS_SSL and PORTS_SSL are mutually exclusive
53
.endif
52
.endif
54
53
55
.if defined(WITH_SYS_SSL) || defined(WITH_PORTS_SSL)
54
.if defined(WITH_SYS_SSL) || defined(WITH_PORTS_SSL)
56
USE_OPENSSL=            yes
55
USE_OPENSSL=		yes
57
CONFIGURE_ARGS+=        --enable-ssl
56
CONFIGURE_ARGS+=	--enable-ssl
58
CONFIGURE_ENV+=         OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \
57
CONFIGURE_ENV+=		OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \
59
                        OPENSSL_LIBS="${OPENSSL_LDFLAGS} -lcrypto -lssl"
58
			OPENSSL_LIBS="${OPENSSL_LDFLAGS} -lcrypto -lssl"
60
PLIST_FILES+=           lib/syslog-ng/libafsocket-tls.la lib/syslog-ng/libafsocket-tls.so
59
PLIST_FILES+=		lib/syslog-ng/libafsocket-tls.la lib/syslog-ng/libafsocket-tls.so
61
.else
60
.else
62
CONFIGURE_ARGS+=        --disable-ssl
61
CONFIGURE_ARGS+=	--disable-ssl
63
.endif
62
.endif
64
63
65
.if defined(WITH_PORTS_SSL)
64
.if defined(WITH_PORTS_SSL)
66
WITH_OPENSSL_PORT=      yes
65
WITH_OPENSSL_PORT=	yes
67
.endif
66
.endif
68
67
69
.include <bsd.port.pre.mk>
68
.include <bsd.port.pre.mk>
Lines 77-83 Link Here
77
.if defined(WITH_SPOOF)
76
.if defined(WITH_SPOOF)
78
BUILD_DEPENDS=		${LIBNET_CONFIG}:${PORTSDIR}/net/libnet-devel
77
BUILD_DEPENDS=		${LIBNET_CONFIG}:${PORTSDIR}/net/libnet-devel
79
LIBNET_CONFIG?=		${LOCALBASE}/bin/libnet115-config
78
LIBNET_CONFIG?=		${LOCALBASE}/bin/libnet115-config
80
CONFIGURE_ARGS+=	--enable-spoof-source
79
CONFIGURE_ARGS+=	--enable-spoof-source --with-libnet=${LOCALBASE}/bin
80
CFLAGS+=		`${LIBNET_CONFIG} --cflags` -I${LOCALBASE}/include
81
LDFLAGS+=		`${LIBNET_CONFIG} --libs`
81
.else
82
.else
82
CONFIGURE_ARGS+=	--disable-spoof-source
83
CONFIGURE_ARGS+=	--disable-spoof-source
83
.endif
84
.endif
Lines 110-127 Link Here
110
111
111
.if defined(WITH_JSON_GLIB)
112
.if defined(WITH_JSON_GLIB)
112
LIB_DEPENDS+=		json-glib-1.0.0:${PORTSDIR}/devel/json-glib
113
LIB_DEPENDS+=		json-glib-1.0.0:${PORTSDIR}/devel/json-glib
113
CONFIGURE_ARGS+=        --enable-json --with-json=json-glib
114
CONFIGURE_ARGS+=	--enable-json --with-json=json-glib
114
PLIST_FILES+=		lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so
115
PLIST_FILES+=		lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so
115
.elif defined(WITH_JSON_C)
116
.elif defined(WITH_JSON_C)
116
LIB_DEPENDS+=		json.0:${PORTSDIR}/devel/json-c
117
LIB_DEPENDS+=		json.0:${PORTSDIR}/devel/json-c
117
CONFIGURE_ARGS+=        --enable-json --with-json=json-c
118
CONFIGURE_ARGS+=	--enable-json --with-json=json-c
118
PLIST_FILES+=		lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so
119
PLIST_FILES+=		lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so
119
.else
120
.else
120
CONFIGURE_ARGS+=        --disable-json
121
CONFIGURE_ARGS+=	--disable-json
121
.endif
122
.endif
122
123
123
.if ${OSVERSION} >= 900034
124
.if ${OSVERSION} >= 900034
124
CONFIGURE_ARGS+=        --disable-linux-caps
125
CONFIGURE_ARGS+=	--disable-linux-caps
125
.endif
126
.endif
126
127
127
post-patch:
128
post-patch:
Lines 135-146 Link Here
135
		${WRKSRC}/lib/utils.c ${WRKSRC}/lib/utils.h
136
		${WRKSRC}/lib/utils.c ${WRKSRC}/lib/utils.h
136
.endif
137
.endif
137
138
138
139
post-install:
139
post-install:
140
.if !defined(NOPORTDOCS)
140
.if !defined(NOPORTDOCS)
141
	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
141
	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
142
			${PREFIX}/share/doc/syslog-ng \
142
			${PREFIX}/share/doc/syslog-ng
143
			${PREFIX}/share/doc/syslog-ng/sgml
144
	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/syslog-ng
143
	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/syslog-ng
145
	${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/syslog-ng
144
	${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/syslog-ng
146
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/syslog-ng
145
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/syslog-ng
(-)pkg-plist (-3 / +3 lines)
Lines 1-9 Link Here
1
@unexec %D/etc/rc.d/syslog-ng.sh stop > /dev/null 2>&1 || true
1
@unexec %D/etc/rc.d/syslog-ng.sh stop > /dev/null 2>&1 || true
2
etc/modules.conf
2
etc/modules.conf
3
etc/scl.conf
3
etc/scl.conf
4
@exec test -f %D/etc/syslog-ng.conf || cp -p %D/etc/syslog-ng.conf.sample %D/etc/syslog-ng.conf
5
@unexec if cmp -s %D/etc/syslog-ng.conf %D/etc/syslog-ng.conf.dist; then rm -f %D/etc/syslog-ng.conf; fi
4
@unexec if cmp -s %D/etc/syslog-ng.conf %D/etc/syslog-ng.conf.dist; then rm -f %D/etc/syslog-ng.conf; fi
6
etc/syslog-ng.conf.dist
5
etc/syslog-ng.conf.dist
6
@exec [ -f %B/syslog-ng.conf ] || cp %B/%f %B/syslog-ng.conf
7
etc/syslog-ng.conf.sample
7
etc/syslog-ng.conf.sample
8
bin/loggen
8
bin/loggen
9
bin/pdbtool
9
bin/pdbtool
Lines 119-127 Link Here
119
%%PORTDOCS%%%%DOCSDIR%%/COPYING
119
%%PORTDOCS%%%%DOCSDIR%%/COPYING
120
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
120
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
121
%%PORTDOCS%%%%DOCSDIR%%/NEWS
121
%%PORTDOCS%%%%DOCSDIR%%/NEWS
122
%%PORTDOCS%%@dirrm %%DOCSDIR%%/sgml
123
%%PORTDOCS%%@dirrm %%DOCSDIR%%
122
%%PORTDOCS%%@dirrm %%DOCSDIR%%
124
@dirrm etc/patterndb.d
125
@dirrm include/syslog-ng
123
@dirrm include/syslog-ng
126
@dirrm lib/syslog-ng
124
@dirrm lib/syslog-ng
127
@dirrm share/include/scl/system
125
@dirrm share/include/scl/system
Lines 131-133 Link Here
131
@dirrm share/include
129
@dirrm share/include
132
@dirrmtry share/tools
130
@dirrmtry share/tools
133
@dirrm share/xsd
131
@dirrm share/xsd
132
@exec mkdir %D/etc/patterndb.d
133
@dirrmtry etc/patterndb.d

Return to bug 162414