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

Contents of /www-servers/cherokee/cherokee-0.4.24.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Jul 15 12:18:54 2005 UTC (9 years, 9 months ago) by bass
Branch: MAIN
bump version
(Portage version: 2.0.51.22-r1)

1 bass 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-0.4.22.ebuild,v 1.2 2005/05/16 22:25:25 mr_bones_ Exp $
4    
5     inherit eutils
6    
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     epatch ${FILESDIR}/cherokee-0.4.21-no-handler_admin.diff
29     }
30    
31     src_compile() {
32     local myconf
33    
34     if use ssl && use gnutls ; then
35     myconf="${myconf} --enable-ssl=gnutls"
36     elif use ssl && ! use gnutls ; then
37     myconf="${myconf} --enable-ssl=openssl"
38     else
39     myconf="${myconf} --disable-ssl"
40     fi
41     if use pic ; then
42     myconf="${myconf} --with-pic"
43     fi
44     if ! use ipv6 ; then
45     myconf="${myconf} --disable-ipv6"
46     fi
47     if ! use static ; then
48     myconf="${myconf} --disable-static"
49     fi
50    
51     econf \
52     ${myconf} \
53     --with-wwwroot=/var/www/localhost/htdocs \
54     --enable-os-string="Gentoo Linux" \
55     || die "configure failed"
56    
57     emake || die "emake failed"
58     }
59    
60     src_install () {
61     dodir /var/www/localhost/htdocs
62     dodir /var/www/localhost/cgi-bin
63    
64     make DESTDIR="${D}" install || die "make install failed"
65     dodoc AUTHORS ChangeLog COPYING INSTALL README
66    
67     newinitd ${FILESDIR}/${PN}-0.4.17-init.d ${PN} || die "newinitd failed"
68     }

  ViewVC Help
Powered by ViewVC 1.1.20