summaryrefslogtreecommitdiffstats
path: root/net/portmon/Makefile
blob: c32bb88e3a5cad2d238ba15ab88c49433d56f08c (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
# New ports collection makefile for:	portmon
# Date created:				18.06.2003
# Whom:					Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=	portmon
PORTVERSION=	2.0
CATEGORIES=	net
MASTER_SITES=	http://www.aboleo.net/software/portmon/downloads/

MAINTAINER=	krion@FreeBSD.org
COMMENT=	Daemon that monitor network services

GNU_CONFIGURE=	yes
USE_GETOPT_LONG=	yes
USE_REINPLACE=	yes
USE_SIZE=	yes

MAN8=		portmon.8

post-patch:
	@${REINPLACE_CMD} -e \
	 's|/etc|${PREFIX}/etc|g' \
		 ${WRKSRC}/extras/${PORTNAME}.8

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \
		${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/extras/portmon.8 \
		${PREFIX}/man/man8
	${INSTALL_DATA} ${WRKSRC}/extras/portmon.hosts.sample \
		${PREFIX}/etc
	@${ECHO} "------------------------------------------------------------"
	@${ECHO} "Sample of configuration file placed at"
	@${ECHO} "${PREFIX}/etc/portmon.hosts.sample"
	@${ECHO} "------------------------------------------------------------

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in README
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

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