/[gentoo-x86]/www-servers/cherokee/files/cherokee-1.2.98-linux3.patch
Gentoo

Contents of /www-servers/cherokee/files/cherokee-1.2.98-linux3.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 26 11:58:08 2011 UTC (3 years ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Version bumped. Added php and static-libs USE flags. Removed fastcgi USE flag. Added PYTHON_USE_WITH="theads", bug #364533. Added many fixes.

(Portage version: 2.1.10.11/cvs/Linux x86_64)

1 diff -Naur cherokee-1.2.98.orig/admin/SystemStats.py cherokee-1.2.98/admin/SystemStats.py
2 --- cherokee-1.2.98.orig/admin/SystemStats.py 2011-05-03 18:01:41.000000000 +0900
3 +++ cherokee-1.2.98/admin/SystemStats.py 2011-08-26 13:05:08.128851462 +0900
4 @@ -39,7 +39,7 @@
5 global _stats
6
7 if not _stats:
8 - if sys.platform == 'linux2':
9 + if sys.platform == 'linux2' or sys.platform == 'linux3':
10 _stats = System_stats__Linux()
11 elif sys.platform == 'darwin':
12 _stats = System_stats__Darwin()
13 diff -Naur cherokee-1.2.98.orig/admin/market/InstallUtil.py cherokee-1.2.98/admin/market/InstallUtil.py
14 --- cherokee-1.2.98.orig/admin/market/InstallUtil.py 2011-05-03 18:01:41.000000000 +0900
15 +++ cherokee-1.2.98/admin/market/InstallUtil.py 2011-08-26 13:05:06.596844132 +0900
16 @@ -56,7 +56,7 @@
17 first_group = str(root_group)
18
19 # Systems
20 - if sys.platform == 'linux2':
21 + if sys.platform == 'linux2' or sys.platform == 'linux3':
22 if os.getuid() == 0:
23 return root_group
24 return first_group
25 @@ -72,7 +72,7 @@
26
27
28 def current_UID_is_admin():
29 - if sys.platform == 'linux2':
30 + if sys.platform == 'linux2' or sys.platform == 'linux3':
31 return os.getuid() == 0
32 elif sys.platform == 'darwin':
33 return os.getuid() == 0
34 diff -Naur cherokee-1.2.98.orig/admin/util.py cherokee-1.2.98/admin/util.py
35 --- cherokee-1.2.98.orig/admin/util.py 2011-03-31 17:30:04.000000000 +0900
36 +++ cherokee-1.2.98/admin/util.py 2011-08-26 13:05:04.622834682 +0900
37 @@ -341,7 +341,7 @@
38 def os_get_document_root():
39 if sys.platform == 'darwin':
40 return "/Library/WebServer/Documents"
41 - elif sys.platform == 'linux2':
42 + elif sys.platform == 'linux2' or sys.platform == 'linux3':
43 if os.path.exists ("/etc/redhat-release"):
44 return '/var/www'
45 elif os.path.exists ("/etc/fedora-release"):

  ViewVC Help
Powered by ViewVC 1.1.20