aboutsummaryrefslogtreecommitdiffstats
path: root/security/swatch/Makefile
blob: b2b2c68b09ed7bdc544a908590de7d0fa772231a (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:        swatch
# Date created:                 May 2 97
# Whom:                     jfitz
#
# $FreeBSD$
#

PORTNAME=   swatch
PORTVERSION=    3.1.1
PORTREVISION=   1
CATEGORIES= security sysutils
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= swatch

MAINTAINER= joseph@randomnetworks.com
COMMENT=    The Simple WATCHer and filter

BUILD_DEPENDS=  ${BUILD_DEPENDS_56} \
    ${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
    ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
    ${SITE_PERL}/${PERL_ARCH}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc

PERL_CONFIGURE= yes
CONFIGURE_ARGS= INSTALLMAN1DIR=${PREFIX}/man/man1
USE_RC_SUBR=    yes

MAN1=   swatch.1
MAN3=   Swatch::Actions.3 Swatch::Throttle.3

RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

post-patch:
    ${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
        ${FILESDIR}/swatch.sh > ${WRKSRC}/swatch.sh

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/swatch.sh ${PREFIX}/etc/rc.d

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS_56=   \
    ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
.endif
RUN_DEPENDS=    ${BUILD_DEPENDS}

.include <bsd.port.post.mk>