/[gentoo-x86]/www-servers/cherokee/cherokee-0.4.21-r1.ebuild
Gentoo

Contents of /www-servers/cherokee/cherokee-0.4.21-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Jan 19 07:25:30 2006 UTC (8 years, 7 months ago) by bass
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old ebuilds remved. marked 0.4.29 as x86
(Portage version: 2.0.53)

1 bass 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 bass 1.3 # $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-0.4.21-r1.ebuild,v 1.2 2005/05/16 22:25:25 mr_bones_ Exp $
4 bass 1.1
5 mr_bones_ 1.2 inherit eutils
6 bass 1.1
7     DESCRIPTION="An extremely fast and tiny web server."
8     SRC_URI="http://www.0x50.org/download/${PV%.*}/${PV}/${P}.tar.gz"
9     HOMEPAGE="http://www.0x50.org/"
10     LICENSE="GPL-2"
11    
12     RDEPEND="virtual/libc
13     >=sys-libs/zlib-1.1.4-r1"
14    
15     DEPEND=">=sys-devel/automake-1.7.5
16     gnutls? ( net-libs/gnutls )
17     ssl? ( dev-libs/openssl )
18     ${RDEPEND}"
19    
20     KEYWORDS="~x86 ~ppc ~sparc"
21     SLOT="0"
22     IUSE="ipv6 ssl gnutls pic static"
23    
24     src_unpack() {
25     unpack ${A}
26     cd ${S}
27    
28     # bug 86038 - cherokee will fail to build with >=gnutls-1.2.0 (API change)
29     if has_version '>=net-libs/gnutls-1.2.0' ; then
30     sed -i 's/\(gnutls_certificate_set_rsa\)\(_params\)/\1_export\2/' \
31     cherokee/virtual_server.c || die "sed failed"
32     fi
33    
34 mr_bones_ 1.2 epatch ${FILESDIR}/cherokee-0.4.21-no-handler_admin.diff
35 bass 1.1 }
36    
37     src_compile() {
38     local myconf
39    
40     if use ssl && use gnutls ; then
41     myconf="${myconf} --enable-ssl=gnutls"
42     elif use ssl && ! use gnutls ; then
43     myconf="${myconf} --enable-ssl=openssl"
44     else
45     myconf="${myconf} --disable-ssl"
46     fi
47     if use pic ; then
48     myconf="${myconf} --with-pic"
49     fi
50     if ! use ipv6 ; then
51     myconf="${myconf} --disable-ipv6"
52     fi
53     if ! use static ; then
54     myconf="${myconf} --disable-static"
55     fi
56 mr_bones_ 1.2
57 bass 1.1 econf \
58     ${myconf} \
59     --with-wwwroot=/var/www/localhost/htdocs \
60     --enable-os-string="Gentoo Linux" \
61     || die "configure failed"
62 mr_bones_ 1.2
63 bass 1.1 emake || die "emake failed"
64     }
65    
66     src_install () {
67     make DESTDIR="${D}" install || die "make install failed"
68     dodoc AUTHORS ChangeLog COPYING INSTALL README
69    
70     # add default doc-root and cgi-bin locations
71     dodir /var/www/localhost/htdocs
72     dodir /var/www/localhost/cgi-bin
73    
74     newinitd ${FILESDIR}/${PN}-0.4.17-init.d ${PN} || die "newinitd failed"
75     }

  ViewVC Help
Powered by ViewVC 1.1.20