1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/net/ifstated/Makefile
Pav Lucistnik b10532a581 Add ifstated, a port of src/usr.sbin/ifstated from OpenBSD. It has been
modified to use kqueue/kevent and sysctl.

The ifstated daemon runs commands in response to network state changes,
which it determines by monitoring interface link state or running exter-
nal tests.  For example, it can be used with carp(4) to change running
services or to ensure that carp(4) interfaces stay in sync, or with pf(4)
to test server or link availability and modify translation or routing
rules.

PR:		ports/74096
Submitted by:	Matthew George <mdg@secureworks.net>
2004-11-21 03:08:36 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: ifstated
# Date created: 18 November 2004
# Whom: Matthew George <mdg@secureworks.net>
#
# $FreeBSD$
#
PORTNAME= ifstated
PORTVERSION= 20041117
CATEGORIES= net
MASTER_SITES= ftp://ftp.secureworks.net/pub/ifstated/
MAINTAINER= mdg@secureworks.net
COMMENT= Interface State daemon
INSTALL_TARGET= install install-man
MAN8= ifstated.8
PLIST_FILES= sbin/ifstated \
etc/ifstated.conf etc/rc.d/ifstated.sh
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
post-patch:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/ifstated.sh > ${WRKDIR}/ifstated.sh
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ifstated.c ${WRKSRC}/ifstated.8
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/ifstated.sh ${PREFIX}/etc/rc.d/ifstated.sh
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502113
IGNORE= need link state change notification changes from May 2004
.endif
.include <bsd.port.post.mk>