Index: games/automuteus/Makefile =================================================================== --- games/automuteus/Makefile +++ games/automuteus/Makefile @@ -2,6 +2,7 @@ PORTNAME= automuteus DISTVERSION= 6.10.1 +PORTREVISION= 1 CATEGORIES= games MAINTAINER= nc@FreeBSD.org @@ -64,10 +65,14 @@ stretchr:objx:v0.2.0:stretchr_objx/vendor/github.com/stretchr/objx \ stretchr:testify:v1.6.1:stretchr_testify/vendor/github.com/stretchr/testify -PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}/config.txt +PLIST_FILES= bin/${PORTNAME} \ + "@sample etc/${PORTNAME}/config.txt.sample" \ + /var/log/${PORTNAME}/logs.txt post-install: - @${MKDIR} ${STAGEDIR}${PREFIX}/etc/automuteus - @${CP} ${FILESDIR}/config.txt ${STAGEDIR}${PREFIX}/etc/automuteus + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} + @${CP} ${FILESDIR}/config.txt ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.txt.sample + @${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} + @${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/logs.txt .include Index: games/automuteus/files/automuteus.in =================================================================== --- games/automuteus/files/automuteus.in +++ games/automuteus/files/automuteus.in @@ -19,7 +19,7 @@ : ${automuteus_enable:="NO"} : ${automuteus_conf:="%%PREFIX%%/etc/automuteus/config.txt"} -: ${automuteus_log:="/var/log/automuteus.log"} +: ${automuteus_log:="/var/log/automuteus"} command="%%PREFIX%%/bin/automuteus" pidfile=/var/run/${name}.pid @@ -31,7 +31,7 @@ /usr/sbin/daemon \ -p ${pidfile} \ /usr/bin/env \ - "CONFIG_FILE=${automuteus_conf}" \ + "CONFIG_PATH=${automuteus_conf}" \ "LOG_PATH=${automuteus_log}" \ ${command} }