Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18266

Summary: thttpd ebuild (new package)
Product: Gentoo Linux Reporter: Anthony de Boer <adb>
Component: New packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: bmr, svazulia
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 11007    
Attachments: thttpd-2.20c.ebuild
files/digest-thttpd-2.20c
files/thttpd-init-2.20c
files/thttpd-time.h-patch-2.20c
files/thttpd.conf-2.20c
thttpd-2.20c.ebuild
ChangeLog
files/README.gentoo-2.20c
files/thttpd-init-2.20c
files/thttpd.conf-2.20c

Description Anthony de Boer 2003-03-26 18:01:30 UTC
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.
Comment 1 Anthony de Boer 2003-03-26 18:02:52 UTC
Created attachment 9873 [details]
thttpd-2.20c.ebuild
Comment 2 Anthony de Boer 2003-03-26 18:04:02 UTC
Created attachment 9874 [details]
files/digest-thttpd-2.20c
Comment 3 Anthony de Boer 2003-03-26 18:04:36 UTC
Created attachment 9875 [details]
files/thttpd-init-2.20c
Comment 4 Anthony de Boer 2003-03-26 18:05:58 UTC
Created attachment 9876 [details]
files/thttpd-time.h-patch-2.20c
Comment 5 Anthony de Boer 2003-03-26 18:06:30 UTC
Created attachment 9877 [details]
files/thttpd.conf-2.20c
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-04-18 17:49:47 UTC
*** Bug 19530 has been marked as a duplicate of this bug. ***
Comment 7 Anthony de Boer 2003-04-21 10:44:44 UTC
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
Comment 8 Anthony de Boer 2003-05-02 17:39:31 UTC
Created attachment 11403 [details]
thttpd-2.20c.ebuild
Comment 9 Anthony de Boer 2003-05-02 17:40:26 UTC
Created attachment 11404 [details]
ChangeLog
Comment 10 Anthony de Boer 2003-05-02 17:41:39 UTC
Created attachment 11405 [details]
files/README.gentoo-2.20c
Comment 11 Anthony de Boer 2003-05-02 17:42:50 UTC
Created attachment 11406 [details]
files/thttpd-init-2.20c
Comment 12 Anthony de Boer 2003-05-02 17:43:30 UTC
Created attachment 11407 [details]
files/thttpd.conf-2.20c
Comment 13 Anthony de Boer 2003-05-02 17:54:51 UTC
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
Comment 14 Donny Davies (RETIRED) gentoo-dev 2003-06-04 23:44:01 UTC
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.
Comment 15 Dizzy 2003-09-19 08:22:14 UTC
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!
Comment 16 Stuart Herbert (RETIRED) gentoo-dev 2003-10-04 07:54:18 UTC
One for the web-apps herd to find time to deal with.
Comment 17 Evan Langlois 2003-10-12 13:09:32 UTC
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.
Comment 18 Anthony de Boer 2003-11-10 08:44:10 UTC
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.
Comment 19 Martin Holzer (RETIRED) gentoo-dev 2003-12-20 06:20:20 UTC

*** This bug has been marked as a duplicate of 36173 ***