ripta-clamav 0.2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +35 -0
- data/rakefile +67 -0
- metadata +54 -0
data/README
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
ClamAV Ruby binding gem. Based on project clamavr-0.2.0
|
|
2
|
+
http://raa.ruby-lang.org/project/clamavr/
|
|
3
|
+
Thanks to MoonWoolf <moonwolf@moonwolf.com>
|
|
4
|
+
|
|
5
|
+
== INSTALL
|
|
6
|
+
|
|
7
|
+
$ sudo gem install clamav
|
|
8
|
+
or
|
|
9
|
+
$ rake package && cd pkg && sudo gem install *.gem
|
|
10
|
+
|
|
11
|
+
== REQUIREMENTS
|
|
12
|
+
|
|
13
|
+
clamav >= 0.94
|
|
14
|
+
libclamav5, libclamav-dev
|
|
15
|
+
|
|
16
|
+
== USAGE
|
|
17
|
+
ClamAV.new()
|
|
18
|
+
return:
|
|
19
|
+
ClamAV instance
|
|
20
|
+
|
|
21
|
+
ClamAV#scanfile(filename, options)
|
|
22
|
+
filename => filename
|
|
23
|
+
options => CL_SCAN_STDOPT
|
|
24
|
+
|
|
25
|
+
return:
|
|
26
|
+
virusname or ClamAV returncode(Fixnum)
|
|
27
|
+
|
|
28
|
+
== LICENSE
|
|
29
|
+
GPL
|
|
30
|
+
|
|
31
|
+
= Clamav as gem
|
|
32
|
+
Copyright(c) 2008 Alexander Oryol <eagle.alex@gmail.com>
|
|
33
|
+
|
|
34
|
+
= ClamAV/R
|
|
35
|
+
Copyright(c) 2003-2007 MoonWolf <moonwolf@moonwolf.com>
|
data/rakefile
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake'
|
|
3
|
+
require 'rake/clean'
|
|
4
|
+
require 'rake/gempackagetask'
|
|
5
|
+
require 'tools/rakehelp'
|
|
6
|
+
require 'spec/rake/spectask'
|
|
7
|
+
|
|
8
|
+
GEM_VERSION="0.2.2"
|
|
9
|
+
|
|
10
|
+
setup_extension('clamav', 'clamav')
|
|
11
|
+
|
|
12
|
+
desc "Compile native extension"
|
|
13
|
+
task :compile => [:clamav]
|
|
14
|
+
|
|
15
|
+
task :default => [:compile, :spec]
|
|
16
|
+
|
|
17
|
+
Spec::Rake::SpecTask.new do |task|
|
|
18
|
+
task.libs << 'spec'
|
|
19
|
+
task.spec_files = Dir.glob( 'spec/**/*_spec.rb' )
|
|
20
|
+
task.verbose = true
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
gemspec = Gem::Specification.new do |gemspec|
|
|
24
|
+
gemspec.name = "clamav"
|
|
25
|
+
gemspec.version = GEM_VERSION
|
|
26
|
+
gemspec.author = "Alexander Oryol"
|
|
27
|
+
gemspec.email = "eagle.alex@gmail.com"
|
|
28
|
+
gemspec.summary = "ClamAV Ruby binding"
|
|
29
|
+
gemspec.description = <<-EOF
|
|
30
|
+
ClamAV Ruby binding. Based on project clamavr-0.2.0
|
|
31
|
+
http://raa.ruby-lang.org/project/clamavr/
|
|
32
|
+
Thanks to MoonWoolf <moonwolf@moonwolf.com>
|
|
33
|
+
EOF
|
|
34
|
+
gemspec.files = %w( rakefile README ChangeLog ) +
|
|
35
|
+
Dir.glob( 'lib/*.rb' ) +
|
|
36
|
+
Dir.glob( 'spec/*.rb' ) +
|
|
37
|
+
Dir.glob( 'spec/unit/*.rb' ) +
|
|
38
|
+
Dir.glob( 'ext/**/*.{c,rb}' ) +
|
|
39
|
+
Dir.glob( 'tools/*.rb' )
|
|
40
|
+
gemspec.autorequire = 'clamav'
|
|
41
|
+
gemspec.require_path = 'lib'
|
|
42
|
+
# gemspec.add_dependency('builder')
|
|
43
|
+
|
|
44
|
+
if RUBY_PLATFORM.match("win32")
|
|
45
|
+
gemspec.platform = Gem::Platform::WIN32
|
|
46
|
+
gemspec.files += []
|
|
47
|
+
else
|
|
48
|
+
gemspec.platform = Gem::Platform::RUBY
|
|
49
|
+
gemspec.extensions = Dir.glob( 'ext/**/extconf.rb' )
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
task :package => [:clean, :compile, :spec]
|
|
54
|
+
Rake::GemPackageTask.new( gemspec ) do |task|
|
|
55
|
+
task.gem_spec = gemspec
|
|
56
|
+
task.need_tar = true
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
setup_clean ["ext/clamav/*.{so,o}", "ext/clamav/Makefile", "lib/clamav.so", "pkg", "*.gem"]
|
|
60
|
+
|
|
61
|
+
task :install => [:default, :package] do
|
|
62
|
+
sh %{ sudo gem install pkg/clamav-#{GEM_VERSION}.gem }
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
task :uninstall do
|
|
66
|
+
sh %{ sudo gem uninstall clamav }
|
|
67
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ripta-clamav
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.2.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Alexander Oryol
|
|
8
|
+
autorequire: clamav
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2009-02-25 00:00:00 -08:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: ClamAV Ruby binding. Based on project clamavr-0.2.0 http://raa.ruby-lang.org/project/clamavr/ Thanks to MoonWoolf <moonwolf@moonwolf.com>
|
|
17
|
+
email: eagle.alex@gmail.com
|
|
18
|
+
executables: []
|
|
19
|
+
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
24
|
+
files:
|
|
25
|
+
- rakefile
|
|
26
|
+
- README
|
|
27
|
+
has_rdoc: false
|
|
28
|
+
homepage:
|
|
29
|
+
post_install_message:
|
|
30
|
+
rdoc_options: []
|
|
31
|
+
|
|
32
|
+
require_paths:
|
|
33
|
+
- lib
|
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: "0"
|
|
39
|
+
version:
|
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
|
+
requirements:
|
|
42
|
+
- - ">="
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: "0"
|
|
45
|
+
version:
|
|
46
|
+
requirements: []
|
|
47
|
+
|
|
48
|
+
rubyforge_project:
|
|
49
|
+
rubygems_version: 1.2.0
|
|
50
|
+
signing_key:
|
|
51
|
+
specification_version: 2
|
|
52
|
+
summary: ClamAV Ruby binding
|
|
53
|
+
test_files: []
|
|
54
|
+
|