Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/squirrelmail: ChangeLog squirrelmail-1.4.22.ebuild
Date: Wed, 13 Jul 2011 18:50:37
Message-Id: 20110713185027.41A5A2004B@flycatcher.gentoo.org
1 eras 11/07/13 18:50:27
2
3 Modified: ChangeLog
4 Added: squirrelmail-1.4.22.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.1.10.5/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.160 mail-client/squirrelmail/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/squirrelmail/ChangeLog?rev=1.160&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/squirrelmail/ChangeLog?rev=1.160&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/squirrelmail/ChangeLog?r1=1.159&r2=1.160
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v
20 retrieving revision 1.159
21 retrieving revision 1.160
22 diff -u -r1.159 -r1.160
23 --- ChangeLog 13 Jun 2011 18:15:49 -0000 1.159
24 +++ ChangeLog 13 Jul 2011 18:50:27 -0000 1.160
25 @@ -1,6 +1,11 @@
26 # ChangeLog for mail-client/squirrelmail
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v 1.159 2011/06/13 18:15:49 eras Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/squirrelmail/ChangeLog,v 1.160 2011/07/13 18:50:27 eras Exp $
30 +
31 +*squirrelmail-1.4.22 (13 Jul 2011)
32 +
33 + 13 Jul 2011; Eray Aslan <eras@g.o> +squirrelmail-1.4.22.ebuild:
34 + version bump
35
36 13 Jun 2011; Eray Aslan <eras@g.o> -squirrelmail-1.4.19.ebuild,
37 -squirrelmail-1.4.20.ebuild:
38
39
40
41 1.1 mail-client/squirrelmail/squirrelmail-1.4.22.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.22.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/squirrelmail/squirrelmail-1.4.22.ebuild?rev=1.1&content-type=text/plain
45
46 Index: squirrelmail-1.4.22.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.22.ebuild,v 1.1 2011/07/13 18:50:27 eras Exp $
51
52 EAPI=2
53
54 IUSE="ldap spell ssl filter mysql postgres nls"
55
56 inherit webapp eutils
57
58 DESCRIPTION="Webmail for nuts!"
59
60 # Plugin Versions
61 COMPATIBILITY_VER=2.0.16-1.0
62 USERDATA_VER=0.9-1.4.0
63 ADMINADD_VER=0.1-1.4.0
64 AMAVIS_VER=0.8.0-1.4
65 LDAP_USERDATA_VER=0.4
66 SECURELOGIN_VER=1.4-1.2.8
67 SHOWSSL_VER=2.2-1.2.8
68 LOCALES_VER=1.4.18-20090526
69 DECODING_VER=1.2
70
71 MY_P=${PN}-webmail-${PV}
72 S="${WORKDIR}/${MY_P}"
73
74 PLUGINS_LOC="http://www.squirrelmail.org/plugins"
75 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
76 mirror://sourceforge/${PN}/squirrelmail-decode-${DECODING_VER}.tar.bz2
77 mirror://sourceforge/retruserdata/retrieveuserdata.${USERDATA_VER}.tar.gz
78 ${PLUGINS_LOC}/compatibility-${COMPATIBILITY_VER}.tar.gz
79 ssl? ( ${PLUGINS_LOC}/secure_login-${SECURELOGIN_VER}.tar.gz )
80 ssl? ( ${PLUGINS_LOC}/show_ssl_link-${SHOWSSL_VER}.tar.gz )
81 ${PLUGINS_LOC}/admin_add.${ADMINADD_VER}.tar.gz
82 filter? ( ${PLUGINS_LOC}/amavisnewsql-0.8.0-1.4.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="dev-lang/php[session]
94 virtual/perl-DB_File
95 ldap? ( net-nds/openldap )
96 spell? ( || ( app-text/aspell app-text/ispell ) )
97 filter? ( mail-filter/amavisd-new dev-php/PEAR-Log dev-php/PEAR-DB dev-php/PEAR-Net_SMTP )
98 postgres? ( dev-php/PEAR-DB )
99 mysql? ( dev-php/PEAR-DB )"
100
101 src_unpack() {
102 unpack ${MY_P}.tar.bz2
103 unpack squirrelmail-decode-${DECODING_VER}.tar.bz2
104
105 cd "${S}" || die
106
107 mv config/config_default.php config/config.php || die
108
109 sed -i "s:'/var/local/squirrelmail/data/':SM_PATH . 'data/':" \
110 config/config.php || die
111
112 # Now do the plugins
113 cd "${S}/plugins" || die
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 ldap &&
128 unpack ldapuserdata-${LDAP_USERDATA_VER}.tar.gz &&
129 epatch "${FILESDIR}"/ldapuserdata-${LDAP_USERDATA_VER}-gentoo.patch &&
130 mv ldapuserdata/config_sample.php ldapuserdata/config.php
131
132 use ssl &&
133 unpack secure_login-${SECURELOGIN_VER}.tar.gz &&
134 mv secure_login/config.sample.php secure_login/config.php &&
135 unpack show_ssl_link-${SHOWSSL_VER}.tar.gz &&
136 mv show_ssl_link/config.php.sample show_ssl_link/config.php
137
138 use nls &&
139 cd "${S}" &&
140 unpack all_locales-${LOCALES_VER}.tar.bz2
141 }
142
143 src_configure() {
144 #we need to have this empty function ...
145 echo "Nothing to configure"
146 }
147
148 src_compile() {
149 #we need to have this empty function ... default compile hangs
150 echo "Nothing to compile"
151 }
152
153 src_install() {
154 webapp_src_preinst
155
156 # handle documentation files
157 #
158 # NOTE that doc files go into /usr/share/doc as normal; they do NOT
159 # get installed per vhost!
160
161 dodoc README
162
163 docinto compatibility
164 for doc in plugins/compatibility/docs/INSTALL plugins/compatibility/docs/README; do
165 dodoc ${doc}
166 rm -f ${doc}
167 done
168
169 docinto admin_add
170 for doc in plugins/admin_add/README; do
171 dodoc ${doc}
172 rm -f ${doc}
173 done
174
175 docinto retrieveuserdata
176 for doc in plugins/retrieveuserdata/INSTALL plugins/retrieveuserdata/changelog plugins/retrieveuserdata/users_example.txt; do
177 dodoc ${doc}
178 rm -f ${doc}
179 done
180
181 if use filter; then
182 docinto amavisnewsql
183 for doc in plugins/amavisnewsql/{CHANGELOG,README,UPGRADE}; do
184 dodoc ${doc}
185 rm -f ${doc}
186 done
187 fi
188
189 if use ldap; then
190 rm plugins/ldapuserdata/README
191 docinto ldapuserdata
192 for doc in plugins/ldapuserdata/doc/README; do
193 dodoc ${doc}
194 rm -f ${doc}
195 done
196 fi
197
198 if use ssl; then
199 docinto secure_login
200 for doc in plugins/secure_login/INSTALL plugins/secure_login/README; do
201 dodoc ${doc}
202 rm -f ${doc}
203 done
204
205 docinto show_ssl_link
206 for doc in plugins/show_ssl_link/INSTALL plugins/show_ssl_link/README; do
207 dodoc ${doc}
208 rm -f ${doc}
209 done
210 fi
211
212 # Copy the app's main files
213 einfo "Installing squirrelmail files."
214 cp -r . "${D}${MY_HTDOCSDIR}" || die
215
216 cp "${WORKDIR}"/squirrelmail-decode-${DECODING_VER}/*/*.php \
217 "${D}${MY_HTDOCSDIR}/functions/decode" || die
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 }