Re: How to manually patch/configure/compile Apache 2.2.4's mod_autoindex module?

2007-04-25 Thread Olaf Greve

Hi Frank,

Tnx a lot for your answers!

>Have a look at:
>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports- 
using.html

>in particular:
>4.5.2.1 Overriding the Default Ports Directories
>
>You basically copy the port wholesale to somewhere in your directory
>tree and build your "new" patched port with WRKDIRPREFIX set.I
>think.

Hmmm, I read it, and though it looks somewhat promising, I wonder if  
that'll work... The issue is that when first patching the C file, and  
then just trying a "make" it does nothing. When doing a "make clean",  
it will get all sources freshly again (hence undoing the patches made  
to the C file). From what I gather from the section you refer to, it  
will simply use a different working directory and/or install  
directory. However, wouldn't that try to simply install a newly build  
entire Apache 2.2.4 version next to the existing one (be it in a  
different directory, or not), with the difference that it is freshly  
built out of a different working directory (but still using the same  
fresh new sources)?


For obvious reasons, I'm somewhat apprehensive about trying this on  
my live server (though I could possibly (ab)use my fallback server  
for it), and was kind of hoping there would be an easy way to just  
compile the mod_autoindex module, using the patched source...


It appears I may have to fiddle around somewhat more with this,  
unless someone knows of a good way to achieve just that...?


Cheers!
Olafo

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to manually patch/configure/compile Apache 2.2.4's mod_autoindex module?

2007-04-24 Thread Frank Shute
On Tue, Apr 24, 2007 at 04:03:33PM +0200, Olaf Greve wrote:
>
> Hiya,

Hi Olaf,

> 
> I have run into a seemingly trivial, yet annoying issue. I used to  
> use Apache 1.3.33 on my live server, and recently I upgraded to  
> Apache 2.2.4, which apart from some hassles when upgrading the PHP4  
> extensions, went well.
> 
> However, there is one small thingy that is different: there are  
> exactly two directories on which I allow directory listings, and  
> these listings are (also) called from an external W*nd*ws program  
> that one of the users of my machine has made and has distributed. For  
> this user, I had allowed directory listings, with fancyindexing  
> enabled, and I thought everything would be fine, but
> Apache 1.3.33's mod_autoindex created listings using (uppercase)  
>  ...  tags, and Apache 2.2.4's version outputs (lowercase)   
>  ...   tags, and there ya go: the already widely distributed  
> application solely checks for the uppercase version, and fails on the  
> lowercase version.

As you say: annoying.

> 
> I had hoped that it would be easy to change this around, using some  
> form of template, but after RTFM-ing on the mod_autoindex (and  
> accompanying "options") documents, I am pretty certain that this is  
> not the case (or I am overlooking it).
> 
> In fact, it looks like the only place where this could be changed, is  
> the mod_autoindex.c file, under the "work" directory in the proper  
> "ports" directory.
> 
> Now, I don't mind patching the C source to accomplish this, however,  
> compiling it neatly into a properly working module may be more of a  
> hassle, and as a further downside, this would have to be done each  
> and every time I would possibly want to update Apache...
> 
> Is there anyone who knows a better/easier way to achieve this?
> If not, is there anyone who can tell me an easy method to properly  
> compile and link the mod_autoindex module (ideally using the provided  
> Makefile)?

Have a look at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

in particular:

4.5.2.1 Overriding the Default Ports Directories

You basically copy the port wholesale to somewhere in your directory
tree and build your "new" patched port with WRKDIRPREFIX set.I
think.

Post back, if you have any problems.

> 
> Tnx in advance, and cheerz,
> Olafo

HTH.

-- 

 Frank 


echo "f r a n k @ e s p e r a n c e - l i n u x . c o . u k" | sed 's/ //g'

  --->PGP keyID: 0x10BD6F4B<---  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"