aboutsummaryrefslogtreecommitdiffstats
path: root/security/scanhill/Makefile
blob: c626cf20659fce3276439e1ad9857438a794884f (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
# New ports collection makefile for:    scanhill
# Date created:     2007-06-18
# Whom:         garga
#
# $FreeBSD$
#

PORTNAME=   scanhill
DISTVERSION=    0.5-p1
CATEGORIES= security net-im
MASTER_SITES=   http://www.enderunix.org/scanhill/ \
        http://www.sourcefiles.org/Networking/Security/Sniffers/ \
        http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/s/sc/scanhill/

MAINTAINER= garga@FreeBSD.org
COMMENT=    Microsoft Messenger Protocol Sniffer

WRKSRC=     ${WRKDIR}/${PORTNAME}

GNU_CONFIGURE=  yes
USE_ICONV=  yes

PORTDOCS=   README.txt INSTALL.txt mysql.sql

OPTIONS=    MYSQL "Enable MySQL support" off

.include <bsd.port.pre.mk>

.if defined(WITH_MYSQL)
CONFIGURE_ARGS+=    --enable-mysql
USE_MYSQL=      yes
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/scanhill ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/scanhill.conf ${PREFIX}/etc/scanhill.conf-dist
.if !exists(${PREFIX}/etc/scanhill.conf)
    ${INSTALL_DATA} ${WRKSRC}/scanhill.conf ${PREFIX}/etc/
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
.endif

.include <bsd.port.post.mk>