Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / syslog-ng / Makefile
blobdeaa3a8228090a9555a9c57c98fd4664eacad464
1 # $NetBSD: Makefile,v 1.20 2012/10/23 19:51:26 asau Exp $
3 VERS= 3.2.4
4 DISTNAME= syslog-ng_${VERS}
5 PKGNAME= syslog-ng-${VERS}
6 PKGREVISION= 6
7 CATEGORIES= sysutils
8 MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${VERS}/source/
9 WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
11 MAINTAINER= pkgsrc-users@NetBSD.org
12 HOMEPAGE= http://www.balabit.com/network-security/syslog-ng/
13 COMMENT= Syslog-ng tries to fill the gaps original syslogd's were lacking
14 LICENSE= gnu-gpl-v2
16 USE_TOOLS+= flex pkg-config gmake awk:run
17 USE_LIBTOOL= YES
19 GNU_CONFIGURE= YES
20 RCD_SCRIPTS= syslogng
21 PKG_SYSCONFSUBDIR= syslog-ng
23 CONFIGURE_ARGS+= --enable-tcp-wrapper
24 CONFIGURE_ARGS+= --localstatedir=${VARBASE}/db/syslog-ng
25 CONFIGURE_ARGS+= --with-pidfile-dir=${VARBASE}/run
26 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
28 REPLACE_AWK+= contrib/syslog2ng
30 EGDIR= ${PREFIX}/share/examples/syslog-ng
31 DOCDIR= ${PREFIX}/share/doc/syslog-ng
33 INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
35 OWN_DIRS+= ${VARBASE}/db/syslog-ng
37 BUILD_DEFS+= VARBASE
39 CONF_FILES+= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/modules.conf
40 CONF_FILES+= ${EGDIR}/scl.conf ${PKG_SYSCONFDIR}/scl.conf
41 CONF_FILES+= ${EGDIR}/syslog-ng.conf ${PKG_SYSCONFDIR}/syslog-ng.conf
43 SUBST_CLASSES+= unamepath
44 SUBST_STAGE.unamepath= post-configure
45 SUBST_FILES.unamepath= contrib/syslog2ng
46 SUBST_VARS.unamepath= UNAME
48 .include "../../mk/bsd.prefs.mk"
50 .include "../../security/tcp_wrappers/buildlink3.mk"
51 .include "../../sysutils/eventlog/buildlink3.mk"
52 .include "../../devel/glib2/buildlink3.mk"
53 BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.8
54 .include "../../security/openssl/buildlink3.mk"
56 .if ${OPSYS} == "SunOS"
57 CONFIGURE_ARGS+= --enable-full-dynamic
58 CONFIGURE_ARGS+= --enable-sun-streams
59 .endif
61 PKG_OPTIONS_VAR= PKG_OPTIONS.syslog-ng
62 PKG_SUPPORTED_OPTIONS= syslogng-spoof
64 PKG_OPTIONS_LEGACY_OPTS+= spoof:syslogng-spoof
66 .include "../../mk/bsd.options.mk"
69 # spoof the original source address of forwarded syslog packets
71 .if !empty(PKG_OPTIONS:Msyslogng-spoof)
72 CONFIGURE_ARGS+= --enable-spoof-source
73 .include "../../devel/libnet11/buildlink3.mk"
74 .endif
76 INSTALLATION_DIRS+= bin
77 INSTALLATION_DIRS+= ${DOCDIR}
78 INSTALLATION_DIRS+= ${EGDIR}
80 post-install:
81 ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}
82 ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
83 ${INSTALL_DATA} ${WRKSRC}/contrib/syslog-ng.conf.doc ${DESTDIR}${DOCDIR}
84 for f in syslog-ng.conf.sample syslog-ng.conf.solaris syslog-ng.service\ ; do \
85 ${INSTALL_DATA} ${WRKSRC}/doc/examples/$${f} ${DESTDIR}${EGDIR};\
86 done
87 ${INSTALL_SCRIPT} ${WRKSRC}/contrib/syslog2ng ${DESTDIR}${PREFIX}/bin
89 .include "../../mk/bsd.pkg.mk"