Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/webapp-config:master commit in: examples/
Date: Thu, 28 Jun 2012 00:21:01
Message-Id: 1340842838.387d41fdfec36d12276758e3029e79965095f057.blueness@gentoo
1 commit: 387d41fdfec36d12276758e3029e79965095f057
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 00:20:38 2012 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 00:20:38 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=387d41fd
7
8 Remove examples
9
10 ---
11 examples/phpmyadmin-2.5.4-r1.ebuild | 93 -----------------------------------
12 examples/phpmyadmin-2.5.4-r2.ebuild | 92 ----------------------------------
13 examples/postinstall-en.txt | 13 -----
14 3 files changed, 0 insertions(+), 198 deletions(-)
15
16 diff --git a/examples/phpmyadmin-2.5.4-r1.ebuild b/examples/phpmyadmin-2.5.4-r1.ebuild
17 deleted file mode 100644
18 index d84d7ad..0000000
19 --- a/examples/phpmyadmin-2.5.4-r1.ebuild
20 +++ /dev/null
21 @@ -1,93 +0,0 @@
22 -# Copyright 1999-2003 Gentoo Technologies, Inc.
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Header: /home/cvsroot/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.5.4.ebuild,v 1.6 2003/12/15 20:03:27 stuart Exp $
25 -
26 -inherit webapp
27 -
28 -MY_P=phpMyAdmin-${PV/_p/-pl}
29 -DESCRIPTION="Web-based administration for MySQL database in PHP"
30 -HOMEPAGE="http://phpmyadmin.sourceforge.net/"
31 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}-php.tar.bz2"
32 -RESTRICT="nomirror"
33 -LICENSE="GPL-2"
34 -KEYWORDS="alpha arm ppc hppa mips sparc x86 amd64"
35 -DEPEND=">=net-www/apache-1.3
36 - >=dev-db/mysql-3.21 <dev-db/mysql-5.0
37 - >=dev-php/mod_php-3.0.8
38 - sys-apps/findutils"
39 -S=${WORKDIR}/${MY_P}
40 -
41 -src_unpack() {
42 - unpack ${A}
43 - epatch ${FILESDIR}/config.inc.php-${PV}.patch
44 -
45 - # Remove .cvs* files and CVS directories
46 - find ${S} -name .cvs\* -or \( -type d -name CVS -prune \) | xargs rm -rf
47 -}
48 -
49 -src_compile() {
50 - einfo "Setting random user/password details for the controluser"
51 -
52 - local pmapass="${RANDOM}${RANDOM}${RANDOM}${RANDOM}"
53 - mv config.inc.php ${T}/config.inc.php
54 - sed -e "s/@pmapass@/${pmapass}/g" \
55 - ${T}/config.inc.php > config.inc.php
56 - sed -e "s/@pmapass@/${pmapass}/g" \
57 - ${FILESDIR}/mysql-setup.sql.in-${PV} > ${T}/mysql-setup.sql
58 -}
59 -
60 -src_install() {
61 - webapp_src_preinst
62 -
63 - local docs="ANNOUNCE.txt CREDITS Documentation.txt RELEASE-DATE-${PV} TODO ChangeLog LICENSE README"
64 -
65 - # install the SQL scripts available to us
66 - #
67 - # unfortunately, we do not have scripts to upgrade from older versions
68 - # these are things we need to add at a later date
69 -
70 - webapp_sqlscript mysql ${T}/mysql-setup.sql
71 -
72 - # handle documentation files
73 - #
74 - # NOTE that doc files go into /usr/share/doc as normal; they do NOT
75 - # get installed per vhost!
76 -
77 - dodoc ${docs}
78 - for doc in ${docs} INSTALL; do
79 - rm -f ${doc}
80 - done
81 -
82 - # Copy the app's main files
83 -
84 - einfo "Installing main files"
85 - cp -r . ${D}${MY_HTDOCSDIR}
86 -
87 - # Identify the configuration files that this app uses
88 -
89 - webapp_configfile ${MY_HTDOCSDIR}/config.inc.php
90 -
91 - # Identify any script files that need #! headers adding to run under
92 - # a CGI script (such as PHP/CGI)
93 - #
94 - # for phpmyadmin, we *assume* that all .php files that don't end in
95 - # .inc.php need to have CGI/BIN support added
96 -
97 - for x in `find . -name '*.php' -print | grep -v 'inc.php'` ; do
98 - webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
99 - done
100 -
101 - # there are no files which need to be owned by the web server
102 -
103 - webapp_serverowned ${MY_HTDOCSDIR}
104 -
105 - # add the post-installation instructions
106 -
107 - webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
108 -
109 - # all done
110 - #
111 - # now we let the eclass strut its stuff ;-)
112 -
113 - webapp_src_install
114 -}
115
116 diff --git a/examples/phpmyadmin-2.5.4-r2.ebuild b/examples/phpmyadmin-2.5.4-r2.ebuild
117 deleted file mode 100644
118 index 88beeb1..0000000
119 --- a/examples/phpmyadmin-2.5.4-r2.ebuild
120 +++ /dev/null
121 @@ -1,92 +0,0 @@
122 -# Copyright 1999-2003 Gentoo Technologies, Inc.
123 -# Distributed under the terms of the GNU General Public License v2
124 -# $Header: /home/cvsroot/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.5.4.ebuild,v 1.6 2003/12/15 20:03:27 stuart Exp $
125 -
126 -inherit eutils
127 -inherit webapp
128 -
129 -MY_P=phpMyAdmin-${PV/_p/-pl}
130 -DESCRIPTION="Web-based administration for MySQL database in PHP"
131 -HOMEPAGE="http://phpmyadmin.sourceforge.net/"
132 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}-php.tar.bz2"
133 -RESTRICT="nomirror"
134 -LICENSE="GPL-2"
135 -KEYWORDS="alpha arm ppc hppa mips sparc x86 amd64"
136 -DEPEND=">=net-www/apache-1.3
137 - >=dev-db/mysql-3.21 <dev-db/mysql-5.0
138 - >=dev-php/mod_php-3.0.8
139 - sys-apps/findutils"
140 -S=${WORKDIR}/${MY_P}
141 -
142 -src_unpack() {
143 - unpack ${A}
144 - epatch ${FILESDIR}/config.inc.php-${PV}.patch
145 -
146 - # Remove .cvs* files and CVS directories
147 - find ${S} -name .cvs\* -or \( -type d -name CVS -prune \) | xargs rm -rf
148 -}
149 -
150 -src_compile() {
151 - einfo "Setting random user/password details for the controluser"
152 -
153 - local pmapass="${RANDOM}${RANDOM}${RANDOM}${RANDOM}"
154 - mv config.inc.php ${T}/config.inc.php
155 - sed -e "s/@pmapass@/${pmapass}/g" \
156 - ${T}/config.inc.php > config.inc.php
157 - sed -e "s/@pmapass@/${pmapass}/g" \
158 - ${FILESDIR}/mysql-setup.sql.in-${PV} > ${T}/mysql-setup.sql
159 -}
160 -
161 -src_install() {
162 - webapp_src_preinst
163 -
164 - local docs="ANNOUNCE.txt CREDITS Documentation.txt RELEASE-DATE-${PV} TODO ChangeLog LICENSE README"
165 -
166 - # install the SQL scripts available to us
167 - #
168 - # unfortunately, we do not have scripts to upgrade from older versions
169 - # these are things we need to add at a later date
170 -
171 - webapp_sqlscript mysql ${T}/mysql-setup.sql
172 -
173 - # handle documentation files
174 - #
175 - # NOTE that doc files go into /usr/share/doc as normal; they do NOT
176 - # get installed per vhost!
177 -
178 - dodoc ${docs}
179 - for doc in ${docs} INSTALL; do
180 - rm -f ${doc}
181 - done
182 -
183 - # Copy the app's main files
184 -
185 - einfo "Installing main files"
186 - cp -r . ${D}${MY_HTDOCSDIR}
187 -
188 - # Identify the configuration files that this app uses
189 -
190 - webapp_configfile ${MY_HTDOCSDIR}/config.inc.php
191 -
192 - # Identify any script files that need #! headers adding to run under
193 - # a CGI script (such as PHP/CGI)
194 - #
195 - # for phpmyadmin, we *assume* that all .php files that don't end in
196 - # .inc.php need to have CGI/BIN support added
197 -
198 - for x in `find . -name '*.php' -print | grep -v 'inc.php'` ; do
199 - webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
200 - done
201 -
202 - # there are no files which need to be owned by the web server
203 -
204 - # add the post-installation instructions
205 -
206 - webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
207 -
208 - # all done
209 - #
210 - # now we let the eclass strut its stuff ;-)
211 -
212 - webapp_src_install
213 -}
214
215 diff --git a/examples/postinstall-en.txt b/examples/postinstall-en.txt
216 deleted file mode 100644
217 index 4bd19f0..0000000
218 --- a/examples/postinstall-en.txt
219 +++ /dev/null
220 @@ -1,13 +0,0 @@
221 -To complete installation, you must
222 -
223 -1. Update MySQL's grant tables and the pmadb database:
224 - mysql -u root -p < ${MY_SQLSCRIPTSDIR}/mysql/${PVR}_create.sql
225 -2. Reload MySQL:
226 - /etc/init.d/mysql restart
227 -
228 -If you are upgrading from an earlier version and are using phpMyAdmin's
229 -features for master/foreign tables be sure to read
230 - http://localhost/phpmyadmin/Documentation.html#col_com
231 -You will need to perform the ALTER TABLE step yourself.
232 -
233 -Finally, point your browser to http://localhost/phpmyadmin/.