Re: Installing files outside of ${prefix}
Paul Richards <paul <at> originative.co.uk>
2005-08-01 09:43:22 GMT
On Sun, Jul 31, 2005 at 10:23:51PM -0700, Mark Duling wrote:
> Apparently Tiger breaks cvsweb, so I have updated the port from
> cvsweb-2.0.6 to cvsweb-3.0.5 because it works. But the author of the port
> did put the file directly into the cgi-bin directory, which isn't in
> ${prefix} since I'm using Apple's Apache. I have been advised not to do
> that in creatng new ports, and now I can see one excellent reason why
> that I hadn't thought of before. If a target directory of a port was
> empty before files were installed, which was the case with my cgi-bin
> directory, uninstalling the port removes the empty directory put there by
> Apple.
>
> Of course, one could always install DP's Apache but it seems a little
> draconian just for a .cgi file, though a more "purist" approach might be
> to do that. But as I think about it, I guess the problem of removing an
> empty directory would still exist unless DP's Apache cgi-bin isn't empty,
> so I suppose the proplem isn't really not using DP's Apache anyway.
> Besides, I don't want to reinvent the wheel, I just want to fix cvsweb on
> Tiger. :)
>
> So should I:
>
> 1) Let the port be as it was (except for the version bump) and not worry
> about it since it isn't any worse than before?
> 2) Put cvsweb in an intermediate directory and spit out a ui_msg telling
> user's to copy it over? Perhaps in ${prefix}/etc/cvsweb and put the
> cvsweb.conf file and cvsweb.cgi there, then let the user copy the latter
> to cgi-bin?
>
> If so what directory would be a good choice?
(Continue reading)