Index: head/sysutils/pfstat/Makefile =================================================================== --- head/sysutils/pfstat/Makefile (revision 453076) +++ head/sysutils/pfstat/Makefile (revision 453077) @@ -1,43 +1,43 @@ # Created by: Max Laier # $FreeBSD$ PORTNAME= pfstat PORTVERSION= 2.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils net MASTER_SITES= http://www.benzedrine.cx/ MAINTAINER= araujo@FreeBSD.org COMMENT= Utility to render graphical statistics for pf LIB_DEPENDS= libgd.so:graphics/gd MAKE_ARGS= "LD_GD=gd" MAKE_ENV+= __MAKE_CONF=/dev/null USES= iconv USE_RC_SUBR= pfstatd PLIST_FILES= bin/pfstat \ bin/pfstatd \ man/man8/pfstat.8.gz \ man/man8/pfstatd.8.gz .include post-patch: @${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ ${WRKSRC}/pfstat.[c8] .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100070 @${REINPLACE_CMD} 's|altq/|net/&|' ${WRKSRC}/pf.c .endif 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 Index: head/sysutils/pfstat/files/pfstatd.in =================================================================== --- head/sysutils/pfstat/files/pfstatd.in (revision 453076) +++ head/sysutils/pfstat/files/pfstatd.in (revision 453077) @@ -1,22 +1,25 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: pfstatd # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable pfstatd: # pfstatd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable pfstatd . /etc/rc.subr name="pfstatd" rcvar=pfstatd_enable command="%%PREFIX%%/bin/${name}" load_rc_config ${name} + +: ${pfstatd_enable:="NO"} + run_rc_command "$1"