blob: e9f443270ffc2a503df7c2af5e253d150ff5b5be (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysqltool/mysqltool-0.95-r1.ebuild,v 1.1 2002/05/04 01:58:36 woodchip Exp $
S=${WORKDIR}/MysqlTool-${PV}
DESCRIPTION="Web interface for managing one or more mysql server installations"
SRC_URI="http://www.dajoba.com/projects/mysqltool/MysqlTool-${PV}.tar.gz"
HOMEPAGE="http://www.dajoba.com/projects/mysqltool/"
DEPEND="virtual/glibc sys-devel/perl"
RDEPEND="${DEPEND} >=net-www/apache-1.3.24-r1 >=dev-db/mysql-3.23.38
dev-perl/CGI dev-perl/DBI dev-perl/DBD-mysql dev-perl/Crypt-Blowfish"
LICENSE="GPL-2"
SLOT="0"
src_compile() {
perl Makefile.PL || die
make || die
make test || die
}
src_install() {
eval `perl '-V:installarchlib'`
mkdir -p ${D}/$installarchlib
perl Makefile.PL
make \
PREFIX=${D}/usr \
INSTALLMAN3DIR=${D}/usr/share/man/man3 \
INSTALLMAN1DIR=${D}/usr/share/man/man1 \
install || die
dodoc COPYING Changes MANIFEST README Upgrade
# the cgi and images..
dodir /home/httpd/htdocs/mysqltool
cp -a htdocs/* ${D}/home/httpd/htdocs/mysqltool
rm ${D}/home/httpd/htdocs/mysqltool/mysqltool.conf
# the config file..
insinto /etc/apache/conf/addon-modules
doins htdocs/mysqltool.conf
fowners apache.apache /etc/apache/conf/addon-modules/mysqltool.conf
fperms 0600 /etc/apache/conf/addon-modules/mysqltool.conf
# now fix its location in the main cgi..
cp ${D}/home/httpd/htdocs/mysqltool/index.cgi \
${D}/home/httpd/htdocs/mysqltool/index.cgi.orig
sed -e "s:^\(require\).*:\1 '/etc/apache/conf/addon-modules/mysqltool.conf';:" \
${D}/home/httpd/htdocs/mysqltool/index.cgi.orig > \
${D}/home/httpd/htdocs/mysqltool/index.cgi
rm ${D}/home/httpd/htdocs/mysqltool/index.cgi.orig
}
|