openbsd-ports/sysutils/syslog-ng/Makefile

61 lines
1.6 KiB
Makefile
Raw Normal View History

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
COMMENT= syslogd replacement
2002-10-05 10:18:16 -04:00
2011-05-01 09:48:32 -04:00
V = 3.1.4
DISTNAME = syslog-ng-$V
CATEGORIES = sysutils
MAINTAINER = Steven Mestdagh <steven@openbsd.org>
HOMEPAGE = http://www.balabit.com/network-security/syslog-ng/
# GPL v2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
2009-03-26 14:52:50 -04:00
MASTER_SITES = http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$V/source/
DISTFILES = syslog-ng_$V.tar.gz
MODULES = devel/gettext
2010-11-11 14:00:48 -05:00
WANTLIB = c pcre wrap crypto ssl z glib-2.0 evtlog
2010-11-20 12:22:40 -05:00
LIB_DEPENDS = devel/glib2 \
sysutils/eventlog
CONFIGURE_STYLE = gnu
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
CFLAGS += -I${LOCALBASE}/include
DOC = ${PREFIX}/share/doc/syslog-ng/
EXAMPLES = ${PREFIX}/share/examples/syslog-ng/
#post-extract:
# tar -C ${WRKBUILD} -xzf ${WRKSRC}/doc/reference/syslog-ng.html.tar.gz
post-configure:
cd ${WRKSRC}/src && mv Makefile Makefile.was && \
sed '/^syslog_ng_ctl_LDADD = /s/-lwrap //' Makefile.was > Makefile
pre-install:
cd ${WRKSRC}/doc/man && perl -pi -e 's@/opt/syslog\\-ng/etc/syslog\\-ng/@${SYSCONFDIR:S/-/\\-/g}/@g' *.[158]
post-install:
# ${INSTALL_DATA_DIR} ${DOC}
# ${INSTALL_DATA} ${WRKBUILD}/syslog-ng.html/index.html ${DOC}
${INSTALL_DATA_DIR} ${EXAMPLES}
${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf \
${EXAMPLES}/syslog-ng.conf.sample
.include <bsd.port.mk>
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}/syslog-ng