summaryrefslogtreecommitdiffstats
path: root/net/ifstated/Makefile
blob: 1e8ab0c46b9995b975be03eb839cb74c3784c136 (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
# Created by: Matthew George <mdg@secureworks.net>
# $FreeBSD$

PORTNAME=	ifstated
PORTVERSION=	5.1
PORTEPOCH=	1
CATEGORIES=	net
MASTER_SITES=	http://christianserving.org/ports/net/ifstated/

MAINTAINER=	ports@christianserving.org
COMMENT=	Interface state daemon

LIB_DEPENDS=	event-1:${PORTSDIR}/devel/libevent

PLIST_FILES=	etc/ifstated.conf-sample \
		sbin/ifstated \
		man/man5/ifstated.conf.5.gz \
		man/man8/ifstated.8.gz

SUB_FILES=	pkg-message

USE_RC_SUBR=	ifstated

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/ifstated.conf.5

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ifstated ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/ifstated.conf-sample ${STAGEDIR}${PREFIX}/etc
	${INSTALL_MAN} ${WRKSRC}/ifstated.conf.5 ${STAGEDIR}${PREFIX}/man/man5
	${INSTALL_MAN} ${WRKSRC}/ifstated.8 ${STAGEDIR}${PREFIX}/man/man8

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