diff options
author | hrs <hrs@FreeBSD.org> | 2012-11-19 00:33:31 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2012-11-19 00:33:31 +0800 |
commit | 195039a651a26cefc114b1d0bac6df9a0e101bf6 (patch) | |
tree | 1ffb9d9fff08f721f8e673e137d247bc6e798adc /www/cblog | |
parent | 03d9a748d38e91280f908d9280c3633b691f8867 (diff) | |
download | freebsd-ports-graphics-195039a651a26cefc114b1d0bac6df9a0e101bf6.tar.gz freebsd-ports-graphics-195039a651a26cefc114b1d0bac6df9a0e101bf6.tar.zst freebsd-ports-graphics-195039a651a26cefc114b1d0bac6df9a0e101bf6.zip |
Fix rc.d script to support systems before and after ${name}_fib is introduced
into rc.subr. Bump PORTREVISION.
Feature safe: yes
Diffstat (limited to 'www/cblog')
-rw-r--r-- | www/cblog/Makefile | 1 | ||||
-rw-r--r-- | www/cblog/files/cblog.in | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/www/cblog/Makefile b/www/cblog/Makefile index ffbe9952c85..383f0a11f94 100644 --- a/www/cblog/Makefile +++ b/www/cblog/Makefile @@ -7,6 +7,7 @@ PORTNAME= cblog PORTVERSION= 0.1.6 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://files.etoilebsd.net/cblog/ diff --git a/www/cblog/files/cblog.in b/www/cblog/files/cblog.in index 94accfc9990..785eaa86179 100644 --- a/www/cblog/files/cblog.in +++ b/www/cblog/files/cblog.in @@ -13,7 +13,6 @@ # cblog_enable=YES # # You can fine tune others variables too: -# cblog_fib="NONE" # cblog_socket="unix:/var/run/cblog/cblog.sock" # syntax can be : # unix:/patch/to/socket @@ -21,8 +20,13 @@ # Use cblog_user to run cblog as user cblog_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 + + cblog_fib=${cblog_fib:-"NONE"} case "$cblog_fib" in [Nn][Oo][Nn][Ee]) ;; @@ -48,7 +52,6 @@ start_precmd="cblog_precmd" load_rc_config $name cblog_enable=${cblog_enable:-"NO"} -cblog_fib=${cblog_fib:-"NONE"} cblog_user=${cblog_user:-"root"} cblog_socket=${cblog_socker:-"unix:/var/run/cblog/cblog.sock"} |