aboutsummaryrefslogtreecommitdiffstats
path: root/security/oinkmaster/Makefile
blob: a261c051caec00c6db13601d974a4d69438e1706 (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
# ex:ts=8
# Ports collection makefile for:    oinkmaster
# Date created:         Jan 28, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   oinkmaster
PORTVERSION=    2.0
CATEGORIES= security
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= question+fbsdports@closedsrc.org
COMMENT=    Help you update your snort rules after each update

RUN_DEPENDS=    wget:${PORTSDIR}/ftp/wget

NO_BUILD=   yes
USE_PERL5_RUN=  yes

PLIST_FILES=    bin/oinkmaster etc/oinkmaster.conf.sample

.if !defined(NOPORTDOCS)
PORTDOCS=   README
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500601
IGNORE=     needs at least perl 5.6.1
.endif

MAN1=       oinkmaster.1
MANCOMPRESSED=  no

post-patch:
    @${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},g' \
        -e 's,"tPf","tf",' \
        ${WRKSRC}/oinkmaster.pl

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/oinkmaster.pl ${PREFIX}/bin/oinkmaster
    ${INSTALL_DATA} ${WRKSRC}/oinkmaster.conf ${PREFIX}/etc/oinkmaster.conf.sample
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>