- update to 0.1.5

- Changes:
fix segfault with HEAD requests
fix potential security problem in comments
allow to self start the fastcgi
Can now be used both as a fastcgi and a cgi
add rc script
This commit is contained in:
Baptiste Daroussin 2010-11-29 11:30:11 +00:00
parent 622e56de0c
commit 4d977d352e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265370
4 changed files with 67 additions and 6 deletions

View File

@ -6,9 +6,10 @@
#
PORTNAME= cblog
PORTVERSION= 0.1.2
PORTVERSION= 0.1.5
CATEGORIES= www
MASTER_SITES= http://cloud.github.com/downloads/bapt/cblog/
MASTER_SITES= http://git.etoilebsd.net/cblog/snapshot/ \
LOCAL/bapt
MAINTAINER= bapt@FreeBSD.org
COMMENT= Simple weblog in C using markdown
@ -19,6 +20,8 @@ LIB_DEPENDS= fcgi.0:${PORTSDIR}/www/fcgi
LICENSE= BSD
USE_RC_SUBR= cblog
PLIST_FILES= libexec/cblog.fcgi \
bin/cblogctl \
etc/cblog.conf.sample

View File

@ -1,3 +1,2 @@
MD5 (cblog-0.1.2.tar.gz) = f42f67ad017a4aea5ef3b81054a6c550
SHA256 (cblog-0.1.2.tar.gz) = 13d3714040d0008b1fe20d5828e300ae5f7c2571a962eaae65b4d8f77bfae1af
SIZE (cblog-0.1.2.tar.gz) = 36666
SHA256 (cblog-0.1.5.tar.gz) = 14dba575fd89eb259ecba08497bfc2d370e1be58b974584dd9cffa1d4fa97321
SIZE (cblog-0.1.5.tar.gz) = 37088

59
www/cblog/files/cblog.in Normal file
View File

@ -0,0 +1,59 @@
#!/bin/sh
# $FreeBSD$
#
# cblog.fcgi startup script
#
# PROVIDE: cblog
# REQUIRE: login
# KEYWORK: shutdown
# Add the following to /etc/rc.conf[.local] to enable this service
#
# 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
# tcp:IP:PORT (ipv6 and ipv4 supported)
# Use cblog_user to run cblog as user
cblog_setfib() {
sysctl net.fibs >/dev/null 2>&1 || return 0
case "$cblog_fib" in
[Nn][Oo][Nn][Ee])
;;
*)
command="setfib -F ${cblog_fib} ${command}"
;;
esac
}
cblog_precmd() {
cblog_setfib
test -d /var/run/cblog || mkdir -p /var/run/cblog
if [ -n "${cblog_user}" ]; then
chown -R ${cblog_user} /var/run/cblog
fi
}
. /etc/rc.subr
name="cblog"
rcvar=`set_rcvar`
command="%%PREFIX%%/libexec/cblog.fcgi"
start_precmd="cblog_precmd"
load_rc_config $name
cblog_enable=${cblog_enable:-"NO"}
cblog_fib=${cblog_fib:-"NONE"}
cblog_socket=${cblog_socker:-"unix:/var/run/cblog/cblog.sock"}
command_args=${cblog_socket}
run_rc_command "$1"

View File

@ -1,4 +1,4 @@
simple weblog written in C using markdown to write posts and tinycdb to store
them
WWW: http://github.com/bapt/cblog
WWW: http://git.etoilebsd.net/cblog/about