summaryrefslogtreecommitdiffstats
path: root/net-mgmt/weathermap/Makefile
blob: 0ca3d0b0ef534fb31e9dd86f705e77b8a42b2e36 (plain)
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
58
59
60
# Created by: Felippe de Meirelles Motta <lippe@freebsdbrasil.com.br>
# $FreeBSD$

PORTNAME=	weathermap
PORTVERSION=	1.1.1
PORTREVISION=	6
CATEGORIES=	net-mgmt
MASTER_SITES=	https://netmon.grnet.gr/weathermap/dist/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	This tool displays the utilization of the network links

BROKEN=		unfetchable
DEPRECATED=	Distfile unavailable, website no longer exists
EXPIRATION_DATE=2016-04-04

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgd.so:${PORTSDIR}/graphics/gd
RUN_DEPENDS=	p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
		mrtg:${PORTSDIR}/net-mgmt/mrtg

USES=		perl5 shebangfix
NO_BUILD=	yes
NO_ARCH=	yes
SHEBANG_FILES=	weathermap

PORTSCOUT=	ignore:1

PORTDOCS=	README INSTALL

CONFIGURE_ARGS=	--with-gd-lib=${LOCALBASE}/lib \
		--with-gd-inc=${LOCALBASE}/include

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	WGET DOCS EXAMPLES
WGET_DESC=	WGET support
WGET_RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget

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 ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${ETCDIR}
	@${INSTALL_DATA} ${WRKSRC}/example/weathermap.conf ${STAGEDIR}${ETCDIR}/weathermap.conf.sample

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	@${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud