Subject: pkg/6930: apache package fails to install properly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@proven.weird.com>
List: netbsd-bugs
Date: 02/02/1999 13:24:46
>Number: 6930
>Category: pkg
>Synopsis: apache package fails to install properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 2 10:35:02 1999
>Last-Modified:
>Originator: Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release: pkgsrc-current (Mon Feb 1 08:24:30 EST 1999)
>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
>Audit-Trail:
>Unformatted: