Subject: Failure Installing ap-ssl Package
To: None <netbsd-help@netbsd.org>
From: Nick Boyce <nick@glimmer.demon.co.uk>
List: netbsd-help
Date: 10/12/2003 17:59:28
A few days ago (7th.Oct) I tried adding SSL capability to Apache 1.3.x 
on a NetBSD 1.6.1-i386 box by installing precompiled package "ap_ssl", 
but this seem to have failed, due to various prerequisite directories 
being missing.  

Here's the relevant content of my local package archive :

/usr/local/pkg# ls ap*
ap-php-4.2.3.tgz
ap-ssl-2.8.12nb1.tgz
apache-1.3.27nb3.tgz

Here's what happens when I try installing ap_ssl :

/usr/local/pkg# pkg_add ap-ssl*
gzip: stdin: unexpected end of file
tar: Unexpected EOF on archive file
tar: child returned status 1
tar: can't add file share/doc/mod_ssl/README.mkcert : No such file or 
directory
tar: can't add file share/examples/mod_ssl/ssl.crl/Makefile.crl : No 
such file or directory
tar: can't add file share/examples/mod_ssl/ssl.crl/README.CRL : No such 
file or directory
tar: can't add file share/examples/mod_ssl/ssl.crt/Makefile.crt : No 
such file or directory
tar: can't add file share/examples/mod_ssl/ssl.crt/README.CRT : No such 
file or directory
tar: can't add file share/examples/mod_ssl/ssl.crt/ca-bundle.crt : No 
such file or directory
  [... lots more similar errors ...]
tar: can't add file share/httpd/htdocs/manual/mod/mod_ssl/apache_pb.gif 
: No such file or directory
tar: can't add file share/httpd/htdocs/manual/mod/mod_ssl/feather.jpg : 
No such file or directory
tar: can't add file share/httpd/htdocs/manual/mod/mod_ssl/index.html : 
No such file or directory
  [...]
tar: can't add file share/mod_ssl/cca.sh : No such file or directory
tar: can't add file share/mod_ssl/gid-mkcert.sh : No such file or 
directory
tar: can't add file share/mod_ssl/loadcacert.cgi : No such file or 
directory
tar: can't add file share/mod_ssl/sign.sh : No such file or directory
Installing configuration files for ap-ssl-2.8.12nb1:


===========================================================================
$NetBSD: MESSAGE,v 1.4 2002/11/19 23:03:53 jlam Exp $

You will need to generate certificates and keys for your server before
Apache will start with mod_ssl support.  Please read

        /usr/pkg/share/doc/mod_ssl/README.mkcert

for more information on how to do this.

The SSL-specific configuration parts of the default httpd.conf are
bracketed by:

  <IfDefine SSL>
  </IfDefine>

In order to start Apache with mod_ssl support, you need to run Apache
with "apachectl startssl" instead of "apachectl start".  This may be 
done
by adding:

        apache=YES
        apache_start="startssl"

to /etc/rc.conf.

===========================================================================


At first it looked as though this package wanted me to be in the 
/usr/pkg directory when installing, so I tried again :

/usr/local/pkg# cd /usr/pkg
/usr/pkg# pkg_add /usr/local/pkg/ap-ssl*
gzip: stdin: unexpected end of file
tar: Unexpected EOF on archive file
tar: child returned status 1
pkg_add: package `ap-ssl-2.8.12nb1' already recorded as installed

Oops - ok ...
(but surely that installation has *failed*, not *worked* ??)

/usr/pkg# pkg_delete ap-ssl
pkg_delete: file `/usr/pkg/share/doc/mod_ssl/README.mkcert' doesn't 
really exist
pkg_delete: file `/usr/pkg/share/examples/mod_ssl/ssl.crl/Makefile.crl' 
doesn't really exist
pkg_delete: file `/usr/pkg/share/examples/mod_ssl/ssl.crl/README.CRL' 
doesn't really exist
pkg_delete: file `/usr/pkg/share/examples/mod_ssl/ssl.crt/Makefile.crt' 
doesn't really exist
  [... etc. ... ]
pkg_delete: couldn't entirely delete package `ap-ssl-2.8.12nb1'
(perhaps the packing list is incorrectly specified?)


Right .. now let's try installing again :

/usr/pkg# pkg_add /usr/local/pkg/ap-ssl*

gzip: stdin: unexpected end of file
tar: Unexpected EOF on archive file
tar: child returned status 1
pkg_add: Overwriting /usr/pkg/sbin/mkcert - pkg ap-ssl-2.8.12nb1 
bogus/conflicting?
tar: can't add file share/doc/mod_ssl/README.mkcert : No such file or 
directory
tar: can't add file share/examples/mod_ssl/ssl.crl/Makefile.crl : No 
such file or directory
tar: can't add file share/examples/mod_ssl/ssl.crl/README.CRL : No such 
file or directory
tar: can't add file share/examples/mod_ssl/ssl.crt/Makefile.crt : No 
such file or directory

  [ ... etc., etc. ... ]

i.e. it fails no matter what the current directory is.


So am I doing something wrong ?   
Is the package known to be currently faulty ?
Or is it something to do with the pkgsrc freeze recently announced by 
Alistair Crooks ?
Or even something to do with a discussion I saw recently about a rejig 
of the naming convention for Apache-related packages, but which I can't 
now find ?

TIA for any insights into this.

Nick Boyce
Bristol, UK