packages: pootle/pootle.spec, pootle/homedir.patch (NEW) - setup own homedi...

glen glen at pld-linux.org
Tue May 11 13:02:25 CEST 2010


Author: glen                         Date: Tue May 11 11:02:25 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- setup own homedir env var

---- Files affected:
packages/pootle:
   pootle.spec (1.6 -> 1.7) , homedir.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pootle/pootle.spec
diff -u packages/pootle/pootle.spec:1.6 packages/pootle/pootle.spec:1.7
--- packages/pootle/pootle.spec:1.6	Tue May 11 11:15:58 2010
+++ packages/pootle/pootle.spec	Tue May 11 13:02:16 2010
@@ -16,6 +16,7 @@
 Source1:	apache.conf
 Patch0:		settings.patch
 Patch1:		paths.patch
+Patch2:		homedir.patch
 BuildRequires:	python-devel
 BuildRequires:	rpmbuild(macros) >= 1.228
 BuildRequires:	sed >= 4.0
@@ -31,6 +32,7 @@
 Requires:	translate-toolkit >= 1.5.1
 Requires:	zip
 Suggests:	memcached
+Suggests:	python(sqlite)
 Suggests:	python-memcached
 Suggests:	python-xapian
 Conflicts:	python-xapian < 1.0.13
@@ -56,6 +58,7 @@
 %setup -q -n %{fullname}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %{__sed} -i -e '1s,#!.*env python,#!%{__python},' wsgi.py
 
@@ -203,6 +206,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2010/05/11 11:02:16  glen
+- setup own homedir env var
+
 Revision 1.6  2010/05/11 09:15:58  glen
 - %lang tagging via script
 

================================================================
Index: packages/pootle/homedir.patch
diff -u /dev/null packages/pootle/homedir.patch:1.1
--- /dev/null	Tue May 11 13:02:25 2010
+++ packages/pootle/homedir.patch	Tue May 11 13:02:16 2010
@@ -0,0 +1,13 @@
+--- Pootle-2.0.3/wsgi.py~	2010-05-11 11:54:06.000000000 +0300
++++ Pootle-2.0.3/wsgi.py	2010-05-11 14:00:20.207164188 +0300
+@@ -36,6 +36,10 @@
+ 
+ os.environ['DJANGO_SETTINGS_MODULE'] = 'pootle.settings'
+ 
++# setup own $HOME to contain ~/.subversion and ssh keys.
++# besides PLD Linux initscript sets HOME=/tmp which would be insecure anyway.
++os.environ['HOME'] = '/var/lib/pootle'
++
+ import django.core.handlers.wsgi
+ 
+ application = django.core.handlers.wsgi.WSGIHandler()
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pootle/pootle.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list