Xawtv uses a hardcoded test in order to install a cgi file. if [ -d /var/www/localhost ] then .... fi In could be not true, /srv/www/localhost is valid, or wherever the user wants. To install just a .cgi file I think is too much inherit webapp.eclass, so -I think- leaving the webcam.cgi file inside /usr/share/doc/${PF}/DOCDESTTREE ist a good idea. Something like docinto cgi dodoc scripts/webcam.cgi
See this attachments: xawtv-3.94-r1.ebuild (webapp support): http://bugs.gentoo.org/attachment.cgi?id=55411&action=view xawtv-3.94-r1.patch (webapp support): http://bugs.gentoo.org/attachment.cgi?id=55413&action=view
xawtv-3.94-r2: Now see Attachment #57366 [details] (ebuild) or Attachment #57638 [details] (diff) Maybe its better, not to use webapp eclass. :-)
xawtv-3.94-r2: Now see Attachment #57366 [details] (ebuild) or Attachment #57368 [details, diff] (diff) Maybe its better, not to use webapp eclass. :-)
Hrmm, though you could hard-code /var/www/... in the ebuilds/perform the install yourself, using the webapp eclass has advantages of ease and good tools, and will make migrations to new data directories (/var/www) a hell of a lot easier, too. Just my 0.02p. :)
Yep, but we are talking about a one single cgi file, and I think that calling webapp eclass just for an 60 lines cgi which just look for an image that /usr/bin/webcam leave on 'public_html/images' for make a nescape-only compatibly "image stream" its not neccesary. Also maybe it just not works as-is, or like the user wants. IMHO is better to leave it as documentation. /usr/share/doc/xawtv-3.94-r2/webcamrc.gz /usr/share/doc/xawtv-3.94-r2/cgi-bin /usr/share/doc/xawtv-3.94-r2/cgi-bin/webcam.cgi The point here, is that the current portage tree ebuild doesnt looks good. :-| I propose two solutions, one is the webapp eclass and there is their "proof-of-concept" ebuild in Attachment 55411 [details] (not updated, but it should work) for it. I dont like it a lot because the reason that I say before (also in fact its not a www related package), and the other one is leave the webcamrc and webcam.cgi in the docs dir like in Attachment #57366 [details] (its updated) :-)
Fixed in CVS.