blob: 8afa579b95970a8125021e720689a16ee5f8ac43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/skunkweb/skunkweb-3.4.0-r1.ebuild,v 1.1 2005/03/12 15:50:32 satya Exp $
inherit eutils apache-module
DESCRIPTION="robust Python web application server"
HOMEPAGE="http://skunkweb.sourceforge.net/"
SRC_URI="mirror://sourceforge/skunkweb/${P}.tar.gz"
LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="doc"
DEPEND=">=dev-lang/python-2.2
>=dev-python/egenix-mx-base-2.0.4"
APACHE1_MOD_FILE="${S}/SkunkWeb/mod_skunkweb/mod_skunkweb.so"
APACHE2_MOD_FILE="${S}/SkunkWeb/mod_skunkweb/.libs/mod_skunkweb.so"
APACHE1_MOD_DEFINE="SKUNKWEB"
APACHE2_MOD_DEFINE="SKUNKWEB"
APACHE1_MOD_CONF="100_mod_skunkweb"
APACHE2_MOD_CONF="100_mod_skunkweb"
need_apache
pkg_setup() {
enewgroup skunkweb
enewuser skunkweb -1 /bin/false /usr/share/skunkweb skunkweb
}
src_compile() {
local apxs
use apache2 && apxs="${APXS2}"
use apache2 || apxs="${APXS1}"
econf \
--with-user=skunkweb \
--with-group=skunkweb \
--localstatedir=/var/lib/skunkweb \
--bindir=/usr/bin \
--libdir=/usr/lib/skunkweb \
--sysconfdir=/etc/skunkweb \
--prefix=/usr/share/skunkweb \
--with-cache=/var/lib/skunkweb/cache \
--with-docdir=/usr/share/doc/${P} \
--with-logdir=/var/log/skunkweb \
--with-python=/usr/bin/python \
--with-apxs=${apxs} || die "configure failed"
emake || die
}
src_install() {
make DESTDIR=${D} APXSFLAGS="-c" install || die "make install failed"
apache-module_src_install
# dirs --------------------------------------------------------------
keepdir ${D}/var/{lib,log}/${PN}
keepdir ${D}/var/lib/${PN}/run
chown -R skunkweb:skunkweb ${D}/var/{lib,log}/${PN}
# scripts------------------------------------------------------------
exeinto /etc/init.d
newexe ${FILESDIR}/skunkweb-init skunkweb
exeinto /etc/cron.daily
newexe ${FILESDIR}/skunkweb-cron-cache_cleaner skunkweb-cache_cleaner
# docs --------------------------------------------------------------
dodoc README ChangeLog NEWS HACKING ACKS INSTALL
if use doc; then
dodir /usr/share/doc/${PF}
cp docs/paper-letter/*.pdf ${D}/usr/share/doc/${PF}
ewarn "Some docs are still in upstream cvs (i.e.: formlib, pydo2)"
fi
}
|