freebsd-ports/sysutils/pfstat/Makefile

42 lines
999 B
Makefile
Raw Normal View History

# Created by: Max Laier <max@love2party.net>
# $FreeBSD$
PORTNAME= pfstat
2013-07-12 05:40:16 +02:00
PORTVERSION= 2.5
2013-08-09 16:05:52 +02:00
PORTREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= http://www.benzedrine.cx/
2013-07-03 04:13:34 +02:00
MAINTAINER= araujo@FreeBSD.org
COMMENT= Utility to render graphical statistics for pf
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
MAKE_ARGS= "LD_GD=gd"
MAKE_ENV+= __MAKE_CONF=/dev/null
USES= iconv
USE_RC_SUBR= pfstatd
MAN8= pfstat.8 \
pfstatd.8
MANCOMPRESSED= no
PLIST_FILES= bin/pfstat \
bin/pfstatd
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \
${WRKSRC}/pfstat.[c8]
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${STAGEDIR}/${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/pfstatd/pfstatd ${STAGEDIR}/${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${STAGEDIR}/${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/pfstatd/pfstatd.8 ${STAGEDIR}/${PREFIX}/man/man8
.include <bsd.port.post.mk>