We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison dev-vcs/kallithea/kallithea-0.3.1.ebuild @ 143:b4939be30911

dev-vcs/kallithea: commenting out SQLAlchemy definition for SQLite, changing einfo to elog, warning if sqlite USE flag is set
author Daniel Neugebauer <dneuge@energiequant.de>
date Mon, 28 Mar 2016 20:50:27 +0200
parents 2389785d147c
children b4ad250ded02
comparison
equal deleted inserted replaced
142:2389785d147c 143:b4939be30911
175 # as user should configure that instead and config diffs don't show 175 # as user should configure that instead and config diffs don't show
176 # unnecessary stuff 176 # unnecessary stuff
177 sed -i -e "s/^\(\s*app_instance_uuid\s*=\).*/#\1 (run uuidgen and insert the returned UUID here)/" production.ini 177 sed -i -e "s/^\(\s*app_instance_uuid\s*=\).*/#\1 (run uuidgen and insert the returned UUID here)/" production.ini
178 sed -i -e "s/^\(\s*beaker\.session\.secret\s*=\).*/#\1 (run uuidgen and insert the returned UUID here)/" production.ini 178 sed -i -e "s/^\(\s*beaker\.session\.secret\s*=\).*/#\1 (run uuidgen and insert the returned UUID here)/" production.ini
179 179
180 # comment out sqlite DB as we don't want users to use it by accident
181 sed -i -e 's/^\(\s*\)\(sqlalchemy\.db1\.url\s*=\s*sqlite:.*\)/\1#\2/' production.ini
182
180 # rename production.ini as it requires more configuration and is hard to read 183 # rename production.ini as it requires more configuration and is hard to read
181 mv production.ini production.ini.example 184 mv production.ini production.ini.example
182 185
183 # rewrite virtualenv directory to later installation directory 186 # rewrite virtualenv directory to later installation directory
184 oldIFS="${IFS}" 187 oldIFS="${IFS}"
229 } 232 }
230 233
231 pkg_postinst() { 234 pkg_postinst() {
232 # 1 2 3 4 5 6 7 8 235 # 1 2 3 4 5 6 7 8
233 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 236 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890
234 einfo "An example configuration file has already been created so you don't need to run" 237 elog "An example configuration file has already been created so you don't need to run"
235 einfo "make-config again; please copy and edit carefully on first setup:" 238 elog "make-config again; please copy and edit carefully on first setup:"
236 einfo " cp -a ${installConfigPath}/production.ini.example ${installConfigPath}/production.ini" 239 elog " cp -a ${installConfigPath}/production.ini.example ${installConfigPath}/production.ini"
237 einfo " \$EDITOR ${installConfigPath}/production.ini" 240 elog " \$EDITOR ${installConfigPath}/production.ini"
238 einfo "" 241 elog ""
239 einfo "After updates, please compare what has changed and copy any necessary changes:" 242 elog "After updates, please compare what has changed and copy any necessary changes:"
240 einfo " diff -u ${installConfigPath}/production.ini ${installConfigPath}/production.ini.example" 243 elog " diff -u ${installConfigPath}/production.ini ${installConfigPath}/production.ini.example"
241 einfo "" 244 elog ""
242 einfo "You still need to follow Kallithea's other setup steps according to the" 245 elog "You still need to follow Kallithea's other setup steps according to the"
243 einfo "instructions at:" 246 elog "instructions at:"
244 einfo " ${urlDocumentationSetup}" 247 elog " ${urlDocumentationSetup}"
245 einfo "" 248 elog ""
246 einfo "When doing so, please mind that Kallithea was installed into a Python virtual" 249 elog "When doing so, please mind that Kallithea was installed into a Python virtual"
247 einfo "environment that has to be \"activated\" before it can be used. To do so," 250 elog "environment that has to be \"activated\" before it can be used. To do so,"
248 einfo "you will have to run a dedicated shell and initialize the environment by running" 251 elog "you will have to run a dedicated shell and initialize the environment by running"
249 einfo "" 252 elog ""
250 einfo " source ${installBasePath}/${virtualenvActivationPath}" 253 elog " source ${installBasePath}/${virtualenvActivationPath}"
251 einfo "" 254 elog ""
252 einfo "We altered the default config slightly. It may be best to have a look at our" 255 elog "We altered the default config slightly. It may be best to have a look at our"
253 einfo "short example on how to setup hosting with Apache and mod_wsgi, even if you" 256 elog "short example on how to setup hosting with Apache and mod_wsgi, even if you"
254 einfo "prefer another method of hosting Kallithea:" 257 elog "prefer another method of hosting Kallithea:"
255 einfo " ${urlDocumentationMegacoffee}" 258 elog " ${urlDocumentationMegacoffee}"
256 einfo "" 259 elog ""
257 #einfo "We can wrap those commands for you if you run (no prior activation needed):" 260 #elog "We can wrap those commands for you if you run (no prior activation needed):"
258 #einfo " emerge --config =${CATEGORY}/${PF}" 261 #elog " emerge --config =${CATEGORY}/${PF}"
259 #einfo "" 262 #elog ""
260 einfo "Kallithea also provides a way to migrate your database if you are coming from" 263 elog "Kallithea also provides a way to migrate your database if you are coming from"
261 einfo "RhodeCode 2.2 or below. Instructions can be found at:" 264 elog "RhodeCode 2.2 or below. Instructions can be found at:"
262 einfo "${urlDocumentationRhodeCode}" 265 elog "${urlDocumentationRhodeCode}"
263 einfo "" 266 elog ""
264 ewarn "Bear in mind that the whole purpose of a Python virtual environment is to" 267 ewarn "Bear in mind that the whole purpose of a Python virtual environment is to"
265 ewarn "isolate complex dependency installations from other instances installed on the" 268 ewarn "isolate complex dependency installations from other instances installed on the"
266 ewarn "same system so you will have to remember to re-emerge this ebuild when" 269 ewarn "same system so you will have to remember to re-emerge this ebuild when"
267 ewarn "Kallithea's dependencies received bug and in particular security fixes (assuming" 270 ewarn "Kallithea's dependencies received bug and in particular security fixes (assuming"
268 ewarn "it allows any more recent versions to be installed)." 271 ewarn "it allows any more recent versions to be installed)."
272
273 if use sqlite ; then
274 ewarn ""
275 ewarn "You chose to use SQLite for Kallithea. Please be advised that this is *ONLY* for"
276 ewarn "testing purposes, please avoid using SQLite in production and choose a different"
277 ewarn "database instead."
278 fi
269 } 279 }
270 280
271 281
272 282
273 283