Attached is an updated ebuild for cherokee-0.4.25-r1 that includes the following improvements/fixes: - Fixed dependencies. Since gnutls and openssl are libs, they are technically both build deps and run-time deps. - current ebuild allows cherokee to install HTML docs unconditionally (should only occur when USE=doc) and in the wrong location (/usr/share/doc/cherokee instead of /usr/share/doc/${PF}/html). The sed in src_unpack is necessary so that 'make install' does not traverse down into the "doc" subdirectory (and thus install the html docs unconditionally). Added doc to IUSE. - current ebuild does not respect cherokee's --enable-pam option, so users are forced to use pam support. Use pam.eclass for pam support and use dopamd to install the pam.d file cherokee includes in the tarball. Added pam to IUSE. - Looks like the --enable-ssl=[gnutls|openssl] option has changed to --enable-tls=[gnutls|openssl]. - Without the --with-wwwroot option, cherokee uses /var/lib/www which obviously isn't optimal either. I've reverted the previous change, using --with-wwwroot=/var/www/localhost/htdocs, however, I've added some logic which moves index.html to cherokee-index.html if a pre-existing index.html exists (unless the pre-existing one is exactly the same - from a previous install, for example). - Moved 'if ! use ipv6' logic to the more correct $(use_enable ipv6) logic. - Add support for cherokee user/group. Otherwise cherokee will run as root. Add a sed to src_unpack() for modifying the default cherokee.conf to use them. Also added pkg_postinst() for the enewuser/enewgroup calls. - Fixed static support. Removed --disable-shared option when USE=static as it is not a valid ./configure option (resulting in ./configure bailing out). Unfortunately, even with that fixed, the build fails with USE=static when trying to link libcherokee-server.la: .libs/libcherokee_server_la-cgi.o: In function `cherokee_cgi_build_basic_env': /buildroot/portage/cherokee-0.4.25-r1/work/cherokee-0.4.25/cherokee/cgi.c:41: multiple definition of `cherokee_cgi_build_basic_env' .libs/libcherokee_server_la-cgi.o:/buildroot/portage/cherokee-0.4.25-r1/work/cherokee-0.4.25/cherokee/cgi.c:41: first defined here This is caused by the fact that if static support is enabled, cgi.[ch] ends up in libcherokee_server_la_SOURCES twice (because the static_handler_cgi_src and static_handler_fastcgi_src variables both include cgi.[ch]). Don't forget to report this upstream. It might be easier just to point them to this bug. I've attached a patch that fixes this.
Created attachment 65904 [details] cherokee-0.4.25-r1.ebuild
Created attachment 65905 [details, diff] cherokee-0.4.25-fix-static.diff
Arron i dont ignore nothing so i have different priorities and was busy lately. Thanks for the fixes, the ebuild is now updated. I talking with the cherokee dev about the static bug.