diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2012-11-18 16:33:31 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2012-11-18 16:33:31 +0000 |
commit | f81193cbbfbd47aa2604b8031b0f7f599445ac20 (patch) | |
tree | 1ffb9d9fff08f721f8e673e137d247bc6e798adc /www/fcgiwrap | |
parent | 36ecb8f48195ff40a7717440c1b733cfc18f1ed9 (diff) |
Notes
Diffstat (limited to 'www/fcgiwrap')
-rw-r--r-- | www/fcgiwrap/Makefile | 2 | ||||
-rw-r--r-- | www/fcgiwrap/files/fcgiwrap.in | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/www/fcgiwrap/Makefile b/www/fcgiwrap/Makefile index ea084044b5e6..ed0ed5a56563 100644 --- a/www/fcgiwrap/Makefile +++ b/www/fcgiwrap/Makefile @@ -7,7 +7,7 @@ PORTNAME= fcgiwrap PORTVERSION= 1.0.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= www MASTER_SITES= http://cloud.github.com/downloads/gnosek/fcgiwrap/ diff --git a/www/fcgiwrap/files/fcgiwrap.in b/www/fcgiwrap/files/fcgiwrap.in index c4466f164d55..9c7fa7a6c5be 100644 --- a/www/fcgiwrap/files/fcgiwrap.in +++ b/www/fcgiwrap/files/fcgiwrap.in @@ -13,7 +13,6 @@ # fcgiwrap_enable="YES" # # You can fine tune others variables too: -# fcgiwrap_fib="NONE" # fcgiwrap_socket="unix:/var/run/fcgiwrap.sock" # this could also be: # - tcp:[ipv4_addr]:port (for ipv4) @@ -42,8 +41,13 @@ name="fcgiwrap" rcvar=fcgiwrap_enable fcgiwrap_setfib() { - sysctl net.fibs >/dev/null 2>&1 || return 0 + if command -v check_namevarlist > /dev/null 2>&1; then + check_namevarlist fib && return 0 + fi + + ${SYSCTL} net.fibs >/dev/null 2>&1 || return 0 + fcgiwrap_fib=${fcgiwrap_fib:-"NONE"} case "$fcgiwrap_fib" in [Nn][Oo][Nn][Ee]) ;; @@ -80,7 +84,6 @@ load_rc_config $name # These are just the defaults, they might get overriden for a specific profile. fcgiwrap_enable=${fcgiwrap_enable:-"NO"} -fcgiwrap_fib=${fcgiwrap_fib:-"NONE"} fcgiwrap_user=${fcgiwrap_user:-"root"} fcgiwrap_socket=${fcgiwrap_socket:-"unix:/var/run/fcgiwrap/fcgiwrap.sock"} |