Gentoo Archives: gentoo-commits

From: "Jeremy Huddleston (eradicator)" <eradicator@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/squirrelmail: ChangeLog squirrelmail-1.4.11.ebuild
Date: Sat, 27 Oct 2007 23:25:38
Message-Id: E1Ilv24-00070q-QO@stork.gentoo.org
1 eradicator 07/10/27 23:25:32
2
3 Modified: ChangeLog
4 Added: squirrelmail-1.4.11.ebuild
5 Log:
6 Version bump to core package and compatibility plugin.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.105 mail-client/squirrelmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/ChangeLog?rev=1.105&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/ChangeLog?rev=1.105&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/ChangeLog?r1=1.104&r2=1.105
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v
19 retrieving revision 1.104
20 retrieving revision 1.105
21 diff -u -r1.104 -r1.105
22 --- ChangeLog 15 Oct 2007 14:30:42 -0000 1.104
23 +++ ChangeLog 27 Oct 2007 23:25:32 -0000 1.105
24 @@ -1,6 +1,12 @@
25 # ChangeLog for mail-client/squirrelmail
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v 1.104 2007/10/15 14:30:42 corsair Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v 1.105 2007/10/27 23:25:32 eradicator Exp $
29 +
30 +*squirrelmail-1.4.11 (27 Oct 2007)
31 +
32 + 27 Oct 2007; Jeremy Huddleston <eradicator@g.o>
33 + +squirrelmail-1.4.11.ebuild:
34 + Version bump to core package and compatibility plugin.
35
36 15 Oct 2007; Markus Rothe <corsair@g.o>
37 squirrelmail-1.5.1-r6.ebuild:
38
39
40
41 1.1 mail-client/squirrelmail/squirrelmail-1.4.11.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: squirrelmail-1.4.11.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.11.ebuild,v 1.1 2007/10/27 23:25:32 eradicator Exp $
51
52 IUSE="crypt ldap spell ssl filter mysql postgres nls"
53
54 inherit webapp eutils
55
56 DESCRIPTION="Webmail for nuts!"
57
58 # Plugin Versions
59 COMPATIBILITY_VER=2.0.9-1.0
60 USERDATA_VER=0.9-1.4.0
61 ADMINADD_VER=0.1-1.4.0
62 AMAVIS_VER=0.8.0-1.4
63 GPG_VER=2.1
64 LDAP_USERDATA_VER=0.4
65 SECURELOGIN_VER=1.3-1.2.8
66 SHOWSSL_VER=2.2-1.2.8
67 LOCALES_VER=1.4.9-20070106
68 DECODING_VER=1.2
69
70 MY_P=${P/_rc/-RC}
71 S="${WORKDIR}/${MY_P}"
72
73 PLUGINS_LOC="http://www.squirrelmail.org/plugins"
74 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
75 mirror://sourceforge/${PN}/squirrelmail-decode-${DECODING_VER}.tar.bz2
76 mirror://sourceforge/retruserdata/retrieveuserdata.${USERDATA_VER}.tar.gz
77 ${PLUGINS_LOC}/compatibility-${COMPATIBILITY_VER}.tar.gz
78 ssl? ( ${PLUGINS_LOC}/secure_login-${SECURELOGIN_VER}.tar.gz )
79 ssl? ( ${PLUGINS_LOC}/show_ssl_link-${SHOWSSL_VER}.tar.gz )
80 ${PLUGINS_LOC}/admin_add.${ADMINADD_VER}.tar.gz
81 filter? ( ${PLUGINS_LOC}/amavisnewsql-0.8.0-1.4.tar.gz )
82 crypt? ( ${PLUGINS_LOC}/gpg-${GPG_VER}.tar.gz )
83 ldap? ( ${PLUGINS_LOC}/ldapuserdata-${LDAP_USERDATA_VER}.tar.gz )
84 nls? ( mirror://sourceforge/${PN}/all_locales-${LOCALES_VER}.tar.bz2 )"
85
86 HOMEPAGE="http://www.squirrelmail.org/"
87
88 LICENSE="GPL-2"
89 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
90
91 DEPEND=""
92
93 RDEPEND="virtual/php
94 virtual/perl-DB_File
95 crypt? ( app-crypt/gnupg )
96 ldap? ( net-nds/openldap )
97 spell? ( || ( app-text/aspell app-text/ispell ) )
98 filter? ( mail-filter/amavisd-new dev-php/PEAR-Log dev-php/PEAR-DB dev-php/PEAR-Net_SMTP )
99 postgres? ( dev-php/PEAR-DB )
100 mysql? ( dev-php/PEAR-DB )"
101
102 src_unpack() {
103 unpack ${MY_P}.tar.bz2
104 unpack squirrelmail-decode-${DECODING_VER}.tar.bz2
105
106 cd ${S}
107
108 mv config/config_default.php config/config.php
109
110 sed -i "s:'/var/local/squirrelmail/data/':SM_PATH . 'data/':" config/config.php
111
112 # Now do the plugins
113 cd ${S}/plugins
114
115 sed -i 's:/usr/games/fortune:/usr/bin/fortune:g' fortune/setup.php || die "Unable to fix fortunes plugin."
116
117 unpack compatibility-${COMPATIBILITY_VER}.tar.gz
118
119 unpack admin_add.${ADMINADD_VER}.tar.gz
120
121 unpack retrieveuserdata.${USERDATA_VER}.tar.gz
122
123 use filter &&
124 unpack amavisnewsql-${AMAVIS_VER}.tar.gz &&
125 mv amavisnewsql/config.php.dist amavisnewsql/config.php
126
127 use crypt &&
128 unpack gpg-${GPG_VER}.tar.gz
129
130 use ldap &&
131 unpack ldapuserdata-${LDAP_USERDATA_VER}.tar.gz &&
132 epatch ${FILESDIR}/ldapuserdata-${LDAP_USERDATA_VER}-gentoo.patch &&
133 mv ldapuserdata/config_sample.php ldapuserdata/config.php
134
135 use ssl &&
136 unpack secure_login-${SECURELOGIN_VER}.tar.gz &&
137 mv secure_login/config.sample.php secure_login/config.php &&
138 unpack show_ssl_link-${SHOWSSL_VER}.tar.gz &&
139 mv show_ssl_link/config.php.sample show_ssl_link/config.php
140
141 use nls &&
142 cd ${S} &&
143 unpack all_locales-${LOCALES_VER}.tar.bz2
144
145 cd ${S}
146 use crypt && epatch ${FILESDIR}/squirrelmail-gpg-2.1-CVE-2005-1924.patch
147 }
148
149 src_compile() {
150 #we need to have this empty function ... default compile hangs
151 echo "Nothing to compile"
152 }
153
154 src_install() {
155 webapp_src_preinst
156
157 # handle documentation files
158 #
159 # NOTE that doc files go into /usr/share/doc as normal; they do NOT
160 # get installed per vhost!
161
162 for doc in AUTHORS COPYING ChangeLog INSTALL README ReleaseNotes UPGRADE; do
163 dodoc ${doc}
164 rm -f ${doc}
165 done
166
167 docinto compatibility
168 for doc in plugins/compatibility/INSTALL plugins/compatibility/README; do
169 dodoc ${doc}
170 rm -f ${doc}
171 done
172
173 docinto admin_add
174 for doc in plugins/admin_add/README; do
175 dodoc ${doc}
176 rm -f ${doc}
177 done
178
179 docinto retrieveuserdata
180 for doc in plugins/retrieveuserdata/INSTALL plugins/retrieveuserdata/changelog plugins/retrieveuserdata/users_example.txt; do
181 dodoc ${doc}
182 rm -f ${doc}
183 done
184
185 if use filter; then
186 docinto amavisnewsql
187 for doc in plugins/amavisnewsql/{CHANGELOG,README,UPGRADE}; do
188 dodoc ${doc}
189 rm -f ${doc}
190 done
191 fi
192
193 if use crypt; then
194 docinto gpg
195 for doc in plugins/gpg/README plugins/gpg/README.txt plugins/gpg/INSTALL plugins/gpg/INSTALL.txt plugins/gpg/TODO; do
196 dodoc ${doc}
197 rm -f ${doc}
198 done
199 fi
200
201 if use ldap; then
202 rm plugins/ldapuserdata/README
203 docinto ldapuserdata
204 for doc in plugins/ldapuserdata/doc/README; do
205 dodoc ${doc}
206 rm -f ${doc}
207 done
208 fi
209
210 if use ssl; then
211 docinto secure_login
212 for doc in plugins/secure_login/INSTALL plugins/secure_login/README; do
213 dodoc ${doc}
214 rm -f ${doc}
215 done
216
217 docinto show_ssl_link
218 for doc in plugins/show_ssl_link/INSTALL plugins/show_ssl_link/README; do
219 dodoc ${doc}
220 rm -f ${doc}
221 done
222 fi
223
224 # Copy the app's main files
225 einfo "Installing squirrelmail files."
226 cp -r . ${D}${MY_HTDOCSDIR}
227
228 cp ${WORKDIR}/squirrelmail-decode-${DECODING_VER}/*/*.php ${D}${MY_HTDOCSDIR}/functions/decode
229
230 # Identify the configuration files that this app uses
231 local configs="config/config.php config/config_local.php plugins/retrieveuserdata/config.php"
232 use filter && configs="${configs} plugins/amavisnewsql/config.php"
233 use crypt && configs="${configs} plugins/gpg/gpg_local_prefs.txt"
234 use ldap && configs="${configs} plugins/ldapuserdata/config.php"
235 use ssl && configs="${configs} plugins/show_ssl_link/config.php plugins/secure_login/config.php"
236
237 for file in ${configs}; do
238 webapp_configfile ${MY_HTDOCSDIR}/${file}
239 done
240
241 # Identify any script files that need #! headers adding to run under
242 # a CGI script (such as PHP/CGI)
243 #
244 # for phpmyadmin, we *assume* that all .php files that don't end in
245 # .inc.php need to have CGI/BIN support added
246
247 #for x in `find . -name '*.php' -print | grep -v 'inc.php'` ; do
248 # webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
249 #done
250
251 local server_owned="data index.php"
252 for file in ${server_owned}; do
253 webapp_serverowned ${MY_HTDOCSDIR}/${file}
254 done
255
256 # add the post-installation instructions
257 webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
258
259 # all done
260 #
261 # now we let the eclass strut its stuff ;-)
262
263 webapp_src_install
264 }
265
266
267
268 --
269 gentoo-commits@g.o mailing list