diff options
author | Renat Lumpau <rl03@gentoo.org> | 2006-05-12 11:21:32 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2006-05-12 11:21:32 +0000 |
commit | 1f2e6baa1df2fffa85d707ac6188a1fe5cf95f1a (patch) | |
tree | a31c1d6b51603f3f78eebb06df3ea44330c26f6f /dev-db/phpmyadmin | |
parent | Housekeeping (diff) | |
download | historical-1f2e6baa1df2fffa85d707ac6188a1fe5cf95f1a.tar.gz historical-1f2e6baa1df2fffa85d707ac6188a1fe5cf95f1a.tar.bz2 historical-1f2e6baa1df2fffa85d707ac6188a1fe5cf95f1a.zip |
Housekeeping
Package-Manager: portage-2.1_pre10-r5
Diffstat (limited to 'dev-db/phpmyadmin')
-rw-r--r-- | dev-db/phpmyadmin/Manifest | 53 | ||||
-rw-r--r-- | dev-db/phpmyadmin/files/config.default.php-2.7.0.patch | 66 | ||||
-rw-r--r-- | dev-db/phpmyadmin/files/digest-phpmyadmin-2.7.0_p1 | 3 | ||||
-rw-r--r-- | dev-db/phpmyadmin/files/digest-phpmyadmin-2.8.0.2 | 3 | ||||
-rw-r--r-- | dev-db/phpmyadmin/files/postinstall-en.txt | 14 | ||||
-rw-r--r-- | dev-db/phpmyadmin/files/reconfig-2.7 | 16 | ||||
-rw-r--r-- | dev-db/phpmyadmin/phpmyadmin-2.7.0_p1.ebuild | 73 | ||||
-rw-r--r-- | dev-db/phpmyadmin/phpmyadmin-2.8.0.2.ebuild | 81 |
8 files changed, 20 insertions, 289 deletions
diff --git a/dev-db/phpmyadmin/Manifest b/dev-db/phpmyadmin/Manifest index f0f92857744f..24072523f17e 100644 --- a/dev-db/phpmyadmin/Manifest +++ b/dev-db/phpmyadmin/Manifest @@ -1,55 +1,42 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 7fe54f8a70ce663ed860ea1588c95565 ChangeLog 24594 -RMD160 9286485e8a78f164e7ed698312ea53be8733e56c ChangeLog 24594 -SHA256 70e10159b92d2fc32510740a651feb2437121301174c6ea73964b20b1c990fe6 ChangeLog 24594 -MD5 ab6e8b5ecc163d415aebb7d2c42238a3 files/config.default.php-2.7.0.patch 5533 -RMD160 4b043b198dc517846e5282d0574c9a05eb6906a3 files/config.default.php-2.7.0.patch 5533 -SHA256 5956d96dd9ba02107a46302703df458cf45a495ff175d5e64b0154d9e815b7a3 files/config.default.php-2.7.0.patch 5533 +AUX config.default.php-2.8.0.patch 5553 RMD160 60869c33523751098a98a067fee3482c2c26795a SHA1 329047d7eaaf3c24bc1deb86809361fe6eb35b7c SHA256 78ab8d8910101accd03f8820210feb49a997571e66156d86255dc8fafebf16ce size 5553 MD5 9dc203a856638d41f9992d0e54f8c8f8 files/config.default.php-2.8.0.patch 5553 RMD160 60869c33523751098a98a067fee3482c2c26795a files/config.default.php-2.8.0.patch 5553 SHA256 78ab8d8910101accd03f8820210feb49a997571e66156d86255dc8fafebf16ce files/config.default.php-2.8.0.patch 5553 -MD5 1d85eb9be97d60027aaf8510dfa9f6d5 files/digest-phpmyadmin-2.7.0_p1 268 -RMD160 46a38163b7c59314e872794f64aa6e2f9aff061c files/digest-phpmyadmin-2.7.0_p1 268 -SHA256 fcb7855b1d5625530e11d71b2594ef631850ab163312d19fc98f55da39d1ba68 files/digest-phpmyadmin-2.7.0_p1 268 -MD5 64ce2122f76c1d7d16a55155aeaac368 files/digest-phpmyadmin-2.8.0.2 262 -RMD160 4bf8884ab0cf9e73dd8e34bb845e25af4a405eeb files/digest-phpmyadmin-2.8.0.2 262 -SHA256 a7a1993f2d924efeb351823c7980026c14ab638ca899e545e7bf8a0ce4c76706 files/digest-phpmyadmin-2.8.0.2 262 -MD5 7a61197a13ff34f8b2a38eb00a7d03c7 files/digest-phpmyadmin-2.8.0.3 262 -RMD160 e23fed73ca61ba1224e2ff9eae0b18e9f0ac7203 files/digest-phpmyadmin-2.8.0.3 262 -SHA256 035615ed468b8b8f393e5324019b40337ada4ff89925f624c5d132b26fe4a64b files/digest-phpmyadmin-2.8.0.3 262 +AUX mysql-setup.sql.in-2.5.6 3231 RMD160 7b462640601d77d01c8f11322cb2cb84ce8e79a6 SHA1 fa3ffac6200d8f372daccdb3051753ca94ce236d SHA256 482ada180bcaf41fa4dc103edae4a78a55f3ced1fb2becc12124b914db1dcbfe size 3231 MD5 1a6c1907f5c2327b00453d7675c13178 files/mysql-setup.sql.in-2.5.6 3231 RMD160 7b462640601d77d01c8f11322cb2cb84ce8e79a6 files/mysql-setup.sql.in-2.5.6 3231 SHA256 482ada180bcaf41fa4dc103edae4a78a55f3ced1fb2becc12124b914db1dcbfe files/mysql-setup.sql.in-2.5.6 3231 +AUX postinstall-en-2.8.0.txt 917 RMD160 00f7f94544ead826cbd64b1516389d4d17b15dac SHA1 009203c0e9fc1540c89e203c62b099c13334c55a SHA256 855e69328aa4cd40f5ec3bb75c382d7631c95d8855f5f3f11ab372ce21f9bb74 size 917 MD5 3ed90574ac9aa1cc3d0662ceedc4e96e files/postinstall-en-2.8.0.txt 917 RMD160 00f7f94544ead826cbd64b1516389d4d17b15dac files/postinstall-en-2.8.0.txt 917 SHA256 855e69328aa4cd40f5ec3bb75c382d7631c95d8855f5f3f11ab372ce21f9bb74 files/postinstall-en-2.8.0.txt 917 -MD5 465c40880998c64b5cbe5fd686b62240 files/postinstall-en.txt 591 -RMD160 77ef47191d81687c67ca05b142a217643bd27964 files/postinstall-en.txt 591 -SHA256 8f17a152a9d8d0472edc3238c7e27c472cb261c367eb86619869a8e9a2a175e7 files/postinstall-en.txt 591 -MD5 03e1c16e02d105f6fcfb56c1bf734f6e files/reconfig-2.7 319 -RMD160 c865d236bf1af7846ae4a572df35385d09985f50 files/reconfig-2.7 319 -SHA256 4f1d68f5107184bd3c3947fe4f27d25f11d0da816c143d313ec20e80b75bc2b1 files/reconfig-2.7 319 +AUX reconfig-2.8 329 RMD160 993162aa564ab7d37c7f32db439518c5cab9ace5 SHA1 0557bde5e20a06f46c4a7b1733038f7dc9745965 SHA256 526f7efb31adde131ffaff0271ea12693315c2d4e8a1f96ae4af6947815d6612 size 329 MD5 cf0af0543cb29eb88163220df6f14669 files/reconfig-2.8 329 RMD160 993162aa564ab7d37c7f32db439518c5cab9ace5 files/reconfig-2.8 329 SHA256 526f7efb31adde131ffaff0271ea12693315c2d4e8a1f96ae4af6947815d6612 files/reconfig-2.8 329 -MD5 7b6e6cf3eaafa0480ab619fadfb37e2e metadata.xml 162 -RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 metadata.xml 162 -SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 metadata.xml 162 -MD5 ed2bb53f46dfc48ddbc758d5dc07fdc6 phpmyadmin-2.7.0_p1.ebuild 2097 -RMD160 8e2e90f93ffcafadc9967b21926e0485f824b320 phpmyadmin-2.7.0_p1.ebuild 2097 -SHA256 41ba3ada95fcc36ca59ced583668d2189bd7c4b7ef0b8a52e3626a24687657de phpmyadmin-2.7.0_p1.ebuild 2097 -MD5 507b890a51276164800c48e5b6568a51 phpmyadmin-2.8.0.2.ebuild 2381 -RMD160 16da7cfd626c64e11c70cc9eba39bbc729837b90 phpmyadmin-2.8.0.2.ebuild 2381 -SHA256 9b1adc7ff3afe336e6c30b1854b7658c641f9a98abd25f88ecde399f572fb8f4 phpmyadmin-2.8.0.2.ebuild 2381 +DIST phpMyAdmin-2.8.0.3.tar.bz2 2011518 RMD160 d40d236c4041c16a1d06e1c158f14707938ab16c SHA256 89a15217b9b090ec01e1a4b90c90b2df2ac6b6e192c64385c816d33cc7efaff0 size 2011518 +EBUILD phpmyadmin-2.8.0.3.ebuild 2391 RMD160 2db5696d10b2b3a32f88589d9f98e77cee54043e SHA1 0f98082d72ec64d0865b247c98a347adb6bfa23c SHA256 697061c4acd247fbc7055eea1df8d543c03cc71bf1b08f1a03dfa9829a3d828b size 2391 MD5 389943a690695121dc305e56437d087f phpmyadmin-2.8.0.3.ebuild 2391 RMD160 2db5696d10b2b3a32f88589d9f98e77cee54043e phpmyadmin-2.8.0.3.ebuild 2391 SHA256 697061c4acd247fbc7055eea1df8d543c03cc71bf1b08f1a03dfa9829a3d828b phpmyadmin-2.8.0.3.ebuild 2391 +MISC ChangeLog 24800 RMD160 c439dc6a0fb87219cee7abe966e88687adc9a83f SHA1 9b59e51346645777b4f50c2dc1ae377fc193fc9e SHA256 bb91c9fc6e1056c0a3e7fe498efbdba6c03f967789459e8e2aa0fd6ba604b772 size 24800 +MD5 ab914ebbc9005299a5de287de49da5b6 ChangeLog 24800 +RMD160 c439dc6a0fb87219cee7abe966e88687adc9a83f ChangeLog 24800 +SHA256 bb91c9fc6e1056c0a3e7fe498efbdba6c03f967789459e8e2aa0fd6ba604b772 ChangeLog 24800 +MISC metadata.xml 162 RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 SHA1 671b30dafbea01228c8bb606af451a0795922840 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 size 162 +MD5 7b6e6cf3eaafa0480ab619fadfb37e2e metadata.xml 162 +RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 metadata.xml 162 +SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 metadata.xml 162 +MD5 7a61197a13ff34f8b2a38eb00a7d03c7 files/digest-phpmyadmin-2.8.0.3 262 +RMD160 e23fed73ca61ba1224e2ff9eae0b18e9f0ac7203 files/digest-phpmyadmin-2.8.0.3 262 +SHA256 035615ed468b8b8f393e5324019b40337ada4ff89925f624c5d132b26fe4a64b files/digest-phpmyadmin-2.8.0.3 262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFEUnhW0K3RJaeXx6cRAkieAJ9Z4aMVwS/f9lq5XRuf6cEtJ3ZRHACgyhII -hJ6GNx1MSEHpbWgwXYMhraI= -=Jn2S +iD8DBQFEZG+5EzitwsaoONoRAumCAJ4zbHw6XUgHI7o0Vz6o1GhCMHLblACcD3Ly +qrNGlhgE2tJ7wA4KNGB/lv4= +=RzWo -----END PGP SIGNATURE----- diff --git a/dev-db/phpmyadmin/files/config.default.php-2.7.0.patch b/dev-db/phpmyadmin/files/config.default.php-2.7.0.patch deleted file mode 100644 index e6af179c158c..000000000000 --- a/dev-db/phpmyadmin/files/config.default.php-2.7.0.patch +++ /dev/null @@ -1,66 +0,0 @@ ---- config.default.php.org 2003-12-02 21:59:24.000000000 +0000 -+++ config.default.php 2003-12-29 01:09:58.000000000 +0000 -@@ -72,14 +72,15 @@ - $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket') - $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection - // (requires PHP >= 4.3.0) --$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings -+$cfg['Servers'][$i]['controluser'] = 'pma'; // MySQL control user settings - // (this user must have read-only --$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user" -+$cfg['Servers'][$i]['controlpass'] = '@pmapass@'; -+ // access to the "mysql/user" - // and "mysql/db" tables). - // The controluser is also - // used for all relational - // features (pmadb) --$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)? -+$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)? - $cfg['Servers'][$i]['user'] = 'root'; // MySQL user - $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed - // with 'config' auth_type) -@@ -88,29 +89,36 @@ - // It may also be an array of db-names, where sorting order is relevant. - $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname - --$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features -+$cfg['Servers'][$i]['pmadb'] = 'pmadb'; // Database used for Relation, Bookmark and PDF Features - // (see scripts/create_tables.sql) - // - leave blank for no support - // DEFAULT: 'phpmyadmin' --$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table -+$cfg['Servers'][$i]['bookmarktable'] = 'PMA_bookmark'; -+ // Bookmark table - // - leave blank for no bookmark support - // DEFAULT: 'pma_bookmark' --$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc) -+$cfg['Servers'][$i]['relation'] = 'PMA_relation'; -+ // table to describe the relation between links (see doc) - // - leave blank for no relation-links support - // DEFAULT: 'pma_relation' --$cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields -+$cfg['Servers'][$i]['table_info'] = 'PMA_table_info'; -+ // table to describe the display fields - // - leave blank for no display fields support - // DEFAULT: 'pma_table_info' --$cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema -+$cfg['Servers'][$i]['table_coords'] = 'PMA_table_coords'; -+ // table to describe the tables position for the PDF schema - // - leave blank for no PDF schema support - // DEFAULT: 'pma_table_coords' --$cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf -+$cfg['Servers'][$i]['pdf_pages'] = 'PMA_pdf_pages'; -+ // table to describe pages of relationpdf - // - leave blank if you don't want to use this - // DEFAULT: 'pma_pdf_pages' --$cfg['Servers'][$i]['column_info'] = ''; // table to store column information -+$cfg['Servers'][$i]['column_info'] = 'PMA_column_info'; -+ // table to store column information - // - leave blank for no column comments/mime types - // DEFAULT: 'pma_column_info' --$cfg['Servers'][$i]['history'] = ''; // table to store SQL history -+$cfg['Servers'][$i]['history'] = 'PMA_history'; -+ // table to store SQL history - // - leave blank for no SQL query history - // DEFAULT: 'pma_history' - $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables diff --git a/dev-db/phpmyadmin/files/digest-phpmyadmin-2.7.0_p1 b/dev-db/phpmyadmin/files/digest-phpmyadmin-2.7.0_p1 deleted file mode 100644 index d7b3b86f9247..000000000000 --- a/dev-db/phpmyadmin/files/digest-phpmyadmin-2.7.0_p1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 39bfebd35f9a2de03504812df173f27d phpMyAdmin-2.7.0-pl1.tar.bz2 1962675 -RMD160 beca913be2a139f87e65a8798b9f3378e224d9ec phpMyAdmin-2.7.0-pl1.tar.bz2 1962675 -SHA256 0d324fd68f186b04f69ed46eb6b74577fff4f0d015dca75edcd8e089a9366865 phpMyAdmin-2.7.0-pl1.tar.bz2 1962675 diff --git a/dev-db/phpmyadmin/files/digest-phpmyadmin-2.8.0.2 b/dev-db/phpmyadmin/files/digest-phpmyadmin-2.8.0.2 deleted file mode 100644 index 841e2d783efe..000000000000 --- a/dev-db/phpmyadmin/files/digest-phpmyadmin-2.8.0.2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 9c948b20af568304cbb8ff58c322058b phpMyAdmin-2.8.0.2.tar.bz2 2010290 -RMD160 8c94abbf9479c053848374cefcf4d8046197c262 phpMyAdmin-2.8.0.2.tar.bz2 2010290 -SHA256 0973b40a42cff88a167d643f025551756ab364c0bffe3cc47365f4799e473724 phpMyAdmin-2.8.0.2.tar.bz2 2010290 diff --git a/dev-db/phpmyadmin/files/postinstall-en.txt b/dev-db/phpmyadmin/files/postinstall-en.txt deleted file mode 100644 index 74d65565bb60..000000000000 --- a/dev-db/phpmyadmin/files/postinstall-en.txt +++ /dev/null @@ -1,14 +0,0 @@ -To complete installation, you must - -1. Update MySQL's grant tables and the pmadb database: - mysql -u root -p < /usr/share/webapps/phpmyadmin/${PVR}/sqlscripts/mysql/${PVR}_create.sql - -If you are upgrading from an earlier version and are using phpMyAdmin's -features for master/foreign tables be sure to read - http://${VHOST_HOSTNAME}${VHOST_APPDIR}/Documentation.html#col_com -You will need to perform the ALTER TABLE step yourself. - -Finally, point your browser to http://${VHOST_HOSTNAME}/${VHOST_APPDIR} - -Note that you may need to edit the config file: - ${MY_INSTALLDIR}/config.inc.php diff --git a/dev-db/phpmyadmin/files/reconfig-2.7 b/dev-db/phpmyadmin/files/reconfig-2.7 deleted file mode 100644 index 84d92c08fe7c..000000000000 --- a/dev-db/phpmyadmin/files/reconfig-2.7 +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -die() { - echo "#####" - echo $1 - echo "#####" - exit 1 -} - -if [ $1 = "install" ]; then - cd ${MY_INSTALLDIR} - sed -e "s|\$cfg\['PmaAbsoluteUri'\] = '';|\$cfg\['PmaAbsoluteUri'\] = 'http://${VHOST_HOSTNAME}/${VHOST_APPDIR}';|g" -i config.default.php || die "sed failed" - -elif [ $1 = "clean" ]; then - echo $1 -fi diff --git a/dev-db/phpmyadmin/phpmyadmin-2.7.0_p1.ebuild b/dev-db/phpmyadmin/phpmyadmin-2.7.0_p1.ebuild deleted file mode 100644 index c85e15fade2a..000000000000 --- a/dev-db/phpmyadmin/phpmyadmin-2.7.0_p1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.7.0_p1.ebuild,v 1.7 2006/02/15 22:26:19 rl03 Exp $ - -inherit eutils webapp depend.php - -MY_PV=${PV/_p/-pl} -MY_P=phpMyAdmin-${MY_PV} -DESCRIPTION="Web-based administration for MySQL database in PHP" -HOMEPAGE="http://www.phpmyadmin.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" -LICENSE="GPL-2" -KEYWORDS="alpha amd64 hppa ppc sparc x86" -IUSE="" -DEPEND=">=dev-db/mysql-3.23.32 <dev-db/mysql-5.1 - sys-apps/findutils" -S=${WORKDIR}/${MY_P} - -need_php - -pkg_setup() { - webapp_pkg_setup - require_php_with_use pcre mysql session -} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/config.default.php-2.7.0.patch - - # Remove .cvs* files and CVS directories - find ${S} -name .cvs\* -or \( -type d -name CVS -prune \) | xargs rm -rf -} - -src_compile() { - einfo "Setting random user/password details for the controluser" - - local pmapass="${RANDOM}${RANDOM}${RANDOM}${RANDOM}" - sed -e "s/@pmapass@/${pmapass}/g" -i config.default.php - sed -e "s/@pmapass@/${pmapass}/g" \ - ${FILESDIR}/mysql-setup.sql.in-2.5.6 > ${T}/mysql-setup.sql -} - -src_install() { - webapp_src_preinst - - local docs="CREDITS Documentation.txt INSTALL README RELEASE-DATE-${MY_PV} TODO ChangeLog" - - # install the SQL scripts available to us - # - # unfortunately, we do not have scripts to upgrade from older versions - # these are things we need to add at a later date - - webapp_sqlscript mysql ${T}/mysql-setup.sql - - dodoc ${docs} ChangeLog - dohtml Documentation.html - - # Copy the app's main files - - einfo "Installing main files" - cp -r . ${D}${MY_HTDOCSDIR} - - webapp_configfile ${MY_HTDOCSDIR}/config.default.php - webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt - webapp_hook_script ${FILESDIR}/reconfig-2.7 - webapp_src_install - - fperms 0640 ${MY_HTDOCSDIR}/config.default.php - fowners root:apache ${MY_HTDOCSDIR}/config.default.php - # bug #88831, make sure the create script is world-readable. - fperms 0600 ${MY_SQLSCRIPTSDIR}/mysql/${PVR}_create.sql -} diff --git a/dev-db/phpmyadmin/phpmyadmin-2.8.0.2.ebuild b/dev-db/phpmyadmin/phpmyadmin-2.8.0.2.ebuild deleted file mode 100644 index 57753a48c9ef..000000000000 --- a/dev-db/phpmyadmin/phpmyadmin-2.8.0.2.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.8.0.2.ebuild,v 1.6 2006/04/08 20:46:43 halcy0n Exp $ - -inherit eutils webapp depend.php - -MY_PV=${PV/_/-} -MY_P=phpMyAdmin-${MY_PV} -DESCRIPTION="Web-based administration for MySQL database in PHP" -HOMEPAGE="http://www.phpmyadmin.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 hppa ppc sparc x86" -IUSE="" -DEPEND=">=dev-db/mysql-3.23.32 <dev-db/mysql-5.1 - sys-apps/findutils" -S=${WORKDIR}/${MY_P} - -need_php - -pkg_setup() { - webapp_pkg_setup - require_php_with_use pcre session - # see bug #124954 - if ! built_with_use -o =${PHP_PKG} mysql mysqli ; then - eerror "${PHP_PKG} needs to be re-installed with one of the following" - eerror "USE flags enabled:" - eerror - eerror "mysql or mysqli if using dev-lang/php-5" - eerror "mysql if using dev-lang/php-4" - die "Re-install ${PHP_PKG}" - fi -} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/config.default.php-2.8.0.patch - - # Remove .cvs* files and CVS directories - find ${S} -name .cvs\* -or \( -type d -name CVS -prune \) | xargs rm -rf -} - -src_compile() { - einfo "Setting random user/password details for the controluser" - - local pmapass="${RANDOM}${RANDOM}${RANDOM}${RANDOM}" - sed -e "s/@pmapass@/${pmapass}/g" -i libraries/config.default.php - sed -e "s/@pmapass@/${pmapass}/g" \ - ${FILESDIR}/mysql-setup.sql.in-2.5.6 > ${T}/mysql-setup.sql -} - -src_install() { - webapp_src_preinst - - local docs="CREDITS Documentation.txt INSTALL README RELEASE-DATE-${MY_PV} TODO ChangeLog" - - # install the SQL scripts available to us - # - # unfortunately, we do not have scripts to upgrade from older versions - # these are things we need to add at a later date - - webapp_sqlscript mysql ${T}/mysql-setup.sql - - dodoc ${docs} - dohtml Documentation.html - - # Copy the app's main files - - einfo "Installing main files" - cp -r . ${D}${MY_HTDOCSDIR} - - webapp_configfile ${MY_HTDOCSDIR}/libraries/config.default.php - webapp_serverowned ${MY_HTDOCSDIR}/libraries/config.default.php - - webapp_postinst_txt en ${FILESDIR}/postinstall-en-2.8.0.txt - webapp_hook_script ${FILESDIR}/reconfig-2.8 - webapp_src_install - # bug #88831, make sure the create script is world-readable. - fperms 0600 ${MY_SQLSCRIPTSDIR}/mysql/${PVR}_create.sql -} |