Index: head/net-mgmt/statsite/Makefile =================================================================== --- head/net-mgmt/statsite/Makefile (revision 479291) +++ head/net-mgmt/statsite/Makefile (revision 479292) @@ -1,36 +1,45 @@ # $FreeBSD$ PORTNAME= statsite PORTVERSION= 0.8.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= rbarabas@rbarabas.info COMMENT= C implementation of statsd LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= autoreconf +USES= autoreconf python:env GNU_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= armon MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" USERS= statsd GROUPS= statsd +USE_RC_SUBR= statsite OPTIONS_DEFINE= DOCS PORTDOCS= README.md + +post-patch: + @${REINPLACE_CMD} -e 's,python,${PYTHON_CMD},' \ + -e 's,/usr/libexec,/usr/local/share,' \ + -e '/daemonize/d' \ + -e '/pid_file/d' \ + ${WRKSRC}/rpm/statsite.conf.example post-install: ${INSTALL_DATA} ${WRKSRC}/rpm/statsite.conf.example \ ${STAGEDIR}${PREFIX}/etc/statsite.conf.sample post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} .include Index: head/net-mgmt/statsite/files/statsite.in =================================================================== --- head/net-mgmt/statsite/files/statsite.in (nonexistent) +++ head/net-mgmt/statsite/files/statsite.in (revision 479292) @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: statsite +# REQUIRE: NETWORKING SYSLOG +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# statsite_enable (bool): Set to NO by default. +# Set it to YES to enable statsite. +# statsite_config (path): Set to %%PREFIX%%/etc/statsite.conf +# by default. + +. /etc/rc.subr + +name=statsite +rcvar=statsite_enable + +load_rc_config $name + +: ${statsite_enable:="NO"} +: ${statsite_config="%%PREFIX%%/etc/statsite.conf"} + +pidfile=/var/run/${name}.pid +command="/usr/sbin/daemon" +command_args="-f -u statsd -P ${pidfile} %%PREFIX%%/bin/statsite -f ${statsite_config}" + +run_rc_command "$1" Property changes on: head/net-mgmt/statsite/files/statsite.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property