561cb87fa5
writing uuid still works without libuuid.
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.41 2013/12/04 07:13:31 steven Exp $
|
|
|
|
COMMENT= syslogd replacement
|
|
|
|
SHARED_ONLY = Yes
|
|
|
|
V = 3.4.6
|
|
REVISION = 1
|
|
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
|
|
|
|
MASTER_SITES = http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$V/source/
|
|
DISTFILES = syslog-ng_$V.tar.gz
|
|
|
|
SHARED_LIBS = syslog-ng 0.0 \
|
|
syslog-ng-${V} 0.0
|
|
|
|
MODULES = devel/gettext
|
|
|
|
WANTLIB = c m pcre wrap crypto ssl evtlog dbi ivykis pthread \
|
|
glib-2.0 gmodule-2.0 gthread-2.0 json-c
|
|
|
|
LIB_DEPENDS = devel/glib2 \
|
|
devel/json-c \
|
|
devel/libivykis \
|
|
sysutils/eventlog \
|
|
databases/libdbi
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += --enable-tcp-wrapper \
|
|
--with-pidfile-dir=/var/run \
|
|
--enable-json \
|
|
--with-libmongo-client=no \
|
|
--with-librabbitmq-client=no \
|
|
--disable-mongodb \
|
|
--disable-amqp \
|
|
--without-libnet \
|
|
--with-ivykis=system \
|
|
--enable-sql
|
|
CONFIGURE_ENV += OPENSSL_CFLAGS="-I/usr/include/openssl" \
|
|
OPENSSL_LIBS="-lssl -lcrypto" \
|
|
LIBDBI_CFLAGS="-I/usr/include/openssl" \
|
|
LIBDBI_LIBS="-ldbi"
|
|
USE_GMAKE = Yes
|
|
USE_GROFF = Yes
|
|
|
|
CFLAGS += -I${LOCALBASE}/include
|
|
|
|
SUBST_VARS += V
|
|
|
|
DOC = ${PREFIX}/share/doc/syslog-ng/
|
|
EXAMPLES = ${PREFIX}/share/examples/syslog-ng/
|
|
|
|
pre-install:
|
|
cd ${WRKSRC}/doc/man && perl -pi -e 's@/opt/syslog\\-ng/etc/syslog\\-ng/@${SYSCONFDIR:S/-/\\-/g}/@g' *.[158]
|
|
|
|
post-install:
|
|
mv ${WRKINST}/etc/syslog-ng ${EXAMPLES}
|
|
${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf \
|
|
${EXAMPLES}/syslog-ng.conf.openbsd
|
|
rm -rf ${PREFIX}/share/{include,tools,xsd}
|
|
rm -f ${PREFIX}/lib/syslog-ng/*.{a,la}
|
|
# XXX hack for libtool dropping -rpath
|
|
ln -s syslog-ng/libsyslog-ng-crypto.so ${PREFIX}/lib/libsyslog-ng-crypto.so
|
|
|
|
.include <bsd.port.mk>
|
|
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}/syslog-ng
|