aboutsummaryrefslogtreecommitdiffstats
path: root/security/aimsniff/Makefile
blob: f667746f0a7a727ce8c3217844179d9385628489 (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
# New ports collection makefile for: aimsniff
# Date created:        4 December 2004
# Whom:                Andrew Marks (andrew@amrx.net)
#
# $FreeBSD$

PORTNAME=   aimsniff
PORTVERSION=    0.9d
CATEGORIES= security
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aimsniff
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= andrew@amrx.net
COMMENT=    AOL Instant Messanger Sniffing and Reading Tool

RUN_DEPENDS=    ${SITE_PERL}/${PERL_ARCH}/Net/Pcap.pm:${PORTSDIR}/net/p5-Net-Pcap\
        ${SITE_PERL}/NetPacket.pm:${PORTSDIR}/net/p5-NetPacket\
        ${SITE_PERL}/${PERL_ARCH}/auto/DBI/DBI.so:${PORTSDIR}/databases/p5-DBI\
        ${SITE_PERL}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String\
        ${SITE_PERL}/Proc/Daemon.pm:${PORTSDIR}/devel/p5-Proc-Daemon\
        ${SITE_PERL}/Proc/Simple.pm:${PORTSDIR}/devel/p5-Proc-Simple\
        ${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog

OPTIONS=    SUID_ROOT "Install aimsniff with set-uid bit" off

PORTDOCS=   README table.struct rc.aimsniff

NO_BUILD=   yes
USE_PERL5=  yes

PLIST_FILES=    bin/aimsniff

.include <bsd.port.pre.mk>

.if !exists(${LOCALBASE}/lib/perl5/${PERL_VERSION}/${PERL_ARCH}/GDBM_File.pm)
#IGNORE=        "You need perl compiled with GDBM support"
.endif

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/aimSniff.pl ${PREFIX}/bin/aimsniff
.if defined(WITH_SUID_ROOT)
    ${CHMOD} u+s ${PREFIX}/bin/aimsniff
.else
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>