Gentoo Archives: gentoo-commits

From: "Tobias Heinlein (keytoaster)" <keytoaster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/squirrelmail: squirrelmail-1.4.20.ebuild ChangeLog
Date: Tue, 04 May 2010 14:58:29
Message-Id: 20100504145825.18C2229620@corvid.gentoo.org
1 keytoaster 10/05/04 14:58:24
2
3 Modified: ChangeLog
4 Added: squirrelmail-1.4.20.ebuild
5 Log:
6 Version bump, patch by Eray Aslan <eray.aslan@×××××××.tr>, security bug 281580
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.147 mail-client/squirrelmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/ChangeLog?rev=1.147&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/ChangeLog?rev=1.147&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/ChangeLog?r1=1.146&r2=1.147
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v
19 retrieving revision 1.146
20 retrieving revision 1.147
21 diff -u -r1.146 -r1.147
22 --- ChangeLog 13 Jul 2009 19:08:07 -0000 1.146
23 +++ ChangeLog 4 May 2010 14:58:24 -0000 1.147
24 @@ -1,6 +1,13 @@
25 # ChangeLog for mail-client/squirrelmail
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v 1.146 2009/07/13 19:08:07 dertobi123 Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v 1.147 2010/05/04 14:58:24 keytoaster Exp $
30 +
31 +*squirrelmail-1.4.20 (04 May 2010)
32 +
33 + 04 May 2010; Tobias Heinlein <keytoaster@g.o>
34 + +squirrelmail-1.4.20.ebuild:
35 + Version bump, patch by Eray Aslan <eray.aslan@×××××××.tr>, security bug
36 + 281580
37
38 13 Jul 2009; Tobias Scherbaum <dertobi123@g.o>
39 -squirrelmail-1.4.18.ebuild:
40
41
42
43 1.1 mail-client/squirrelmail/squirrelmail-1.4.20.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.20.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.20.ebuild?rev=1.1&content-type=text/plain
47
48 Index: squirrelmail-1.4.20.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.20.ebuild,v 1.1 2010/05/04 14:58:24 keytoaster Exp $
53
54 EAPI=2
55
56 IUSE="ldap spell ssl filter mysql postgres nls"
57
58 inherit webapp eutils
59
60 DESCRIPTION="Webmail for nuts!"
61
62 # Plugin Versions
63 COMPATIBILITY_VER=2.0.16-1.0
64 USERDATA_VER=0.9-1.4.0
65 ADMINADD_VER=0.1-1.4.0
66 AMAVIS_VER=0.8.0-1.4
67 LDAP_USERDATA_VER=0.4
68 SECURELOGIN_VER=1.4-1.2.8
69 SHOWSSL_VER=2.2-1.2.8
70 LOCALES_VER=1.4.18-20090526
71 DECODING_VER=1.2
72
73 MY_P=${P/_rc/-RC}
74 S="${WORKDIR}/${MY_P}"
75
76 PLUGINS_LOC="http://www.squirrelmail.org/plugins"
77 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
78 mirror://sourceforge/${PN}/squirrelmail-decode-${DECODING_VER}.tar.bz2
79 mirror://sourceforge/retruserdata/retrieveuserdata.${USERDATA_VER}.tar.gz
80 ${PLUGINS_LOC}/compatibility-${COMPATIBILITY_VER}.tar.gz
81 ssl? ( ${PLUGINS_LOC}/secure_login-${SECURELOGIN_VER}.tar.gz )
82 ssl? ( ${PLUGINS_LOC}/show_ssl_link-${SHOWSSL_VER}.tar.gz )
83 ${PLUGINS_LOC}/admin_add.${ADMINADD_VER}.tar.gz
84 filter? ( ${PLUGINS_LOC}/amavisnewsql-0.8.0-1.4.tar.gz )
85 ldap? ( ${PLUGINS_LOC}/ldapuserdata-${LDAP_USERDATA_VER}.tar.gz )
86 nls? ( mirror://sourceforge/${PN}/all_locales-${LOCALES_VER}.tar.bz2 )"
87
88 HOMEPAGE="http://www.squirrelmail.org/"
89
90 LICENSE="GPL-2"
91 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
92
93 DEPEND=""
94
95 RDEPEND="dev-lang/php[session]
96 virtual/perl-DB_File
97 ldap? ( net-nds/openldap )
98 spell? ( || ( app-text/aspell app-text/ispell ) )
99 filter? ( mail-filter/amavisd-new dev-php/PEAR-Log dev-php/PEAR-DB dev-php/PEAR-Net_SMTP )
100 postgres? ( dev-php/PEAR-DB )
101 mysql? ( dev-php/PEAR-DB )"
102
103 src_unpack() {
104 unpack ${MY_P}.tar.bz2
105 unpack squirrelmail-decode-${DECODING_VER}.tar.bz2
106
107 cd "${S}"
108
109 mv config/config_default.php config/config.php
110
111 sed -i "s:'/var/local/squirrelmail/data/':SM_PATH . 'data/':" config/config.php
112
113 # Now do the plugins
114 cd "${S}/plugins"
115
116 sed -i 's:/usr/games/fortune:/usr/bin/fortune:g' fortune/setup.php || die "Unable to fix fortunes plugin."
117
118 unpack compatibility-${COMPATIBILITY_VER}.tar.gz
119
120 unpack admin_add.${ADMINADD_VER}.tar.gz
121
122 unpack retrieveuserdata.${USERDATA_VER}.tar.gz
123
124 use filter &&
125 unpack amavisnewsql-${AMAVIS_VER}.tar.gz &&
126 mv amavisnewsql/config.php.dist amavisnewsql/config.php
127
128 use ldap &&
129 unpack ldapuserdata-${LDAP_USERDATA_VER}.tar.gz &&
130 epatch "${FILESDIR}"/ldapuserdata-${LDAP_USERDATA_VER}-gentoo.patch &&
131 mv ldapuserdata/config_sample.php ldapuserdata/config.php
132
133 use ssl &&
134 unpack secure_login-${SECURELOGIN_VER}.tar.gz &&
135 mv secure_login/config.sample.php secure_login/config.php &&
136 unpack show_ssl_link-${SHOWSSL_VER}.tar.gz &&
137 mv show_ssl_link/config.php.sample show_ssl_link/config.php
138
139 use nls &&
140 cd "${S}" &&
141 unpack all_locales-${LOCALES_VER}.tar.bz2
142 }
143
144 src_configure() {
145 #we need to have this empty function ...
146 echo "Nothing to configure"
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 dodoc README
163
164 docinto compatibility
165 for doc in plugins/compatibility/docs/INSTALL plugins/compatibility/docs/README; do
166 dodoc ${doc}
167 rm -f ${doc}
168 done
169
170 docinto admin_add
171 for doc in plugins/admin_add/README; do
172 dodoc ${doc}
173 rm -f ${doc}
174 done
175
176 docinto retrieveuserdata
177 for doc in plugins/retrieveuserdata/INSTALL plugins/retrieveuserdata/changelog plugins/retrieveuserdata/users_example.txt; do
178 dodoc ${doc}
179 rm -f ${doc}
180 done
181
182 if use filter; then
183 docinto amavisnewsql
184 for doc in plugins/amavisnewsql/{CHANGELOG,README,UPGRADE}; do
185 dodoc ${doc}
186 rm -f ${doc}
187 done
188 fi
189
190 if use ldap; then
191 rm plugins/ldapuserdata/README
192 docinto ldapuserdata
193 for doc in plugins/ldapuserdata/doc/README; do
194 dodoc ${doc}
195 rm -f ${doc}
196 done
197 fi
198
199 if use ssl; then
200 docinto secure_login
201 for doc in plugins/secure_login/INSTALL plugins/secure_login/README; do
202 dodoc ${doc}
203 rm -f ${doc}
204 done
205
206 docinto show_ssl_link
207 for doc in plugins/show_ssl_link/INSTALL plugins/show_ssl_link/README; do
208 dodoc ${doc}
209 rm -f ${doc}
210 done
211 fi
212
213 # Copy the app's main files
214 einfo "Installing squirrelmail files."
215 cp -r . "${D}${MY_HTDOCSDIR}"
216
217 cp "${WORKDIR}"/squirrelmail-decode-${DECODING_VER}/*/*.php "${D}${MY_HTDOCSDIR}/functions/decode"
218
219 # Identify the configuration files that this app uses
220 local configs="config/config.php config/config_local.php plugins/retrieveuserdata/config.php"
221 use filter && configs="${configs} plugins/amavisnewsql/config.php"
222 use ldap && configs="${configs} plugins/ldapuserdata/config.php"
223 use ssl && configs="${configs} plugins/show_ssl_link/config.php plugins/secure_login/config.php"
224
225 for file in ${configs}; do
226 webapp_configfile ${MY_HTDOCSDIR}/${file}
227 done
228
229 # Identify any script files that need #! headers adding to run under
230 # a CGI script (such as PHP/CGI)
231 #
232 # for phpmyadmin, we *assume* that all .php files that don't end in
233 # .inc.php need to have CGI/BIN support added
234
235 #for x in `find . -name '*.php' -print | grep -v 'inc.php'` ; do
236 # webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
237 #done
238
239 local server_owned="data index.php"
240 for file in ${server_owned}; do
241 webapp_serverowned ${MY_HTDOCSDIR}/${file}
242 done
243
244 # add the post-installation instructions
245 webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
246
247 # all done
248 #
249 # now we let the eclass strut its stuff ;-)
250
251 webapp_src_install
252 }