Contents of /trunk/extras/phpmyadmin/phpmyadmin-2.11.8.1-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
File size: 1984 byte(s)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
File size: 1984 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/phpmyadmin/phpmyadmin-2.11.8.1-r1.smage2,v 1.1 2008/08/17 17:58:19 niro Exp $ |
2 | |
3 | PNAME="phpmyadmin" |
4 | PVER="2.11.8.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-db" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="phpMyAdmin - a web-based administration frontend for MySQL databases written in PHP." |
11 | HOMEPAGE="http://www.phpmyadmin.net/" |
12 | |
13 | DEPEND=">= net-www/apache2-2 |
14 | >= dev-lang/php5-5 |
15 | >= dev-db/mysql5-5.0" |
16 | |
17 | SRCFILE="phpMyAdmin-${PVER}-all-languages.tar.bz2" |
18 | SRCDIR="${BUILDDIR}/phpMyAdmin-${PVER}-all-languages" |
19 | |
20 | CONF_REV=1.3 |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | sourceforge://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/config.inc-${CONF_REV} |
28 | mirror://${PNAME}/phpmyadmin.conf |
29 | mirror://${PNAME}/${PNAME}-2.11.2.1-fix-doc-pathes.patch |
30 | ) |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # fix doc pathes to /usr/share/doc/phpmyadmin-@@PVER@@ |
38 | # and fix reading of gzip compressed files |
39 | mpatch ${PNAME}-2.11.2.1-fix-doc-pathes.patch || die |
40 | # now fix the @@PVER@@ pathes to ${PVER} |
41 | sed -i "s:@@PVER@@:${PVER}:" changelog.php license.php readme.php || die |
42 | } |
43 | |
44 | src_install() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | # needed directories |
49 | minstalldir /etc/apache2/modules.d || die |
50 | minstalldir /etc/phpmyadmin || die |
51 | minstalldir /usr/share/phpmyadmin || die |
52 | |
53 | # install |
54 | cp -ad ${SRCDIR}/* ${BINDIR}/usr/share/phpmyadmin || die |
55 | |
56 | # phpmyadmin default configuration |
57 | minstallfile -s config.inc-${CONF_REV} /etc/phpmyadmin/config.inc.php || die |
58 | mlink /etc/phpmyadmin/config.inc.php /usr/share/phpmyadmin/ || die |
59 | |
60 | # apache module configuration file |
61 | minstallfile -s phpmyadmin.conf /etc/apache2/modules.d || die |
62 | |
63 | # clean up and remove unneeded stuff |
64 | rm -f ${BINDIR}/usr/share/phpmyadmin/*txt || die |
65 | rm -f ${BINDIR}/usr/share/phpmyadmin/[CIRLT]* || die |
66 | rm -f ${BINDIR}/usr/share/phpmyadmin/config.sample.inc.php || die |
67 | rm -f ${BINDIR}/usr/share/phpmyadmin/libraries/.htaccess || die |
68 | |
69 | # install docs |
70 | minstalldocs ChangeLog CREDITS Documentation.txt LICENSE RE* TODO || die |
71 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |