Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
increasing apache's hard limit for MaxClients
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
roymaster
n00b
n00b


Joined: 05 Jan 2003
Posts: 62
Location: Europe

PostPosted: Wed Dec 29, 2004 9:54 pm    Post subject: increasing apache's hard limit for MaxClients Reply with quote

Hi,

I need to increase MaxClients of apache 2.0.50 to let's say 500.

I would normally edit httpd.h and recompile it if I would compile it by hand.

But I would like to use emerge ;-)

How to tell emerge that I want to edit this file or how to edit it so that emerge would compile it with my changes?

Or, basically:

HOW TO EDIT ANY FILE IN A PACKAGE BEFORE IT IS COMPILED BY EMERGE?

Thanks,

roymaster
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722
Location: Cluj-Napoca, Romania

PostPosted: Thu Dec 30, 2004 6:05 am    Post subject: Reply with quote

Adding a custom patch mini-HOWTO:
Code:
mkdir /root/tempdir
ebuild /path/to/apache.version.x.ebuild unpack
mv /var/tmp/portage/apache-version.x /root/tempdir/apache-version.x-orig
ebuild /path/to/apache.version.x.ebuild unpack
mv /var/tmp/portage/apache-version.x /root/tempdir/apache-version.x-new

Then edit httpd.h in the -new directory. After being done,
Code:
cd /root/tempdir
diff -Naur apache-version.x-orig apache-version.x-new > my-patch.diff

Copy the ebuild to your overlay as you normally would, copy the diff to the files subdirectory there, edit the ebuild and add an "epatch ${FILESDIR}/my-patch.diff" line to the src_unpack() function, run
Code:
ebuild /path/to/your/overlay/apache-version.x.ebuild digest
and you can emerge it.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum