Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/phctool/files: phctool-0.5.2.2_all_paths_tool_no_sudo.patch phctool-0.5.2.2_all_paths_tool_sudo.patch phctool-0.5.2.2_all_paths_tray.patch
Date: Tue, 24 Aug 2010 14:03:21
Message-Id: 20100824140315.85C8D2004E@flycatcher.gentoo.org
1 xmw 10/08/24 14:03:15
2
3 Added: phctool-0.5.2.2_all_paths_tool_no_sudo.patch
4 phctool-0.5.2.2_all_paths_tool_sudo.patch
5 phctool-0.5.2.2_all_paths_tray.patch
6 Log:
7 Initial import for phctool
8 (Portage version: 2.1.8.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_no_sudo.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_no_sudo.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_no_sudo.patch?rev=1.1&content-type=text/plain
15
16 Index: phctool-0.5.2.2_all_paths_tool_no_sudo.patch
17 ===================================================================
18 --- phctool.sh 2007-10-27 22:32:35.000000000 +0200
19 +++ phctool.sh 2009-09-05 23:20:18.000000000 +0200
20 @@ -1,10 +1,7 @@
21 #!/bin/sh
22 -#this shellscript is just a wrapper to subphctool.sh
23 -#but necessary to run phctool with sudo even from the tray icon
24 -PROGPATH=`dirname "$0"`
25 -cd $PROGPATH
26 -if test -e /usr/bin/gksu
27 - then gksu ./subphctool.sh $1
28 - else sudo ./subphctool.sh $1
29 -fi
30 +#this shellscript is just a wrapper to phctool.py
31 +#but necessary to run phctool from another directory
32 +
33 +cd /usr/share/phctool
34 +./phctool.py $1
35
36
37
38 1.1 sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_sudo.patch
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_sudo.patch?rev=1.1&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_sudo.patch?rev=1.1&content-type=text/plain
42
43 Index: phctool-0.5.2.2_all_paths_tool_sudo.patch
44 ===================================================================
45 --- phctool.sh 2007-10-27 22:32:35.000000000 +0200
46 +++ phctool.sh 2009-09-05 23:20:18.000000000 +0200
47 @@ -1,10 +1,7 @@
48 #!/bin/sh
49 -#this shellscript is just a wrapper to subphctool.sh
50 -#but necessary to run phctool with sudo even from the tray icon
51 -PROGPATH=`dirname "$0"`
52 -cd $PROGPATH
53 -if test -e /usr/bin/gksu
54 - then gksu ./subphctool.sh $1
55 - else sudo ./subphctool.sh $1
56 -fi
57 +#this shellscript is just a wrapper to subphctool.py
58 +#but necessary to run phctool from another directory
59 +
60 +cd /usr/share/phctool
61 +sudo ./subphctool.sh $1
62
63
64
65
66 1.1 sys-power/phctool/files/phctool-0.5.2.2_all_paths_tray.patch
67
68 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tray.patch?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tray.patch?rev=1.1&content-type=text/plain
70
71 Index: phctool-0.5.2.2_all_paths_tray.patch
72 ===================================================================
73 --- phctray.sh 2007-09-08 08:29:31.000000000 +0200
74 +++ phctray.sh 2009-09-05 23:16:54.000000000 +0200
75 @@ -2,6 +2,5 @@
76 #this shellscript is just a wrapper to phctray.py
77 #but necessary to run phctray from another directory
78
79 -PROGPATH=`dirname "$0"`
80 -cd $PROGPATH
81 +cd /usr/share/phctool
82 ./phctray.py
83 --- phctray.py 2009-09-08 12:17:11.000000000 +0200
84 +++ phctray.py 2009-09-08 12:17:33.000000000 +0200
85 @@ -61,7 +61,7 @@
86 t.show_all()
87
88 ##call phctool without GUI to set stored values
89 -cmd=[sys.path[0]+"/phctool.sh","background"] ##command
90 +cmd=["/usr/bin/phctool","background"] ##command
91 subprocess.Popen(cmd, shell=False) ##call the affinated programm
92
93 gtk.main()
94 --- phctray.py 2009-09-08 12:22:28.000000000 +0200
95 +++ phctray.py 2009-09-08 12:23:44.000000000 +0200
96 @@ -11,7 +11,7 @@
97 return;
98
99 def run_phctool( *args ):
100 - cmd=[sys.path[0]+"/phctool.sh"] ##command
101 + cmd=["/usr/bin/phctool"] ##command
102 subprocess.Popen(cmd, shell=False) ##call the affinated programm
103
104 def applet_face_click( window, event, *data ):