New ebuild, first contribution from me. Please be gentle. Should go under net-www. Upstream package is at http://www.acme.com/software/thttpd/ Reproducible: Always Steps to Reproduce: Not fond of / certain about the way Gentoo will generate an ._cfg file for /etc/thttpd.conf on future upgrades; I'd like to put in the default config file only on initial install, but don't see how to do that cleanly in an ebuild. Five (5) attachments to follow.
Created attachment 9873 [details] thttpd-2.20c.ebuild
Created attachment 9874 [details] files/digest-thttpd-2.20c
Created attachment 9875 [details] files/thttpd-init-2.20c
Created attachment 9876 [details] files/thttpd-time.h-patch-2.20c
Created attachment 9877 [details] files/thttpd.conf-2.20c
*** Bug 19530 has been marked as a duplicate of this bug. ***
Comparing the thttpd ebuild implementations in 18266 and 19530, 1. I did an ebuild of 2.20c, the current stable version. The other ebuild is of 2.21b, whose status is uncertain as it lands ahead of the stable version but behind the development version 2.23beta1. The 2.21 series does include a patch equivalent to the one I had to include to get 2.20c to build on a modern system. 2. Jef Poskanzer did release thttpd under the BSD license; wapr's ebuild claims LICENSE="GPL-2". 3. I include thttpd utilities (htpasswd et al), which aren't in wapr's version. 4. I default the web tree to /var/www, while wapr uses /home/httpd. In any event, the user can point it anywhere in /etc/thttpd.conf so this isn't important. 5. Wapr's rc script uses start-stop-daemon, while I start thttpd directly. Also, I have "use net", cribbed from net-misc/rsync/files/rsyncd.init.d, while a lot of other stuff has "need net". I'd love to see more documentation on what's preferred in an ebuild, an rc script, and the like, and would be willing to contribute some based on what I learn in the process of submitting an ebuild. If there are bits and pieces of both preferred, I'm willing to do the merge. adb
Created attachment 11403 [details] thttpd-2.20c.ebuild
Created attachment 11404 [details] ChangeLog
Created attachment 11405 [details] files/README.gentoo-2.20c
Created attachment 11406 [details] files/thttpd-init-2.20c
Created attachment 11407 [details] files/thttpd.conf-2.20c
I've posted revised files a few minutes ago: ebuild changes per suggestions on the gentoo-dev list, added a ChangeLog, and changed the init script to use start-stop-daemon. Also added a README.gentoo.2.20c with notes about porting thttpd to Gentoo. If it's less than perfect now, please yell. adb
i dont know what to say about this. it looks too clumsy to process, and i dont want to hold it up any longer. if someobdy feels like taking this under their wing and dealing with it, they should feel free to do so. the poster has obviously spent some time doing this work, so it should get attention. im sorry, but i just dont have the time.
Anthony, can you please make a ebuild for thttpd 2.21b + A.D.F. patches ? I have been using A.D.F. patches for 2 years now and they really improve greatly thttpd in matters of stability and speed (not to mention features). this is his page: http://space.virgilio.it/adefacc@tin.it/httpd/thttpd/ the patches for 2.21b: http://space.virgilio.it/adefacc@tin.it/httpd/thttpd/thttpd-2.21b-pNN/index.html and full changelog: http://space.virgilio.it/adefacc@tin.it/httpd/thttpd/thttpd-2.21b-pNN/thttpd-2.21b-pNN-log.txt Thanks!
One for the web-apps herd to find time to deal with.
I hacked up an ebuild from the 2.23_beta1 sources. I used the mini_httpd ebuild as a base, and found I had to do alot more fiddling than I thought I should have to. It doesn't do any conf files or anything, but it does build from source without patching which is why I started with the beta release. Let me know if anyone wants it - like I said it just builds and installs it without start-up scripts or conf.d support.
Although the recent advisory in bugtraq didn't affect the ancient stable release of thttpd, author Jef Poskanzer did announce that 2.24 is now the one and only release, which I believe deprecates the old stable tree including the 2.20c ebuild presented here. I'm going to bundle up a 2.24 to replace it and post that to this bugzilla ticket.
*** This bug has been marked as a duplicate of 36173 ***