mail/postfix-postfwd: Allow setting interface/port in rc.conf
* Switch to DISTVERSION * Pet portlint and portclippy * Reformat Makefile with portfmt PR: 257108
This commit is contained in:
parent
1de9073690
commit
e1d1c6db74
2 changed files with 12 additions and 9 deletions
|
@ -1,8 +1,9 @@
|
|||
# Created by: Sahil Tandon <sahil@tandon.net>
|
||||
|
||||
PORTNAME= postfwd
|
||||
PORTVERSION= 2.03
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.03
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
PKGNAMEPREFIX= postfix-
|
||||
|
||||
|
@ -16,20 +17,20 @@ RUN_DEPENDS= p5-Net-DNS>=0:dns/p5-Net-DNS \
|
|||
p5-Net-Server>=0:net/p5-Net-Server
|
||||
|
||||
USES= perl5 shebangfix
|
||||
USE_GITHUB= yes
|
||||
USE_PERL5= run
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
SHEBANG_FILES= sbin/* tools/*.pl tools/hapolicy/*
|
||||
|
||||
NO_ARCH= yes
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
USE_GITHUB= yes
|
||||
SHEBANG_FILES= sbin/* tools/*.pl tools/hapolicy/*
|
||||
USE_PERL5= run
|
||||
NO_BUILD= yes
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES DOCS
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${STAGEDIR}${ETCDIR}
|
||||
|
|
|
@ -23,12 +23,14 @@ load_rc_config $name
|
|||
|
||||
: ${postfwd_enable:="NO"}
|
||||
: ${postfwd_flags="--shortlog --summary=600 --cache=600 --cache-rbl-timeout=3600 --cleanup-requests=1200 --cleanup-rbls=1800 --cleanup-rates=1200"}
|
||||
: ${postfwd_interface="127.0.0.1"}
|
||||
: ${postfwd_port="10040"}
|
||||
|
||||
pidfile=${postfwd_pidfile:="/var/run/${name}.pid"}
|
||||
required_files=${postfwd_config:="%%PREFIX%%/etc/${name}.conf"}
|
||||
|
||||
command=%%PREFIX%%/bin/${name}
|
||||
command_args="--daemon --file=${required_files} --pidfile=${pidfile} --interface=127.0.0.1 --port=10040 --user=nobody --group=nobody"
|
||||
command_args="--daemon --file=${required_files} --pidfile=${pidfile} --interface=${postfwd_interface} --port=${postfwd_port} --user=nobody --group=nobody"
|
||||
|
||||
start_precmd="${name}_check"
|
||||
status_cmd="${name}_status"
|
||||
|
|
Loading…
Reference in a new issue