# New ports collection makefile for: libprelude # Date created: Sun Aug 4 19:31:17 CEST 2002 # Whom: Clement Laforet # $FreeBSD$ PORTNAME= libprelude PORTVERSION= 0.9.21.2 CATEGORIES= security MASTER_SITES= http://www.prelude-ids.com/download/releases/%SUBDIR%/ MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/old MAINTAINER= r.gruyters@snow.nl COMMENT= Framework library for Prelude NIDS LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls OPTIONS= PERL "Include Perl bindings" off \ PYTHON "Include Python bindings" off USE_GMAKE= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ARGS= --localstatedir=/var \ --enable-gtk-doc=no \ --with-html-dir=${PREFIX}/share/doc MAN1= prelude-admin.1 PORTDOCS= * .include .if defined(WITH_PERL) USE_PERL5= yes .include "${PORTSDIR}/Mk/bsd.perl.mk" CONFIGURE_ARGS+= --with-perl PLIST_SUB+= WITH_PERL="" .else CONFIGURE_ARGS+= --without-perl PLIST_SUB+= WITH_PERL="@comment " .endif .if defined(WITH_PYTHON) USE_PYTHON= yes .include "${PORTSDIR}/Mk/bsd.python.mk" CONFIGURE_ARGS+= --with-python PLIST_SUB+= WITH_PYTHON="" PYTHON_VER=${PYTHON_VER} .else CONFIGURE_ARGS+= --without-python PLIST_SUB+= WITH_PYTHON="@comment " .endif .if ${ARCH} == "sparc64" BROKEN= Does not compile .endif post-install: .if !defined(NOPORTDOCS) ${INSTALL} -d ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR} .endif @${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/ @${INSTALL_DATA} ${WRKSRC}/client.conf \ ${PREFIX}/etc/prelude/default/client.conf-dist @${INSTALL_DATA} ${WRKSRC}/global.conf \ ${PREFIX}/etc/prelude/default/global.conf-dist @${INSTALL_DATA} ${WRKSRC}/tls.conf \ ${PREFIX}/etc/prelude/default/tls.conf-dist @${INSTALL_DATA} ${WRKSRC}/idmef-client.conf \ ${PREFIX}/etc/prelude/default/idmef-client.conf-dist @if [ ! -f ${PREFIX}/etc/prelude/default/client.conf ]; then \ ${CP} -p ${PREFIX}/etc/prelude/default/client.conf-dist \ ${PREFIX}/etc/prelude/default/client.conf ; \ fi @if [ ! -f ${PREFIX}/etc/prelude/default/global.conf ]; then \ ${CP} -p ${PREFIX}/etc/prelude/default/global.conf-dist \ ${PREFIX}/etc/prelude/default/global.conf ; \ fi @if [ ! -f ${PREFIX}/etc/prelude/default/idmef-client.conf ]; then \ ${CP} -p ${PREFIX}/etc/prelude/default/idmef-client.conf-dist \ ${PREFIX}/etc/prelude/default/idmef-client.conf ; \ fi @if [ ! -f ${PREFIX}/etc/prelude/default/tls.conf ]; then \ ${CP} -p ${PREFIX}/etc/prelude/default/tls.conf-dist \ ${PREFIX}/etc/prelude/default/tls.conf ; \ fi .include