aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mirmon/Makefile
blob: d978c44d67d7cbed0879bb681b088e408f8c8d9e (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:    mirmon
# Date created:         Jun 15, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   mirmon
PORTVERSION=    1.38
CATEGORIES= misc
MASTER_SITES=   http://jadawin.tuxaco.net/freebsd/ \
        http://www.cs.uu.nl/people/henkp/mirmon/src/

MAINTAINER= jadawin@FreeBSD.org
COMMENT=    Monitor the status of mirrors

NO_BUILD=   yes
USE_PERL5_RUN=  yes

SUB_FILES=  pkg-message
SUB_LIST=   PREFIX=${PREFIX}

PLIST_FILES=    bin/mirmon

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

post-patch:
    @${REINPLACE_CMD} -e "s,/etc,${LOCALBASE}/etc," \
        -e "s,/sw/bin/perl,/usr/bin/env perl," \
        -e "s,/sw,${LOCALBASE}," \
        ${WRKSRC}/mirmon ${WRKSRC}/mirmon.html

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    ${CP} -R ${WRKSRC}/countries.list ${WRKSRC}/icons ${DATADIR}
    @${FIND} ${DATADIR} ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${DATADIR} -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${CP} ${WRKSRC}/mirmon.html ${DOCSDIR}
.endif

post-install:
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>