/[gentoo-x86]/app-admin/webapp-config/webapp-config-1.50.16-r1.ebuild
Gentoo

Contents of /app-admin/webapp-config/webapp-config-1.50.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Jul 30 07:17:18 2007 UTC (7 years, 3 months ago) by corsair
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable on ppc64; bug #187081
(Portage version: 2.1.2.9)

1 hollow 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 corsair 1.2 # $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.16-r1.ebuild,v 1.1 2007/07/29 23:47:43 hollow Exp $
4 hollow 1.1
5     inherit eutils distutils
6    
7     DESCRIPTION="Gentoo's installer for web-based applications"
8     HOMEPAGE="http://www.gentoo.org/"
9     SRC_URI="http://build.pardus.de/downloads/${P}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 corsair 1.2 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
14 hollow 1.1 IUSE=""
15    
16     DEPEND=""
17    
18     src_unpack() {
19     unpack ${A}
20     cd "${S}"
21     epatch "${FILESDIR}"/${P}-apache-move.patch
22     }
23    
24     src_install() {
25    
26     # According to this discussion:
27     # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
28     # distutils does not provide for specifying two different script install
29     # locations. Since we only install one script here the following should
30     # be ok
31     distutils_src_install --install-scripts="/usr/sbin"
32    
33     dodir /etc/vhosts
34     cp config/webapp-config ${D}/etc/vhosts/
35     keepdir /usr/share/webapps
36     keepdir /var/db/webapps
37     dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt TODO.txt CHANGES.txt examples/postinstall-en.txt
38     doman doc/webapp-config.5 doc/webapp-config.8 doc/webapp.eclass.5
39     dohtml doc/webapp-config.5.html doc/webapp-config.8.html doc/webapp.eclass.5.html
40     }
41    
42     src_test() {
43     cd ${S}
44     distutils_python_version
45     if [[ $PYVER_MAJOR > 1 ]] && [[ $PYVER_MINOR > 3 ]] ; then
46     elog "Running webapp-config doctests..."
47     if ! PYTHONPATH="." ${python} WebappConfig/tests/dtest.py; then
48     eerror "DocTests failed - please submit a bug report"
49     die "DocTesting failed!"
50     fi
51     else
52     elog "Python version below 2.4! Disabling tests."
53     fi
54     }
55    
56     pkg_postinst() {
57     echo
58     elog "Now that you have upgraded webapp-config, you **must** update your"
59     elog "config files in /etc/vhosts/webapp-config before you emerge any"
60     elog "packages that use webapp-config."
61     echo
62     epause 5
63     }

  ViewVC Help
Powered by ViewVC 1.1.20