/[gentoo-x86]/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
Gentoo

Contents of /net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sat Feb 23 20:13:30 2013 UTC (7 years ago) by tomwij
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
New ebuild for stargazer. Contributed by SpiderX. Fixes bug #452916.

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)

1 --- projects/stargazer/inst/linux/etc/stargazer/OnChange.org 2013-01-09 14:30:32.000000000 +0200
2 +++ projects/stargazer/inst/linux/etc/stargazer/OnChange 2013-01-09 15:50:01.000000000 +0200
3 @@ -1,8 +1,20 @@
4 #! /bin/sh
5
6 -login=$1
7 -param=$2
8 -oldValue=$3
9 -newValue=$4
10 +# About: This script is called when user account is changed.
11 +# Common Task: Notify about various events.
12 +# Priority: optional
13
14 -#echo "User: '$login'. Parameter $param changed from '$oldValue' to '$newValue'" >> /var/stargazer/users.chg.log
15 \ No newline at end of file
16 +# User login
17 +LOGIN=$1
18 +
19 +# User parameter
20 +PARAMETER=$2
21 +
22 +# User parameter old value
23 +OLDVALUE=$3
24 +
25 +# User parameter new value
26 +NEWVALUE=$4
27 +
28 +# Usage examples:
29 +#echo "User: '$LOGIN'. Parameter $PARAMETER changed from '$OLDVALUE' to '$NEWVALUE'" >> /var/stargazer/user.change.log
30 \ No newline at end of file
31 --- projects/stargazer/inst/linux/etc/stargazer/OnConnect.org 2013-01-09 14:39:51.000000000 +0200
32 +++ projects/stargazer/inst/linux/etc/stargazer/OnConnect 2013-01-09 15:11:49.000000000 +0200
33 @@ -1,24 +1,23 @@
34 #! /bin/sh
35
36 -#Этот скрипт вызывается в момент, когда пользователь
37 -#успешно прошел авторизацию на сервере. Задача скрипта - перестроить
38 -#файрвол так, что бы пользователь получил доступ в интернет
39 +# About: This script is called when the user successfully authenticated on the server.
40 +# Common Task: Rebuild firewall to allow user to access the Internet.
41 +# Priority: required
42
43 -# Login
44 +# User login
45 LOGIN=$1
46
47 -#user IP
48 +# User IP
49 IP=$2
50
51 -#cash
52 +# User cash
53 CASH=$3
54
55 -#user ID
56 +# User ID
57 ID=$4
58
59 -#Selected dirs to connect
60 +# Selected DIRs (from rules file) to connect
61 DIRS=$5
62
63 -
64 -#echo "C `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
65 -
66 +# Usage examples:
67 +#echo "Connected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
68 \ No newline at end of file
69 --- projects/stargazer/inst/linux/etc/stargazer/OnDisconnect.org 2013-01-09 14:54:36.000000000 +0200
70 +++ projects/stargazer/inst/linux/etc/stargazer/OnDisconnect 2013-01-09 15:11:33.000000000 +0200
71 @@ -1,24 +1,23 @@
72 #! /bin/sh
73
74 -# Этот скрипт вызывается в момент, когда пользователь
75 -# желает отключится от интернета или вышел таймаут у пользователя
76 -# и сервер сам отключает пользователя
77 -# Задача скрипта подобна задаче скрипта OnConnect - перестроить
78 -# файрвол так, что бы пользователю закрыть доступ в интернет
79 +# About: This script is called when the user wants to disconnect or authorization timeout has passed.
80 +# Common task: Rebuild firewall to disallow user to access to the Internet.
81 +# Priority: required
82
83 -# Login
84 +# User login
85 LOGIN=$1
86
87 -#user IP
88 +# User IP
89 IP=$2
90
91 -#cash
92 +# User cash
93 CASH=$3
94
95 -#user ID
96 +# User ID
97 ID=$4
98
99 -#Selected dirs to disconnect
100 +# Selected DIRs (from rules file) to disconnect
101 DIRS=$5
102
103 -#echo "D `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
104 +# Usage examples:
105 +#echo "Disconnected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
106 \ No newline at end of file
107 --- projects/stargazer/inst/linux/etc/stargazer/OnUserAdd.org 2013-01-09 15:01:57.000000000 +0200
108 +++ projects/stargazer/inst/linux/etc/stargazer/OnUserAdd 2013-01-09 15:10:55.000000000 +0200
109 @@ -1,14 +1,12 @@
110 #! /bin/sh
111
112 -# Использование (неиспользование) этого скрипта дело вкуса.
113 -# Он не выполняет критических функций. Его задача автматизировать
114 -# действия характерные при добавлении пользователя сети, например добавлекние
115 -# пользователю почты
116 -
117 -# Login
118 -login=$1
119 -
120 -#echo "added user $login" >> /var/stargazer/add_del.log
121 -
122 +# About: This script is called when the user is added to the Stargazer.
123 +# Common task: Automate typical actions on adding user to the network,
124 +# such as creating email or IM account.
125 +# Priority: optional
126
127 +# User login
128 +LOGIN=$1
129
130 +# Usage examples:
131 +#echo "Added user $login" >> /var/stargazer/add_del.log
132 \ No newline at end of file
133 --- projects/stargazer/inst/linux/etc/stargazer/OnUserDel.org 2013-01-09 15:12:32.000000000 +0200
134 +++ projects/stargazer/inst/linux/etc/stargazer/OnUserDel 2013-01-09 15:14:10.000000000 +0200
135 @@ -1,7 +1,13 @@
136 #! /bin/sh
137
138 -# Login
139 -login=$1
140 +# About: This script is called when the user is removed from the Stargazer.
141 +# Common task: Automate typical actions on removing user from the network,
142 +# such as removing email or IM account.
143 +# Priority: optional
144
145 -#echo "deleted user $login" >> /var/stargazer/add_del.log
146 +# User login
147 +LOGIN=$1
148 +
149 +# Usage examples:
150 +#echo "Deleted user $LOGIN" >> /var/stargazer/add_del.log
151

  ViewVC Help
Powered by ViewVC 1.1.20