1 |
# Copyright 1999-2006 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.6.ebuild,v 1.1 2006/01/04 21:53:25 wrobel 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://dev.gentoo.org/~wrobel/webapp-config/${PF}.tar.gz" |
10 |
|
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="~x86" |
14 |
IUSE="" |
15 |
S=${WORKDIR}/${PF} |
16 |
|
17 |
DEPEND="" |
18 |
|
19 |
src_install() { |
20 |
|
21 |
# According to this discussion: |
22 |
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html |
23 |
# distutils does not provide for specifying two different script install |
24 |
# locations. Since we only install one script here the following should |
25 |
# be ok |
26 |
distutils_src_install --install-scripts="/usr/sbin" |
27 |
|
28 |
dodir /etc/vhosts |
29 |
cp config/webapp-config ${D}/etc/vhosts/ |
30 |
keepdir /usr/share/webapps |
31 |
dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt TODO.txt CHANGES.txt examples/postinstall-en.txt |
32 |
doman doc/webapp-config.5 doc/webapp-config.8 doc/webapp.eclass.5 |
33 |
dohtml doc/webapp-config.5.html doc/webapp-config.8.html doc/webapp.eclass.5.html |
34 |
} |
35 |
|
36 |
src_test() { |
37 |
cd ${S} |
38 |
einfo "Running webapp-config doctests..." |
39 |
if ! PYTHONPATH="." ${python} WebappConfig/tests/dtest.py; then |
40 |
eerror "DocTests failed - please submit a bug report" |
41 |
die "DocTesting failed!" |
42 |
fi |
43 |
} |
44 |
|
45 |
pkg_postinst() { |
46 |
echo |
47 |
einfo "Now that you have upgraded webapp-config, you **must** update your" |
48 |
einfo "config files in /etc/vhosts/webapp-config before you emerge any" |
49 |
einfo "packages that use webapp-config." |
50 |
echo |
51 |
epause 5 |
52 |
} |