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