summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Andreetta <satya@gentoo.org>2006-03-14 09:21:01 +0000
committerChristian Andreetta <satya@gentoo.org>2006-03-14 09:21:01 +0000
commiteb21be49ea96ea4e6f15bf349e6b71656f256cca (patch)
tree2cc7d69c1a7a19a6579423a235955053b57a8d39 /www-servers/skunkweb/skunkweb-3.4.1.ebuild
parentmodular X deps (diff)
downloadgentoo-2-eb21be49ea96ea4e6f15bf349e6b71656f256cca.tar.gz
gentoo-2-eb21be49ea96ea4e6f15bf349e6b71656f256cca.tar.bz2
gentoo-2-eb21be49ea96ea4e6f15bf349e6b71656f256cca.zip
Old ebuild cleanup. 3.4.1 version bump (at the moment, the mvc service requires a dependency not in portage tree: later :-) )
(Portage version: 2.1_pre5-r4)
Diffstat (limited to 'www-servers/skunkweb/skunkweb-3.4.1.ebuild')
-rw-r--r--www-servers/skunkweb/skunkweb-3.4.1.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/www-servers/skunkweb/skunkweb-3.4.1.ebuild b/www-servers/skunkweb/skunkweb-3.4.1.ebuild
new file mode 100644
index 000000000000..e3cd5677fb5c
--- /dev/null
+++ b/www-servers/skunkweb/skunkweb-3.4.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/skunkweb/skunkweb-3.4.1.ebuild,v 1.1 2006/03/14 09:21:01 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="apache2 doc"
+
+DEPEND=">=dev-lang/python-2.2
+ >=dev-python/egenix-mx-base-2.0.4
+ app-admin/sudo"
+
+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 -1 /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 /var/{lib,log}/${PN}
+ keepdir /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
+}