aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/argus3/Makefile
blob: af8b44e7e9939108e01378926888ed82d7071b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    argus3
# Date created:     08 Jul 2006
# Whom:         Stefan Esser <se@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   argus
PORTVERSION=    3.0.0
PORTREVISION=   1
CATEGORIES= net-mgmt security
MASTER_SITES=   http://qosient.com/argus/src/ \
        ftp://qosient.com/pub/argus/src/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A generic IP network transaction auditing tool

#RUN_DEPENDS=   ${LOCALBASE}/bin/ragrep:${PORTSDIR}/net-mgmt/argus3-clients

OPTIONS+=   SASL "SASL authentication support" on

.include <bsd.port.pre.mk>

.if defined(WITH_SASL)
PKGNAMESUFFIX=  -sasl
LIB_DEPENDS+=   sasl2.2:${PORTSDIR}/security/cyrus-sasl2
.endif

USE_BISON=  build
GNU_CONFIGURE=  true
.if defined(WITH_SASL)
CONFIGURE_ARGS+=    --with-sasl=${LOCALBASE}
.endif

MAN5=       argus.conf.5
MAN8=       argus.8

post-patch:
    @${REINPLACE_CMD} -e 's#/usr/lib/sasl2#${LOCALBASE}/lib/sasl2#' ${WRKSRC}/argus/ArgusOutput.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/argus ${PREFIX}/sbin/argus
#   ${INSTALL_SCRIPT} ${WRKSRC}/bin/argusbug ${PREFIX}/bin/argusbug
    ${MKDIR} ${EXAMPLESDIR}/Archive ${EXAMPLESDIR}/Config \
         ${EXAMPLESDIR}/Deployment ${EXAMPLESDIR}/Startup \
         ${EXAMPLESDIR}/System
.for i in README \
    Archive/argusarchive \
    Config/argus.conf \
    Deployment/sample \
    Startup/argus Startup/README \
    System/crontab System/magic
    ${INSTALL_DATA} ${WRKSRC}/support/$i ${EXAMPLESDIR}/$i
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/
.for i in FAQ HOW-TO
    ${INSTALL_DATA} ${WRKSRC}/doc/$i ${DOCSDIR}/
.endfor
.endif
.if !defined(NOMAN)
#.for i in ${MAN1}
#   ${INSTALL_DATA} ${WRKSRC}/man/man1/$i ${MANPREFIX}/man/man1
#.endfor
.for i in ${MAN5}
    ${INSTALL_DATA} ${WRKSRC}/man/man5/$i ${MANPREFIX}/man/man5
.endfor
.for i in ${MAN8}
    ${INSTALL_DATA} ${WRKSRC}/man/man8/$i ${MANPREFIX}/man/man8
.endfor
.endif

.include <bsd.port.post.mk>