From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 02:59:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 557E216A404 for ; Wed, 25 Apr 2007 02:59:39 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id DF1A213C45D for ; Wed, 25 Apr 2007 02:59:38 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1HgXjF-0007KD-9I for freebsd-questions@freebsd.org; Wed, 25 Apr 2007 03:59:37 +0100 Received: from esperance.zetnet.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.13.8/8.13.8/Debian-3) with SMTP id l3P2xaHU005845 for ; Wed, 25 Apr 2007 03:59:36 +0100 Received: (qmail 13668 invoked by uid 1001); 25 Apr 2007 02:59:31 -0000 From: "Frank Shute" Date: Wed, 25 Apr 2007 03:59:31 +0100 To: Olaf Greve Message-ID: <20070425025931.GA13642@melon.esperance-linux.co.uk> References: <38A9B70D-9BF1-4F29-8123-D82907AE07BA@axis.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <38A9B70D-9BF1-4F29-8123-D82907AE07BA@axis.nl> User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD 6.2-RELEASE-p1 i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (zetnet.co.uk [194.247.46.1]); Wed, 25 Apr 2007 03:59:37 +0100 (BST) Cc: freebsd-questions@freebsd.org Subject: Re: How to manually patch/configure/compile Apache 2.2.4's mod_autoindex module? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 02:59:39 -0000 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<---