ports/127038: [patch] mute www/apache22 apache22.sh script with regarding to sysctl call

Edwin Groothuis edwin at mavetju.org
Tue Sep 2 06:00:03 UTC 2008


>Number:         127038
>Category:       ports
>Synopsis:       [patch] mute www/apache22 apache22.sh script with regarding to sysctl call
>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:   Tue Sep 02 06:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 7.0-RELEASE-p1 i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Wed May 28 08:12:56 EST 2008 edwin at k7.mavetju:/usr/src/sys/i386/compile/k7 i386


>Description:

<Tabmow> sysctl: unknown oid 'net.fibs'
<Tabmow> Starting apache22.
<Tabmow> getting this after the recent upgrading of apache
<andy_t> Mavvie: the "2>&1" and "> /dev/null" should be swapped
<andy_t> Mavvie: See http://lists.freebsd.org/pipermail/freebsd-questions/2003-October/022122.html

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/apache22/Makefile,v
retrieving revision 1.222
diff -u -r1.222 Makefile
--- Makefile	31 Aug 2008 23:00:27 -0000	1.222
+++ Makefile	2 Sep 2008 05:58:50 -0000
@@ -9,7 +9,7 @@
 
 PORTNAME=	apache
 PORTVERSION=	2.2.9
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD}
 DISTNAME=	httpd-${PORTVERSION}
Index: files/apache22.sh.in
===================================================================
RCS file: /home/pcvs/ports/www/apache22/files/apache22.sh.in,v
retrieving revision 1.6
diff -u -r1.6 apache22.sh.in
--- files/apache22.sh.in	31 Aug 2008 23:00:27 -0000	1.6
+++ files/apache22.sh.in	2 Sep 2008 05:58:51 -0000
@@ -54,7 +54,7 @@
 	retcode=0
 	if checkyesno apache22_http_accept_enable
 	then
-		/sbin/kldstat -v | grep accf_http 2>&1 > /dev/null
+		/sbin/kldstat -v | grep accf_http >/dev/null 2>&1
 		retcode=${?}
 		if [ ${retcode} -ne 0 ]
 		then
@@ -177,7 +177,7 @@
 }
 
 apache22_checkfib () {
-	sysctl net.fibs 2>&1 > /dev/null
+	sysctl net.fibs >/dev/null 2>&1
 	ret=$? 
  	[ $ret -gt 0 ] && return 0 
 	if [ "x$apache22_fib" != "xNO" ]

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list