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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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.17.1.ebuild,v 1.3 2005/04/17 13:12:30 ka0ttic Exp $
4
5 MY_PV=0.4.17
6
7 DESCRIPTION="An extremely fast and tiny web server."
8 SRC_URI="ftp://alobbs.com/cherokee/0.4/${MY_PV}/${P}.tar.gz"
9 HOMEPAGE="http://www.alobbs.com/cherokee"
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 ${RDEPEND}"
17
18 KEYWORDS="x86 ppc"
19 SLOT="0"
20 IUSE=""
21
22 S="${WORKDIR}/${PN}-${MY_PV}"
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 src/virtual_server.c || die "sed failed"
32 fi
33 }
34
35 src_compile() {
36 ./configure \
37 --prefix=/usr --sysconfdir=/etc \
38 --disable-static $my_conf --with-pic || die "configure failed"
39 emake || die
40 }
41
42 src_install () {
43 make DESTDIR=${D} install || die
44
45 dodoc AUTHORS ChangeLog COPYING INSTALL README
46
47 # install the Gentoo-ised config file
48
49 cp ${FILESDIR}/${PN}-${MY_PV}-cherokee.conf ${D}/etc/cherokee/cherokee.conf
50
51 # remove the installed sample config file
52 # rm ${D}/etc/cherokee/cherokee.conf.sample
53
54 # add default doc-root and cgi-bin locations
55 dodir /var/www/localhost/htdocs
56 dodir /var/www/localhost/cgi-bin
57
58 # add init.d script
59 dodir /etc/init.d
60 cp ${FILESDIR}/${PN}-${MY_PV}-init.d ${D}/etc/init.d/cherokee
61 }

  ViewVC Help
Powered by ViewVC 1.1.20