pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48273: www/ap2-subversion installs Apache modules in ${PREFIX}/libexec instead of ${PREFIX}/lib/httpd



>Number:         48273
>Category:       pkg
>Synopsis:       www/ap2-subversion installs Apache modules in 
>${PREFIX}/libexec instead of ${PREFIX}/lib/httpd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 04 21:40:00 +0000 2013
>Originator:     Christopher M. Fuhrman
>Release:        pkgsrc-2013Q3
>Organization:
>Environment:
NetBSD vc75.vc.panix.com 6.1.2 NetBSD 6.1.2 (PANIX-VC) #0: Thu Oct  3 13:47:44 
EDT 2013  
root%juggler.panix.com@localhost:/misc/obj64/misc/devel/netbsd/6.1.2/src/sys/arch/amd64/compile/PANIX-VC
 amd64
>Description:
Prior to pkgsrc-2013Q3, the www/ap2-subversion package installed modules in 
${PREFIX}/lib/httpd/.  As of pkgsrc-2013Q3, the package now installs modules in 
${PREFIX}/libexec instead, yet the MESSAGE file still has 
"lib/httpd/mod_dav_svn.so" hard-coded as the correct location.

There are one of two problems here:

 1) The www/ap2-subversion package installs modules in ${PREFIX}/libexec
    where it should install in ${PREFIX}/lib/httpd like other Apache 
    modules

 2) The MESSAGE file needs to be updated with the correct location of
    the mod_dav_svn.so file
>How-To-Repeat:
Compile and install the www/ap2-subversion package and make note of the MESSAGE 
file that's generated.  Then, do a `pkg_info -L ap2[024]-subversion` for the 
installed package to see where the ap2-subversion package actually installs 
things.

E.G.,

$ pkg_info -L ap22-subversion
Information for ap22-subversion-1.8.3nb1:

Files:
/usr/pkg/libexec/mod_authz_svn.so
/usr/pkg/libexec/mod_dav_svn.so


>Fix:
Depending on the problem, there are two solutions:

 1) Correct the www/ap2-subversion package such that Apache modules
    are installed in ${PREFIX}/lib/httpd/

 2) Correct the MESSAGE file as follows:

===========================================================================
$NetBSD: MESSAGE,v 1.3 2007/12/13 20:03:36 epg Exp $

See ${PREFIX}/share/doc/subversion/INSTALL for details on making
a repository accessible via mod_dav_svn.  Basically, you need
something like this in httpd.conf:

    LoadModule dav_svn_module "libexec/mod_dav_svn.so"
    <Location /svn>
        DAV svn
        SVNPath "/path/to/repository"
        AuthType Basic
        AuthName "Subversion repository"
        AuthUserFile "/path/to/passwd-file"
        # Allow anonymous reads but require authentication for writes.
        <LimitExcept GET HEAD OPTIONS PROPFIND REPORT TRACE>
            Require valid-user
        </LimitExcept>
    </Location>

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



Home | Main Index | Thread Index | Old Index