freebsd-ports/net/hsflowd/Makefile
Mathieu Arnold 999161a9ed Fixup some whitespace at the beginning of lines problems.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 13:18:17 +00:00

33 lines
968 B
Makefile

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= hsflowd
PORTVERSION= 1.24.1
CATEGORIES= net
MASTER_SITES= SF/host-sflow/Latest/ \
http://mirrors.rit.edu/zi/
MAINTAINER= zi@FreeBSD.org
COMMENT= Agent that exports metrics using the sFlow protocol
USES= fmake
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
MAKE_ENV= BINDIR=${PREFIX}/sbin INITDIR=${PREFIX}/etc/rc.d \
CONFDIR=${ETCDIR} INSTROOT=${STAGEDIR}
MAKE_JOBS_UNSAFE= yes
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' \
-e '/scripts\/hsflowd /d' \
-e 's|hsflowd.conf|hsflowd.conf.sample|g' \
${WRKSRC}/src/FreeBSD/Makefile ${WRKSRC}/src/sflow/Makefile \
${WRKSRC}/src/json/Makefile
@${REINPLACE_CMD} -e 's|/etc|${ETCDIR}|g' ${WRKSRC}/src/FreeBSD/hsflowd.h
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
${WRKSRC}/src/FreeBSD/scripts/hsflowd
@${MV} ${WRKSRC}/src/FreeBSD/scripts/hsflowd.conf \
${WRKSRC}/src/FreeBSD/scripts/hsflowd.conf.sample
.include <bsd.port.mk>