NetBSD Problem Report #6930
Received: (qmail 25913 invoked from network); 2 Feb 1999 18:24:50 -0000
Message-Id: <19990202182446.8948310@proven.weird.com>
Date: Tue, 2 Feb 1999 13:24:46 -0500 (EST)
From: woods@proven.weird.com
Reply-To: woods@weird.com
To: gnats-bugs@gnats.netbsd.org
Subject: apache package fails to install properly
X-Send-Pr-Version: 3.95
>Number: 6930
>Category: pkg
>Synopsis: apache package fails to install properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 02 10:35:02 +0000 1999
>Closed-Date: Fri Feb 12 04:16:44 +0000 1999
>Last-Modified: Fri Feb 12 04:17:12 +0000 1999
>Originator: Greg A. Woods
>Release: pkgsrc-current (Mon Feb 1 08:24:30 EST 1999)
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
NetBSD-1.3.3 or NetBSD-1.3I
>Description:
The following errors appear when running "pkg_add apache*":
Syntax error: "fi" unexpected (expecting "then")
pkg_add: command 'if [ ! -f /usr/etc/httpd/access.conf ]; cp -p /usr/etc/httpd/access.conf.default /usr/etc/httpd/access.conf; fi' failed
Syntax error: "fi" unexpected (expecting "then")
pkg_add: command 'if [ ! -f /usr/etc/httpd/httpd.conf ]; cp -p /usr/etc/httpd/httpd.conf.default /usr/etc/httpd/httpd.conf; fi' failed
Syntax error: "fi" unexpected (expecting "then")
pkg_add: command 'if [ ! -f /usr/etc/httpd/magic ]; cp -p /usr/etc/httpd/magic.default /usr/etc/httpd/magic; fi' failed
Syntax error: "fi" unexpected (expecting "then")
pkg_add: command 'if [ ! -f /usr/etc/httpd/mime.types ]; cp -p /usr/etc/httpd/mime.types.default /usr/etc/httpd/mime.types; fi' failed
Syntax error: "fi" unexpected (expecting "then")
pkg_add: command 'if [ ! -f /usr/etc/httpd/srm.conf ]; cp -p /usr/etc/httpd/srm.conf.default /usr/etc/httpd/srm.conf; fi' failed
>How-To-Repeat:
create the apache package and try installing it on a fresh and
clean system.
>Fix:
apply the following patch
Index: www/apache/pkg/PLIST
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/www/apache/pkg/PLIST,v
retrieving revision 1.4
diff -c -r1.4 www/apache/pkg/PLIST
*** www/apache/pkg/PLIST 1999/01/07 22:59:20 1.4
--- www/apache/pkg/PLIST 1999/02/02 18:06:53
***************
*** 3,17 ****
bin/htdigest
bin/htpasswd
etc/httpd/access.conf.default
! @exec if [ ! -f %D/etc/httpd/access.conf ]; cp -p %D/etc/httpd/access.conf.default %D/etc/httpd/access.conf; fi
etc/httpd/httpd.conf.default
! @exec if [ ! -f %D/etc/httpd/httpd.conf ]; cp -p %D/etc/httpd/httpd.conf.default %D/etc/httpd/httpd.conf; fi
etc/httpd/magic.default
! @exec if [ ! -f %D/etc/httpd/magic ]; cp -p %D/etc/httpd/magic.default %D/etc/httpd/magic; fi
etc/httpd/mime.types.default
! @exec if [ ! -f %D/etc/httpd/mime.types ]; cp -p %D/etc/httpd/mime.types.default %D/etc/httpd/mime.types; fi
etc/httpd/srm.conf.default
! @exec if [ ! -f %D/etc/httpd/srm.conf ]; cp -p %D/etc/httpd/srm.conf.default %D/etc/httpd/srm.conf; fi
include/httpd/alloc.h
include/httpd/ap.h
include/httpd/ap_compat.h
--- 3,17 ----
bin/htdigest
bin/htpasswd
etc/httpd/access.conf.default
! @exec if [ ! -f %D/etc/httpd/access.conf ]; then cp -p %D/etc/httpd/access.conf.default %D/etc/httpd/access.conf; fi
etc/httpd/httpd.conf.default
! @exec if [ ! -f %D/etc/httpd/httpd.conf ]; then cp -p %D/etc/httpd/httpd.conf.default %D/etc/httpd/httpd.conf; fi
etc/httpd/magic.default
! @exec if [ ! -f %D/etc/httpd/magic ]; then cp -p %D/etc/httpd/magic.default %D/etc/httpd/magic; fi
etc/httpd/mime.types.default
! @exec if [ ! -f %D/etc/httpd/mime.types ]; then cp -p %D/etc/httpd/mime.types.default %D/etc/httpd/mime.types; fi
etc/httpd/srm.conf.default
! @exec if [ ! -f %D/etc/httpd/srm.conf ]; then cp -p %D/etc/httpd/srm.conf.default %D/etc/httpd/srm.conf; fi
include/httpd/alloc.h
include/httpd/ap.h
include/httpd/ap_compat.h
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: hubertf
State-Changed-When: Thu Feb 11 20:16:44 PST 1999
State-Changed-Why:
I've fixed the shell code, thanks for telling.
- Hubert
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.