2013-01-05 07:52:19 +00:00
|
|
|
# Created by: Stefan Esser <se@FreeBSD.org>
|
2008-04-20 17:24:09 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= argus
|
2016-06-09 23:59:53 +00:00
|
|
|
PORTVERSION= 3.0.8.2
|
2016-08-08 21:17:25 +00:00
|
|
|
PORTREVISION= 1
|
2008-04-20 17:24:09 +00:00
|
|
|
CATEGORIES= net-mgmt security
|
|
|
|
MASTER_SITES= http://qosient.com/argus/src/ \
|
|
|
|
ftp://qosient.com/pub/argus/src/
|
|
|
|
|
2015-03-12 17:12:19 +00:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2013-01-05 07:52:19 +00:00
|
|
|
COMMENT= Generic IP network transaction auditing tool
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
2008-04-20 17:24:09 +00:00
|
|
|
|
2012-06-08 21:33:55 +00:00
|
|
|
CONFLICTS= argus-2* argus-sasl-2* argus-clients-2*
|
2008-04-20 17:24:09 +00:00
|
|
|
|
2014-06-18 20:59:27 +00:00
|
|
|
OPTIONS_DEFINE= SASL
|
|
|
|
OPTIONS_DEFAULT=SASL
|
2016-04-01 14:16:16 +00:00
|
|
|
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
2015-05-21 19:11:18 +00:00
|
|
|
SASL_CONFIGURE_ON= --with-sasl=${LOCALBASE}
|
2015-09-22 19:59:54 +00:00
|
|
|
SASL_VARS= PKGNAMESUFFIX+=-sasl
|
2008-04-20 17:24:09 +00:00
|
|
|
|
2010-03-30 13:28:38 +00:00
|
|
|
USE_RC_SUBR= argus
|
2008-04-20 17:24:09 +00:00
|
|
|
|
2013-09-14 16:38:28 +00:00
|
|
|
USES= bison perl5
|
2014-06-18 20:59:27 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2010-03-30 13:28:38 +00:00
|
|
|
|
2008-08-01 12:00:41 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/usr/lib/sasl2#${LOCALBASE}/lib/sasl2#' ${WRKSRC}/argus/ArgusOutput.c
|
|
|
|
|
2014-06-18 20:59:27 +00:00
|
|
|
pre-install:
|
|
|
|
@${REINPLACE_CMD} -e 's#/usr/bin/perl#${LOCALBASE}/bin/perl#' ${WRKSRC}/bin/argus-lsof
|
|
|
|
@${REINPLACE_CMD} -e 's#/bin/bash#${LOCALBASE}/bin/bash#' ${WRKSRC}/bin/argus-vmstat
|
|
|
|
|
2008-04-20 17:24:09 +00:00
|
|
|
do-install:
|
2014-06-18 20:59:27 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/argus ${STAGEDIR}${PREFIX}/sbin/argus
|
2013-01-05 07:52:19 +00:00
|
|
|
.for i in argus-lsof argus-snmp argus-vmstat argusbug
|
2014-06-18 20:59:27 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/$i ${STAGEDIR}${PREFIX}/bin/$i
|
2013-01-05 07:52:19 +00:00
|
|
|
.endfor
|
2014-06-18 20:59:27 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man5/argus.conf.5 ${STAGEDIR}${PREFIX}/man/man5/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man8/argus.8 ${STAGEDIR}${PREFIX}/man/man8/
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/Archive ${STAGEDIR}${EXAMPLESDIR}/Config \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/Deployment ${STAGEDIR}${EXAMPLESDIR}/Startup \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/System
|
|
|
|
.for i in Archive/argusarchive \
|
2008-04-20 17:24:09 +00:00
|
|
|
Config/argus.conf \
|
|
|
|
Deployment/sample \
|
|
|
|
Startup/argus Startup/README \
|
|
|
|
System/crontab System/magic
|
2014-06-18 20:59:27 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/support/$i ${STAGEDIR}${EXAMPLESDIR}/$i
|
2008-04-20 17:24:09 +00:00
|
|
|
.endfor
|
2014-06-18 20:59:27 +00:00
|
|
|
${CP} ${WRKSRC}/support/Config/argus.conf ${STAGEDIR}${PREFIX}/etc/argus.conf.sample
|
2008-04-20 17:24:09 +00:00
|
|
|
|
2013-01-05 07:52:19 +00:00
|
|
|
.include <bsd.port.mk>
|