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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Sep 28 17:16:23 2008 UTC (5 years, 11 months ago) by bass
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 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.7.0.ebuild,v 1.2 2008/06/03 15:40:36 mr_bones_ 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="~amd64 ~ppc ~sparc ~x86"
17 IUSE="ipv6 ssl gnutls static pam coverpage threads kernel_linux admin"
18
19 RDEPEND=">=sys-libs/zlib-1.1.4-r1
20 ssl? (
21 gnutls? ( net-libs/gnutls )
22 !gnutls? ( dev-libs/openssl )
23 )
24 pam? ( virtual/pam )
25 admin? ( dev-lang/python )"
26 DEPEND="${RDEPEND}"
27
28 #S="${WORKDIR}/${P}b1240"
29
30 src_compile() {
31 local myconf
32
33 if use ssl && use gnutls ; then
34 myconf="${myconf} --enable-tls=gnutls"
35 elif use ssl && ! use gnutls ; then
36 myconf="${myconf} --enable-tls=openssl"
37 else
38 myconf="${myconf} --disable-tls"
39 fi
40
41 if use static ; then
42 myconf="${myconf} --enable-static --enable-static-module=all"
43 else
44 myconf="${myconf} --disable-static"
45 fi
46
47 local os="Unknown"
48 case "${CHOST}" in
49 *-freebsd*)
50 os="FreeBSD" ;;
51 *-netbsd*)
52 os="NetBSD" ;;
53 *-openbsd*)
54 os="OpenBSD" ;;
55 *)
56 os="Linux" ;;
57 esac
58
59 econf \
60 ${myconf} \
61 $(use_enable pam) \
62 $(use_enable ipv6) \
63 $(use_enable threads pthread) \
64 $(use_enable kernel_linux epoll) \
65 --disable-dependency-tracking \
66 --enable-os-string="Gentoo ${os}" \
67 --with-wwwroot=/var/www/localhost/htdocs \
68 --prefix=/usr \
69 --sysconfdir=/etc \
70 --localstatedir=/var \
71 || die "configure failed"
72
73 emake || die "emake failed"
74 }
75
76 src_install () {
77 emake -j1 DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed"
78 dodoc AUTHORS ChangeLog TODO
79
80 newpamd pam.d_cherokee ${PN} || die "newpamd failed"
81 newinitd "${FILESDIR}/${PN}-initd-0.6" ${PN} || die "newinitd failed"
82
83 dodir /usr/share/doc/${PF}/contrib
84 insinto /usr/share/${PF}/contrib
85 doins contrib/05to06.py
86
87 keepdir /etc/cherokee/mods-enabled /etc/cherokee/sites-enabled /var/www/localhost/htdocs
88
89 use coverpage || rm -rf "${D}"/var/www/localhost/htdocs/{index.html,images}
90 use admin || rm -rf "${D}"/usr/sbin/admin "${D}"/usr/share/cherokee/admin
91
92 }
93
94 pkg_postinst() {
95 enewgroup cherokee
96 enewuser cherokee -1 -1 /var/www/localhost cherokee
97
98 if use admin ; then
99 echo ""
100 elog "Just run 'cherokee-admin' and go to: http://localhost:9090"
101 echo ""
102 else
103 echo ""
104 elog "Try USE=admin if you want a easy way to configure cherokee."
105 echo ""
106 fi
107
108 echo ""
109 elog "Cherokee conf is quite different in 0.6.x series. You must use"
110 elog " cherokee-admin to create a new config or use /usr/share/doc/${PF}/contrib/05to06.py"
111 elog " to export your old config (not ever works)."
112 echo ""
113 }

  ViewVC Help
Powered by ViewVC 1.1.20