File:
[cvs.NetBSD.org] /
pkgsrc /
security /
prelude-pflogger /
Attic /
Makefile
Revision
1.24:
download - view:
text,
annotated -
select for diffs
Fri May 22 10:56:39 2020 UTC (4 years, 6 months ago) by
adam
Branches:
MAIN
CVS tags:
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
HEAD
revbump after updating security/nettle
# $NetBSD: Makefile,v 1.24 2020/05/22 10:56:39 adam Exp $
#
DISTNAME= prelude-pflogger-0.9.0-rc2
PKGNAME= prelude-pflogger-0.9.0
PKGREVISION= 13
CATEGORIES= security
#MASTER_SITES= http://prelude-ids.org/download/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://prelude-ids.org/download/releases/
COMMENT= Prelude sensor for Packet Filter (pf)
.include "../../mk/bsd.prefs.mk"
PRELUDE_USER?= _prelude
PRELUDE_GROUP?= _prelude
PRELUDE_PFLOGGER_PID_DIR= ${VARBASE}/run/prelude-pflogger
PKG_GROUPS_VARS+= PRELUDE_GROUP
PKG_USERS_VARS+= PRELUDE_USER
EGDIR= ${PREFIX}/share/examples/prelude-pflogger
REQD_DIRS= ${EGDIR} ${PKG_SYSCONFDIR}
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= prelude-pflogger
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONF_FILES= ${EGDIR}/prelude-pflogger.conf ${PKG_SYSCONFDIR}/prelude-pflogger.conf
USE_TOOLS+= autoconf automake aclocal autoheader
FILES_SUBST+= PRELUDE_PFLOGGER_PID_DIR=${PRELUDE_PFLOGGER_PID_DIR:Q}
FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q}
FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_GROUP:Q}
MESSAGE_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q}
MESSAGE_SUBST+= PRELUDE_GROUP=${PRELUDE_GROUP:Q}
SUBST_CLASSES+= code
SUBST_STAGE.code= pre-configure
SUBST_FILES.code= run-prelude-pflogger.c
SUBST_VARS.code= PREFIX
SUBST_VARS.code+= PRELUDE_USER
SUBST_CLASSES+= make
SUBST_STAGE.make= pre-configure
SUBST_FILES.make= Makefile.am
SUBST_VARS.make= EGDIR
RCD_SCRIPTS= pflogger
INSTALLATION_DIRS= share/examples/prelude-pflogger sbin
pre-patch:
${CP} ${FILESDIR}/run-prelude-pflogger.c ${WRKSRC}
pre-configure:
set -e; cd ${WRKSRC}; \
aclocal; autoheader; automake -a --foreign -i; autoconf
${LN} -s ${BUILDLINK_DIR}/lib/libltdl.so ${BUILDLINK_DIR}/lib/libltdlc.so
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o run-prelude-pflogger run-prelude-pflogger.c
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-pflogger ${DESTDIR}${PREFIX}/sbin/run-prelude-pflogger
.include "../../security/libprelude/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>