Magellan Linux

Contents of /trunk/extras/phpmyadmin/phpmyadmin-3.2.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4013 - (show annotations) (download)
Tue Nov 17 12:28:52 2009 UTC (14 years, 6 months ago) by niro
File size: 1974 byte(s)
-fixed docpathes patch
1 # $Id$
2
3 PNAME="phpmyadmin"
4 PVER="3.2.3"
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}-${PVER}-fix-doc-pathes.patch
30 )
31
32 #UP2SUBSTITUTE="all_languages"
33 UP2SUBSTITUTE="english"
34 UP2DATE="updatecmd_sourceforge ${PNAME} phpMyAdmin"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # fix doc pathes to /usr/share/doc/phpmyadmin-@@PVER@@
42 # and fix reading of gzip compressed files
43 mpatch ${PNAME}-${PVER}-fix-doc-pathes.patch || die
44 # now fix the @@PVER@@ pathes to ${PVER}
45 sed -i "s:@@PVER@@:${PVER}:" changelog.php license.php || die
46 }
47
48 src_install()
49 {
50 cd ${SRCDIR}
51
52 # needed directories
53 minstalldir /etc/apache2/modules.d || die
54 minstalldir /etc/phpmyadmin || die
55 minstalldir /usr/share/phpmyadmin || die
56
57 # install
58 cp -ad ${SRCDIR}/* ${BINDIR}/usr/share/phpmyadmin || die
59
60 # phpmyadmin default configuration
61 minstallfile -s config.inc-${CONF_REV} /etc/phpmyadmin/config.inc.php || die
62 mlink /etc/phpmyadmin/config.inc.php /usr/share/phpmyadmin/ || die
63
64 # apache module configuration file
65 minstallfile -s phpmyadmin.conf /etc/apache2/modules.d || die
66
67 # clean up and remove unneeded stuff
68 rm -f ${BINDIR}/usr/share/phpmyadmin/*txt || die
69 rm -f ${BINDIR}/usr/share/phpmyadmin/[CIRLT]* || die
70 rm -f ${BINDIR}/usr/share/phpmyadmin/config.sample.inc.php || die
71 rm -f ${BINDIR}/usr/share/phpmyadmin/libraries/.htaccess || die
72
73 # install docs
74 minstalldocs ChangeLog CREDITS Documentation.txt LICENSE RE* TODO || die
75 }

Properties

Name Value
svn:keywords Id