Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303205 - New ebuild for nginx with use flag expansion for modules.
Summary: New ebuild for nginx with use flag expansion for modules.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 12:01 UTC by Chris Beswick
Modified: 2010-03-07 10:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against nginx-0.7.64-r3.ebuild (nginx.ebuild.diff,3.76 KB, patch)
2010-02-02 12:04 UTC, Chris Beswick
Details | Diff
the ebuild (nginx-0.7.65.ebuild,3.51 KB, text/plain)
2010-02-02 12:05 UTC, Chris Beswick
Details
ebuild with support for third party modules, passenger (nginx-0.7.65.with_passenger.ebuild,5.38 KB, text/plain)
2010-02-02 12:06 UTC, Chris Beswick
Details
patch to make passenger respect portage CFLAGs (passenger-CFLAGS.patch,646 bytes, patch)
2010-02-28 12:26 UTC, Chris Beswick
Details | Diff
nginx 0.7.65 with portage, and "modular" configuration base setup. (nginx-0.7.65.ebuild.tar.bz2,5.99 KB, application/octet-stream)
2010-03-04 12:04 UTC, Chris Beswick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Beswick 2010-02-02 12:01:01 UTC
I have created a new ebuild for nginx which moves module selection from a few use flags covering a small number of the modules, to a use flag expansion covering all the modules available in the present build. This allows user to customize an nginx build to the same extent installing it manually would provide them.

I believe this method is similar to how apache base modules are handled so it seems appropriate.

Reproducible: Always

Steps to Reproduce:
1. The line USE_EXPAND="${USE_EXPAND} NGINX_MODULES" must be in /etc/make.conf
2. To customise the module selection NGINX_MODULES="<list of modules>" goes in /etc/make.conf
Comment 1 Chris Beswick 2010-02-02 12:04:35 UTC
Created attachment 218157 [details, diff]
patch against nginx-0.7.64-r3.ebuild
Comment 2 Chris Beswick 2010-02-02 12:05:12 UTC
Created attachment 218159 [details]
the ebuild
Comment 3 Chris Beswick 2010-02-02 12:06:19 UTC
Created attachment 218163 [details]
ebuild with support for third party modules, passenger
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2010-02-28 08:22:33 UTC
can you please add your CFLAGS patch for passenger?
Comment 5 Chris Beswick 2010-02-28 12:26:51 UTC
Created attachment 221529 [details, diff]
patch to make passenger respect portage CFLAGs

As requested.
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2010-02-28 15:18:56 UTC
thanks, i've added the patch to my nginx ebuild. i have refactored the nginx ebuild for USE_EXPAND too, before i found this bug report, but it looks quite similar to your solutiond and i have adapted a bunch of things, thanks :)

see http://git.xnull.de/gitweb/?p=overlay.git;a=blob;f=www-servers/nginx/nginx-0.8.33.ebuild
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-03-04 11:42:52 UTC
hollow: would you like to take over nginx maintenance?

I don't actually use it, I just maintain it because no one else was.
Comment 8 Chris Beswick 2010-03-04 12:04:41 UTC
Created attachment 222029 [details]
nginx 0.7.65 with portage, and "modular" configuration base setup.

Sorry for the tarball, but this would get messy very fast as there are quite a few files.

I've attached the ebuild and related files i'm currently using, which includes the starting of php hosting "support" using fastcgi, although the ebuild does not use it yet.

The main interest for me in this version is that it creates a "default" website if there is not one already, and uses sites.d and modules.d folders to do vhosting and support the multiple available configuration options now available. It also turns down the dial a little bit on the passenger and nginx's resource usage, which I think is probabally a good idea for "default" installs.
Comment 9 Benedikt Böhm (RETIRED) gentoo-dev 2010-03-04 16:56:12 UTC
(In reply to comment #7)
> hollow: would you like to take over nginx maintenance?
> 
> I don't actually use it, I just maintain it because no one else was.

yep, i can maintain nginx, a bunch of my customers start using it now, so i have to work on it anyway.

i have already updated metadata.xml and will go through the other bugs during the next days. thanks
Comment 10 Benedikt Böhm (RETIRED) gentoo-dev 2010-03-07 10:44:03 UTC
please give 0.8.34-r1 a try, thanks