2011-05-01 09:48:32 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2011/05/01 13:48:32 steven Exp $
|
2002-10-05 10:18:16 -04:00
|
|
|
|
2004-06-19 18:16:22 -04:00
|
|
|
COMMENT= syslogd replacement
|
2002-10-05 10:18:16 -04:00
|
|
|
|
2011-05-01 09:48:32 -04:00
|
|
|
V = 3.1.4
|
2010-05-03 16:51:17 -04:00
|
|
|
DISTNAME = syslog-ng-$V
|
|
|
|
CATEGORIES = sysutils
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2010-05-03 16:51:17 -04:00
|
|
|
MAINTAINER = Steven Mestdagh <steven@openbsd.org>
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2008-11-09 18:27:03 -05:00
|
|
|
HOMEPAGE = http://www.balabit.com/network-security/syslog-ng/
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2008-11-09 18:27:03 -05:00
|
|
|
# GPL v2
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2009-03-26 14:52:50 -04:00
|
|
|
MASTER_SITES = http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$V/source/
|
2010-05-03 16:51:17 -04:00
|
|
|
DISTFILES = syslog-ng_$V.tar.gz
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2010-03-20 12:47:44 -04:00
|
|
|
MODULES = devel/gettext
|
2010-05-03 16:51:17 -04:00
|
|
|
|
2010-11-11 14:00:48 -05:00
|
|
|
WANTLIB = c pcre wrap crypto ssl z glib-2.0 evtlog
|
2010-05-03 16:51:17 -04:00
|
|
|
|
2010-11-20 12:22:40 -05:00
|
|
|
LIB_DEPENDS = devel/glib2 \
|
|
|
|
sysutils/eventlog
|
2010-07-22 17:03:03 -04:00
|
|
|
|
2008-11-09 18:27:03 -05:00
|
|
|
CONFIGURE_STYLE = gnu
|
2010-05-03 16:51:17 -04:00
|
|
|
CONFIGURE_ARGS += --enable-tcp-wrapper \
|
|
|
|
--with-pidfile-dir=/var/run \
|
|
|
|
--disable-sql
|
|
|
|
CONFIGURE_ENV += OPENSSL_CFLAGS="-I/usr/include/openssl" \
|
|
|
|
OPENSSL_LIBS="-lssl -lcrypto"
|
2010-10-19 03:43:00 -04:00
|
|
|
USE_GROFF = Yes
|
2010-05-03 16:51:17 -04:00
|
|
|
|
|
|
|
CFLAGS += -I${LOCALBASE}/include
|
|
|
|
|
2008-11-09 18:27:03 -05:00
|
|
|
DOC = ${PREFIX}/share/doc/syslog-ng/
|
|
|
|
EXAMPLES = ${PREFIX}/share/examples/syslog-ng/
|
2010-05-03 16:51:17 -04:00
|
|
|
|
|
|
|
#post-extract:
|
|
|
|
# tar -C ${WRKBUILD} -xzf ${WRKSRC}/doc/reference/syslog-ng.html.tar.gz
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2010-05-03 16:51:17 -04:00
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC}/src && mv Makefile Makefile.was && \
|
|
|
|
sed '/^syslog_ng_ctl_LDADD = /s/-lwrap //' Makefile.was > Makefile
|
2004-06-19 18:16:22 -04:00
|
|
|
|
2010-05-03 16:51:17 -04:00
|
|
|
pre-install:
|
|
|
|
cd ${WRKSRC}/doc/man && perl -pi -e 's@/opt/syslog\\-ng/etc/syslog\\-ng/@${SYSCONFDIR:S/-/\\-/g}/@g' *.[158]
|
|
|
|
|
2004-06-19 18:16:22 -04:00
|
|
|
post-install:
|
2010-09-24 13:54:16 -04:00
|
|
|
# ${INSTALL_DATA_DIR} ${DOC}
|
2010-05-03 16:51:17 -04:00
|
|
|
# ${INSTALL_DATA} ${WRKBUILD}/syslog-ng.html/index.html ${DOC}
|
2004-06-19 18:16:22 -04:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLES}
|
2010-07-22 17:03:03 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf \
|
|
|
|
${EXAMPLES}/syslog-ng.conf.sample
|
2004-06-19 18:16:22 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2010-07-22 17:03:03 -04:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}/syslog-ng
|