blob: 1be966c4d6698bd32d63ddd62b44001bf77b6309 (
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
56
57
|
# Created by: Felippe de Meirelles Motta <lippe@freebsdbrasil.com.br>
# $FreeBSD$
PORTNAME= weathermap
PORTVERSION= 1.1.1
PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= http://netmon.grnet.gr/weathermap/dist/
MAINTAINER= lippe@FreeBSD.org
COMMENT= This tool displays the utilization of the network links
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd
RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
mrtg:${PORTSDIR}/net-mgmt/mrtg
NO_BUILD= yes
USE_PERL5= yes
OPTIONS_DEFINE= WGET
WGET_DESC= WGET support
PORTDOCS= README LICENSE INSTALL
CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
--with-gd-inc=${LOCALBASE}/include
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MWGET}
RUN_DEPENDS+= wget:${PORTSDIR}/ftp/wget
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
-e 's|weathermap.conf|${PREFIX}/etc/weathermap.conf|g' \
${WRKSRC}/weathermap
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${PREFIX}/bin
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${PREFIX}/etc/weathermap
@${INSTALL_DATA} ${WRKSRC}/example/* ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/example/weathermap.conf ${PREFIX}/etc/weathermap/weathermap.sample.conf
@[ -f ${PREFIX}/etc/weathermap/weathermap.conf ] || \
${INSTALL_DATA} ${WRKSRC}/example/weathermap.conf ${PREFIX}/etc/weathermap/weathermap.conf
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|