1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/mail/qpopper/files/qpopper.in
Rene Ladan 31d208c0bd - Stage support (hackish...)
- Rename :: patchfiles [1]
- Merge pkg-req and scripts/pre-install into pkg-install [1]
- Replace tab by space in WWW: line [1]
- Clean up rc script [1]
- Add USE_GCC because clang does not like -freg-struct-return (yet)
- Use USERS and GROUPS [1]
- Drop empty QPOPAUTH_SETUID option
- Fix USE_OPENSSL usage [1]
- Replace knobs by options [1]
- Merge install-conf-file target into post-install target

PR:		ports/185285 [1]
Submitted by:	Takefu <takefu@airport.fm>
Approved by:	portmgr (mostly infastructure fixes)
2014-04-04 23:45:06 +00:00

22 lines
453 B
Bash

#!/bin/sh
# PROVIDE: qpopper
# REQUIRE: DAEMON
# KEYWORD: shutdown
# qpopper_enable (bool): Set to NO by default.
# Set it to YES to enable qpopper.
# qpopper_flags (str): Set to "-f %%PREFIX%%/etc/qpopper.config" by default.
. /etc/rc.subr
name=qpopper
rcvar=qpopper_enable
load_rc_config ${name}
: ${qpopper_enable:="NO"}
: ${qpopper_flags:="110 -S -f %%PREFIX%%/etc/${name}.config"}
command="%%PREFIX%%/libexec/${name}"
run_rc_command "$1"