Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46833 - lighttpd-1.1.4.ebuild (New Package)
Summary: lighttpd-1.1.4.ebuild (New Package)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
Keywords: EBUILD
Depends on:
Reported: 2004-04-05 02:18 UTC by Boris
Modified: 2004-06-26 15:29 UTC (History)
1 user (show)

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

lighttpd-1.1.4.ebuild (lighttpd-1.1.4.ebuild,1.40 KB, text/plain)
2004-04-05 02:19 UTC, Boris
lighttpd-1.1.4-gentoo.diff (lighttpd-1.1.4-gentoo.diff,852 bytes, text/plain)
2004-04-05 02:19 UTC, Boris
lighttpd.initd (lighttpd.initd,538 bytes, text/plain)
2004-04-05 02:20 UTC, Boris
lighttpd-1.1.8.patch (lighttpd-1.1.8.patch,2.01 KB, patch)
2004-04-23 14:31 UTC, Boris
Details | Diff
lighttpd-1.1.8.patch (lighttpd-1.1.8.patch,666 bytes, patch)
2004-04-24 00:18 UTC, Boris
Details | Diff
lighttpd.initd.patch (lighttpd.initd.patch,265 bytes, patch)
2004-04-26 00:59 UTC, Boris
Details | Diff
lighttpd.initd.patch (lighttpd.initd.patch,249 bytes, patch)
2004-04-26 02:09 UTC, Boris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boris 2004-04-05 02:18:13 UTC

Please find attached lighttpd-1.1.4.ebuild and a diff to change the servers document-path. Further there is a init-script for the server. Both (the diff and the initscript) are supposed to be in the filesdir.

"lighttpd a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that is suffering load problems."

I suggest net-www/lighttpd for this package.
Comment 1 Boris 2004-04-05 02:19:31 UTC
Created attachment 28723 [details]
Comment 2 Boris 2004-04-05 02:19:57 UTC
Created attachment 28724 [details]
Comment 3 Boris 2004-04-05 02:20:19 UTC
Created attachment 28725 [details]
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 10:31:16 UTC
Package: net-www/lighttpd-1.1.8

I've committed your ebuild; it should appear on an rsync mirror near you
in about an hour.  Could you test it please, and let me know whether it
works for you?

Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 10:47:02 UTC
Doh - forgot to change the status of this bug.
Comment 6 Boris 2004-04-23 14:31:35 UTC
Created attachment 29923 [details, diff]

The new ebuild did not work for me.

The major problem is that you changed the log-dir/files in the config but
forgot to do it in the ebuild.
The ebuild creates the logdir and sets it writeable for the user lighttpd. It
did this for the logdir I defined, so the server failed to start complaining
about the missing logfile/writeaccess.
I changed that in the attached patch.

Second you put the log-files into /var/logs/lighttpd. I corrected this to
/var/log/lighttpd were all other logs are located. I think this should be the
right place (also according to the FHS).

Last I added an information for those users that want to use fast-cgi and php
with this server, because this configuration is not trivial. (I am going to
write an fast-cgi ebuild and will add an php-useflag in the future, perhaps for
the next release, perhaps earlyer. But I am not shure how to implement this

I also added the mysql and ssl useflags to the (R)DEPEND. I had totally
forgotten this last time.

With the applied patch the package compiles fine and the server starts
"out-of-the-box" with no problems.
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 15:36:07 UTC
Thank you for checking this.  I've applied the patch, and committed the changes to Portage once more.

I've changed the ebuild, so that modules are installed into /usr/lib/lighttpd, rather than into /usr/lib directly.

Best regards,
Comment 8 Boris 2004-04-24 00:18:16 UTC
Created attachment 29941 [details, diff]

The ebuild had a strange behavior when installing the files to /usr/sbin and
/usr/share/man which were installed to ${D} because of your change to the
I created a patch to apply againgst the current cvs to workaround this. by
moving the files from ${D}/var/tmp/portage/... to ${D}/usr manually. I am going
to have a closer look at this this evening.

I also added 2 echos to clearly seperate the infolines from the rest of the

With the patch the ebuild works fine.
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2004-04-24 08:53:24 UTC
Okay - the problem seems to be that einstall tries to be too clever for its own good.  I've replaced it with the traditional 'make DESTDIR=${D} install', and this seems to have fixed it.

Best regards,
Comment 10 Boris 2004-04-25 02:23:54 UTC
Ok, this version runs fine here. Great work.

Greetings Boris
Comment 11 Stuart Herbert (RETIRED) gentoo-dev 2004-04-25 09:11:35 UTC
Sorry it took so long, and thanks for the great feedback.

Many thanks,
Comment 12 Boris 2004-04-26 00:59:27 UTC
Created attachment 30063 [details, diff]

I found a little mistake in the init-script:
RET was set to the return-value of ebegin and not the one of kill.
I corrected that in the submitted patch.

Hope this is the last comment I write on version 1.1.8 and everything is fine
now. ;-)

Greetings Boris
Comment 13 Boris 2004-04-26 02:09:07 UTC
Created attachment 30070 [details, diff]
Comment 14 Stuart Herbert (RETIRED) gentoo-dev 2004-04-28 16:00:01 UTC
Thanks.  I've committed your patch, and bumped the ebuild to ensure people pick up the fix.

Best regards,
Comment 15 Stuart Herbert (RETIRED) gentoo-dev 2004-06-26 15:29:01 UTC
Closing bug