ports/90103: [PATCH] add support for accf_http module loading
Melvyn Sopacua
melvyn at melvyn.homeunix.net
Thu Dec 8 13:30:50 UTC 2005
>Number: 90103
>Category: ports
>Synopsis: [PATCH] add support for accf_http module loading
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 08 13:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Melvyn Sopacua
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD sarevok.lan.melvyn.homeunix.org 6.0-STABLE FreeBSD 6.0-STABLE #1: Wed Dec 7 14:57:25 UTC 2005 root at sarevok:/usr/obj/stable/usr/current/src/sys/SAREVOK i386
>Description:
(2)No such file or directory: Failed to enable the 'httpready' Accept Filter
Ref: http://www.mail-archive.com/dev@httpd.apache.org/msg24221.html
>How-To-Repeat:
portinstall www/apache22
echo 'apache22_enable="YES"' >>/etc/rc.conf
/usr/local/etc/rc.d/apache22.sh start
>Fix:
Index: files/apache.sh
===================================================================
RCS file: /home/ncvs/ports/www/apache22/files/apache.sh,v
retrieving revision 1.9
diff -u -r1.9 apache.sh
--- files/apache.sh 3 Dec 2005 22:02:58 -0000 1.9
+++ files/apache.sh 8 Dec 2005 13:18:15 -0000
@@ -22,7 +22,9 @@
# Extra flags passed to start command.
# apache22limits_args (str): Default to "-e -C daemon"
# Arguments of pre-start limits run.
-#
+# apache22_httpaccept_enable (bool): Set to "NO" by default.
+# Set to yes to check for accf_http kernel
+# module on start up and load if not loaded.
. %%RC_SUBR%%
name="apache22"
@@ -40,6 +42,7 @@
[ -z "$apache22_flags" ] && apache22_flags=""
[ -z "$apache22limits_enable" ] && apache22limits_enable="NO"
[ -z "$apache22limits_args" ] && apache22limits_args="-e -C daemon"
+[ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="NO"
load_rc_config $name
@@ -57,6 +60,13 @@
if test -f %%PREFIX%%/sbin/envvars
then
. %%PREFIX%%/sbin/envvars
+ fi
+ if checkyesno apache22_http_accept_enable
+ then
+ if ! /sbin/kldstat -q -m accf_http
+ then
+ /sbin/kldload accf_http
+ fi
fi
if checkyesno apache22limits_enable
then
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list