blob: ebc5e5adf013038db4bd4c5f9773ae937e216774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $NetBSD: Makefile,v 1.5 2008/05/26 02:13:24 joerg Exp $
DISTNAME= syslog-ng-1.6.11
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.balabit.com/downloads/syslog-ng/1.6/src/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.balabit.com/network-security/syslog-ng/
COMMENT= Syslog-ng tries to fill the gaps original syslogd's were lacking
USE_TOOLS+= pax
GNU_CONFIGURE= YES
RCD_SCRIPTS= syslogng
PKG_SYSCONFSUBDIR= syslog-ng
CONFIGURE_ARGS+= --enable-tcp-wrapper
EGDIR= ${PREFIX}/share/examples/syslog-ng
DOCDIR= ${PREFIX}/share/doc/syslog-ng
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= doc/syslog-ng.8 doc/syslog-ng.conf.5 contrib/syslog2ng
SUBST_SED.conf= -e "s|/etc/syslog-ng|${PKG_SYSCONFDIR}|g"
SUBST_SED.conf+= -e "s|/usr/bin/awk|${AWK}|g"
SUBST_MESSAGE.conf= Fixing configuration file paths.
.include "../../mk/bsd.prefs.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../sysutils/libol/buildlink3.mk"
BUILDLINK_API_DEPENDS.libol+= libol>=0.3.0
PKG_OPTIONS_VAR= PKG_OPTIONS.syslog-ng
PKG_SUPPORTED_OPTIONS= syslogng-spoof
PKG_OPTIONS_LEGACY_OPTS+= spoof:syslogng-spoof
.include "../../mk/bsd.options.mk"
#
# spoof the original source address of forwarded syslog packets
#
.if !empty(PKG_OPTIONS:Msyslogng-spoof)
CONFIGURE_ARGS+= --enable-spoof-source
.include "../../devel/libnet11/buildlink3.mk"
.endif
pre-build:
cd ${WRKSRC}/doc/sgml && \
pax -O -zrf ${WRKSRC}/doc/sgml/syslog-ng.html.tar.gz
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/syslog-ng
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.spoof ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/syslog-ng.conf.doc ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/syslog-ng.conf.demo ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/syslog-ng.conf.sample ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/syslog-ng.conf.solaris ${EGDIR}
${INSTALL_SCRIPT} ${WRKSRC}/contrib/syslog2ng ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/sgml/syslog-ng.html/*.html ${DOCDIR}
.include "../../mk/bsd.pkg.mk"
|