summaryrefslogtreecommitdiff
path: root/services/applications/fcgiwrap.cf
diff options
context:
space:
mode:
Diffstat (limited to 'services/applications/fcgiwrap.cf')
-rw-r--r--services/applications/fcgiwrap.cf17
1 files changed, 11 insertions, 6 deletions
diff --git a/services/applications/fcgiwrap.cf b/services/applications/fcgiwrap.cf
index 7c491c0..7c9c809 100644
--- a/services/applications/fcgiwrap.cf
+++ b/services/applications/fcgiwrap.cf
@@ -1,11 +1,16 @@
bundle agent fcgiwrap(user, group, mode)
{
+ vars:
+ freebsd::
+ "rc_conf_lines" slist => {
+ "fcgiwrap_enable=\"YES\"",
+ "fcgiwrap_user=\"$(user)\"",
+ "fcgiwrap_socket_mode=\"$(mode)\"",
+ "fcgiwrap_socket_owner=\"$(user)\"",
+ "fcgiwrap_socket_group=\"$(group)\"",
+ };
methods:
freebsd::
- "any" usebundle => install_package("fcgiwrap");
- "any" usebundle => add_rc_conf_line("fcgiwrap_enable=\"YES\"");
- "any" usebundle => add_rc_conf_line("fcgiwrap_user=\"$(user)\"");
- "any" usebundle => add_rc_conf_line("fcgiwrap_mode=\"$(mode)\"");
- "any" usebundle => add_rc_conf_line("fcgiwrap_owner=\"$(user)\"");
- "any" usebundle => add_rc_conf_line("fcgiwrap_group=\"$(group)\"");
+ "freebsd" usebundle => install_package("$(this.bundle)", "fcgiwrap");
+ "freebsd" usebundle => add_rc_conf_line("$(this.bundle)", "$(fcgiwrap.rc_conf_lines)");
}