Package: clamtk / 5.24-1

0002-Add-files-formerly-provided-in-clamtk-that-are-now-i.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
From 60156c2c73ea3cb49d90c4fc2a629b8103ebc0cd Mon Sep 17 00:00:00 2001
From: Scott Kitterman <scott@kitterman.com>
Date: Sun, 20 Sep 2015 16:54:21 -0400
Subject: Add files formerly provided in clamtk that are now in clamtk-gnome
 (ver 0.01) as they are now a separate source upstream, but like for KDE too
 trivial to make a separate source package in Debian.

---
 clamtk-gnome.desktop | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++
 clamtk.py            |  64 ++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+)
 create mode 100644 clamtk-gnome.desktop
 create mode 100755 clamtk.py

diff --git a/clamtk-gnome.desktop b/clamtk-gnome.desktop
new file mode 100644
index 0000000..3396749
--- /dev/null
+++ b/clamtk-gnome.desktop
@@ -0,0 +1,107 @@
+# 0.01
+[Desktop Entry]
+Name=ClamTk
+GenericName=Virus Scanner
+GenericName[ar]=ماسح الفيروسات
+GenericName[ast]=Antivirus
+GenericName[az]=Virus axtarışı
+GenericName[bg]=Скенер за вируси
+GenericName[bs]=Virus Skener
+GenericName[ca]=Comprovador de virus
+GenericName[cs]=Antivirový program
+GenericName[da]=Virusscanneren
+GenericName[de]=Virensuche
+GenericName[el]=Ανιχνευτής ιών
+GenericName[en_AU]=Virus Scanner
+GenericName[en_CA]=Virus Scanner
+GenericName[en_GB]=Virus Scanner
+GenericName[es]=Analizador de Virus
+GenericName[fi]=Virustorjuntasovellus
+GenericName[fo]=Virus skannari
+GenericName[fr]=Module de recherche et analyse de virus
+GenericName[gl]=Analizador de virus
+GenericName[he]=סורק וירוסים
+GenericName[hr]=Skener virusa
+GenericName[hu]=Víruskereső
+GenericName[id]=Pemindai Virus
+GenericName[it]=Analizzatore virus
+GenericName[ja]=ウイルススキャナ
+GenericName[ko]=바이러스 검사기
+GenericName[lt]=Virusų suradimo programa
+GenericName[mr]=धमक्या साठी स्कॅन
+GenericName[ms]=Pengimbas Virus
+GenericName[nb]=Virusskanner
+GenericName[nl]=Virusscanner
+GenericName[nl_BE]=Virusscanner
+GenericName[nn]=Virusskannar
+GenericName[pl]=Skaner wirusów
+GenericName[pt]=Verificador de vírus
+GenericName[pt_BR]=Antivírus Escaner
+GenericName[ro]=Scaner pentru viruși
+GenericName[ru]=Проверка на вирусы
+GenericName[sk]=Antivírus
+GenericName[sl]=Virusni pregledovalec
+GenericName[sr@latin]=Virus Skener
+GenericName[sv]=Virusskanner
+GenericName[te]=వైరస్ స్కానర్
+GenericName[th]=โปรแกรมตรวจจับไวรัส
+GenericName[tr]=Virüs Tarayıcı
+GenericName[ug]=ۋﻯﺭۇﺱ ﺕەﻚﺷۈﺭگۈچ
+GenericName[uk]=Антивірусний сканер
+GenericName[uz]=Вирусларни текшириш
+GenericName[zh_CN]=病毒扫描工具
+GenericName[zh_TW]=病毒掃描程式
+Comment=Scan for threats...
+Comment[ar]=إمسح للكشف عن الفيروسات
+Comment[ast]=Buscar amenaces...
+Comment[az]=Təhlükə mövcudluğuna yoxla...
+Comment[bg]=Проверка за наличие на заплахи ...
+Comment[bs]=Pretraga za virusima...
+Comment[cs]=Skenování hrozeb...
+Comment[da]=Skan for virus...
+Comment[de]=Auf Bedrohungen untersuchen…
+Comment[el]=Έλεγχος για ιούς...
+Comment[en]=Scan for threats...
+Comment[en_AU]=Scan for threats...
+Comment[en_CA]=Scan for threats...
+Comment[en_GB]=Scan for threats...
+Comment[es]=Analizar en busca de amenazas…
+Comment[fi]=Tarkista uhkien varalta...
+Comment[fo]=Skanna eftir virus...
+Comment[fr]=Rechercher des menaces...
+Comment[gl]=Buscar ameazas...
+Comment[he]=סריקה לאיתור איומים…
+Comment[hr]=Pretraživanje virusa...
+Comment[hu]=Vírusok keresése...
+Comment[id]=Pindai untuk ancaman...
+Comment[it]=Analizza per la ricerca di minacce...
+Comment[ja]=ウィルスをスキャンします...
+Comment[ko]=위험 요소를 검사합니다...
+Comment[ms]=Imbas jika ada ancaman...
+Comment[nl]=Scannen op virussen…
+Comment[nb]=Skann etter virus...
+Comment[nn]=Skann...
+Comment[pl]=Przeskanuj pliki w poszukiwaniu wirusów...
+Comment[pt]=A analizar ameaças...
+Comment[pt_BR]=Verificar se há vírus...
+Comment[ro]=Scanare pentru amenințări...
+Comment[ru]=Проверка на наличие угроз...
+Comment[sk]=Skenovanie hrozieb...
+Comment[sl]=Preglej za virusi...
+Comment[sr@latin]=Skeniranje pretnji...
+Comment[sv]=Skanna efter virus...
+Comment[te]=వైరస్సుల కోసం సంశోధిస్తున్నది...
+Comment[tr]=Virüs taraması yap...
+Comment[ug]=ۋىرۇس تەكشۈر…
+Comment[uk]=Шукати загрози…
+Comment[uz]=Хавф учун текшириш...
+Comment[zh_CN]=扫描威胁...
+Comment[zh_TW]=掃描威脅...
+TryExec=clamtk
+Exec=clamtk %F
+Icon=clamtk
+Type=Application
+Terminal=false
+Categories=GTK;GNOME;Utility;
+StartupNotify=true
+Keywords=antivirus;virus;malware;scan;scanner;
diff --git a/clamtk.py b/clamtk.py
new file mode 100755
index 0000000..144d06d
--- /dev/null
+++ b/clamtk.py
@@ -0,0 +1,64 @@
+#!/usr/bin/env python
+#
+# ClamTk, copyright (C) 2004-2015 Dave M
+#
+# This file is part of ClamTk
+# https://bitbucket.org/dave_theunsub/clamtk-gnome
+#
+# ClamTk is free software; you can redistribute it and/or modify it
+# under the terms of either:
+#
+# a) the GNU General Public License as published by the Free Software
+# Foundation; either version 1, or (at your option) any later version, or
+#
+# b) the "Artistic License".
+
+import os
+import urllib
+import re
+
+import locale
+locale.setlocale(locale.LC_ALL, '')
+
+import gettext
+_ = lambda x: gettext.ldgettext("clamtk", x)
+
+from gi.repository import Nautilus, GObject
+
+class OpenTerminalExtension(GObject.GObject, Nautilus.MenuProvider):
+       
+    def _open_scanner(self, file):
+        filename = urllib.unquote(file.get_uri()[7:])
+        filename = re.escape(filename)
+
+        #os.chdir(filename)
+        os.system('clamtk %s &' % filename)
+        
+    def menu_activate_cb(self, menu, file):
+        self._open_scanner(file)
+        
+    def menu_background_activate_cb(self, menu, file): 
+        self._open_scanner(file)
+       
+    def get_file_items(self, window, files):
+        if len(files) != 1:
+            return
+        
+        file = files[0]
+        #if not file.is_directory() or file.get_uri_scheme() != 'file':
+        #    return
+        
+        item = Nautilus.MenuItem(name='NautilusPython::openscanner',
+                                 label=_('Scan for threats...') ,
+                                 tip=_('Scan %s for threats...') % file.get_name(),
+                                 icon='clamtk')
+        item.connect('activate', self.menu_activate_cb, file)
+        return item,
+
+    def get_background_items(self, window, file):
+        item = Nautilus.MenuItem(name='NautilusPython::openscanner_directory',
+                                 label=_('Scan directory for threats...'),
+                                 tip=_('Scan this directory for threats...'),
+                                 icon='clamtk')
+        item.connect('activate', self.menu_background_activate_cb, file)
+        return item,