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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Oct 22 08:01:02 2009 UTC (4 years, 8 months ago) by bass
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
bump version
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2009 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.98.1.ebuild,v 1.2 2009/02/03 12:45:46 betelgeuse Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit eutils pam versionator libtool autotools
9
10 DESCRIPTION="An extremely fast and tiny web server."
11 SRC_URI="http://www.cherokee-project.com/download/$(get_version_component_range 1-2)/${PV}/${P}.tar.gz"
12 HOMEPAGE="http://www.cherokee-project.com/"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~x86"
17 IUSE="ipv6 ssl static pam coverpage threads kernel_linux admin debug"
18
19 # lighttpd block should be resolved properly
20 # http://bugs.gentoo.org/show_bug.cgi?id=224781
21 RDEPEND="
22 !www-servers/lighttpd
23 >=sys-libs/zlib-1.1.4-r1
24 ssl? ( dev-libs/openssl )
25 pam? ( virtual/pam )
26 admin? ( dev-lang/python )"
27 DEPEND="${RDEPEND}"
28
29 src_compile() {
30 local myconf
31
32 if use static ; then
33 myconf="${myconf} --enable-static --enable-static-module=all"
34 else
35 myconf="${myconf} --disable-static"
36 fi
37
38 if use debug ; then
39 myconf="${myconf} --enable-trace"
40 fi
41
42 local os="Unknown"
43 case "${CHOST}" in
44 *-freebsd*)
45 os="FreeBSD" ;;
46 *-netbsd*)
47 os="NetBSD" ;;
48 *-openbsd*)
49 os="OpenBSD" ;;
50 *)
51 os="Linux" ;;
52 esac
53
54 # No options to enable or disable ssl since Cherokee 0.11
55 econf \
56 ${myconf} \
57 $(use_enable pam) \
58 $(use_enable ipv6) \
59 $(use_enable threads pthread) \
60 $(use_enable kernel_linux epoll) \
61 --disable-dependency-tracking \
62 --enable-os-string="Gentoo ${os}" \
63 --with-wwwroot=/var/www/localhost/htdocs \
64 --prefix=/usr \
65 --sysconfdir=/etc \
66 --localstatedir=/var \
67 || die "configure failed"
68
69 emake || die "emake failed"
70 }
71
72 src_install () {
73 emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed"
74 dodoc AUTHORS ChangeLog
75
76 use pam && pamd_mimic system-auth cherokee auth account session
77 newinitd "${FILESDIR}/${PN}-initd-0.11" ${PN} || die "newinitd failed"
78
79 dodir /usr/share/doc/${PF}/contrib
80 insinto /usr/share/${PF}/contrib
81 doins contrib/07to08.py
82 doins contrib/08to09.py
83 doins contrib/09to010.py
84 doins contrib/011to098.py
85
86 keepdir /etc/cherokee/mods-enabled /etc/cherokee/sites-enabled /var/www/localhost/htdocs
87
88 use coverpage || rm -rf "${D}"/var/www/localhost/htdocs/{index.html,images}
89 use admin || rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin
90
91 }
92
93 pkg_postinst() {
94 enewgroup cherokee
95 enewuser cherokee -1 -1 /var/www/localhost cherokee
96
97 if use admin ; then
98 echo ""
99 elog "Just run 'cherokee-admin' and go to: http://localhost:9090"
100 echo ""
101 else
102 echo ""
103 elog "Try USE=admin if you want a easy way to configure cherokee."
104 echo ""
105 fi
106 }

  ViewVC Help
Powered by ViewVC 1.1.20