mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 05:00:30 -04:00
- Add LICENSE - Remove pkg-install script, move directory creation to pkg-plist - Use @sample keyword for config files PR: 194019 Submitted by: TEUBEL Györg y<tgyurci@gmail.com> Approved by: maintainer
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: postgrey
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: mail
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable postgrey:
|
|
#
|
|
# postgrey_enable (bool) Set to 'YES' to enable
|
|
# Default: NO
|
|
# postgrey_dbdir (path) Location of postgrey database files.
|
|
# Default: %%PG_DBDIR%%
|
|
# postgrey_flags (extra args) Additional command-line parameters.
|
|
# Default: --inet=10023
|
|
#
|
|
# Note:
|
|
#
|
|
# postgrey_flags must include a --inet or --unix option or postgrey will
|
|
# not run. Change the --dbdir option with postgrey_dbdir. Please see
|
|
# the postgrey(1) man page or perldoc postgrey for more information.
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=postgrey
|
|
rcvar=postgrey_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${postgrey_enable:=NO}
|
|
: ${postgrey_dbdir:=%%PG_DBDIR%%}
|
|
: ${postgrey_flags:=--inet=10023}
|
|
|
|
command=%%PREFIX%%/sbin/postgrey
|
|
pidfile=%%PG_RUNDIR%%/postgrey.pid
|
|
required_dirs="${postgrey_dbdir} %%PG_RUNDIR%%"
|
|
|
|
command_args="-d --pidfile=${pidfile} --dbdir=${postgrey_dbdir}"
|
|
|
|
run_rc_command "$1"
|