aa67e11089
either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
71 lines
2.5 KiB
Makefile
71 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2014/01/25 10:30:19 wiz Exp $
|
|
|
|
DISTNAME= prelude-correlator-0.9.0-beta8
|
|
PKGNAME= prelude-correlator-${DISTNAME:S/-beta/beta/:C/.*-//}
|
|
PKGREVISION= 4
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.prelude-ids.com/download/releases/prelude-correlator/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.prelude-ids.com/download/releases/prelude-correlator/
|
|
COMMENT= Intrusion event correlation engine
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
RCD_SCRIPTS= preludecorrelator
|
|
PRELUDE_CORRELATOR_PID_DIR= ${VARBASE}/run/prelude-correlator
|
|
PRELUDE_USER?= _prelude
|
|
PRELUDE_GROUP?= _prelude
|
|
PRELUDE_HOME?= ${VARBASE}/db/prelude-correlator
|
|
INSTALLATION_DIRS= sbin
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/prelude-correlator
|
|
EGDIR= ${PREFIX}/share/examples
|
|
|
|
PKG_GROUPS_VARS+= PRELUDE_GROUP
|
|
PKG_USERS_VARS+= PRELUDE_USER
|
|
|
|
PKG_GROUPS= ${PRELUDE_GROUP}
|
|
PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP}
|
|
|
|
PKG_GECOS.${PRELUDE_USER}= Prelude IDS correlator
|
|
PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME}
|
|
|
|
FILES_SUBST+= PRELUDE_CORRELATOR_PID_DIR=${PRELUDE_CORRELATOR_PID_DIR:Q}
|
|
FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q}
|
|
FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_USER:Q}
|
|
|
|
SUBST_CLASSES+= code
|
|
SUBST_STAGE.code= pre-configure
|
|
SUBST_FILES.code= run-prelude-correlator.c
|
|
SUBST_FILES.code+= ${WRKSRC}/*.py
|
|
SUBST_SED.code= -e 's,@PREFIX@,${PREFIX},g'
|
|
SUBST_SED.code+= -e 's,@PRELUDE_USER@,${PRELUDE_USER},g'
|
|
SUBST_SED.code+= -e 's,@PRELUDE_HOME@,${PRELUDE_HOME},g'
|
|
|
|
CONF_FILES+= ${EGDIR}/prelude-correlator.conf ${PKG_SYSCONFDIR}/prelude-correlator/prelude-correlator.conf
|
|
CONF_FILES+= ${EGDIR}/dshield.dat ${PRELUDE_HOME}/dshield.dat
|
|
CONF_FILES+= ${EGDIR}/spamhaus_drop.dat ${PRELUDE_HOME}/spamhaus_drop.dat
|
|
|
|
REQD_DIRS+= ${PRELUDE_HOME}
|
|
REQD_DIRS_PERMS+= ${PRELUDE_HOME} ${PRELUDE_USER} ${PRELUDE_GROUP} 0700
|
|
|
|
REPLACE_PYTHON= ${WRKSRC}/*.py
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 0.9.0beta8
|
|
EGG_NAME= prelude_correlator-0.9.0_beta8
|
|
|
|
pre-patch:
|
|
${CP} ${FILESDIR}/run-prelude-correlator.c ${WRKSRC}
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o run-prelude-correlator run-prelude-correlator.c
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-correlator ${DESTDIR}${PREFIX}/sbin/run-prelude-correlator
|
|
${INSTALL_DATA} ${WRKSRC}/prelude-correlator.conf ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/PreludeCorrelator/plugins/dshield.dat \
|
|
${WRKSRC}/PreludeCorrelator/plugins/spamhaus_drop.dat \
|
|
${DESTDIR}${EGDIR}
|
|
|
|
.include "../../security/libprelude-python/buildlink3.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|