diff --git a/README b/README new file mode 100644 index 0000000000000000000000000000000000000000..6271800f50d7ee5ec9c42abb001ed821025698db --- /dev/null +++ b/README @@ -0,0 +1,15 @@ +Plugin for Rosetta to enable real virus checking. + +Rosetta is a digital preservation software by ExLibrisGroup, see +http://www.exlibrisgroup.com/de/ for details. + +The plugin uses the free software freshclamd/clamAV, see +http://www.clamav.net/lang/en/ + +The code is partially based on https://code.google.com/p/clamavj/source/browse/trunk/src/main/java/com/philvarner/clamavj/ClamScan.java?r=2 + https://github.com/vrtadmin/clamav-devel/blob/master/clamdscan/client.c and + https://github.com/vrtadmin/clamav-devel/blob/master/clamdscan/proto.c + +and therefore licenced via Apache License Version 2.0. + +Andreas Romeyke diff --git a/README.1st b/README.1st index 392ce2dbcddb2aed13e36e2ba2192358b6a4ca76..7015f0100bcf904e81a47499b778cd064446bbc0 100644 --- a/README.1st +++ b/README.1st @@ -2,7 +2,8 @@ in directory EICAR/ is a file called "eicar", which contains the standard antivirus testsignature. This means that this file will ever ever trigger a virus alert in all known antivirus programs. This inot a bug, but a feature to -ensure that "virus" files will be detected. +ensure that "virus" files will be detected. See +http://de.wikipedia.org/wiki/EICAR-Testdatei for details. Please test the plugin with this file: $> java -cp $EXLIBRISCLASSPATH:SLUBVirusCheckPlugin.jar org.slub.rosetta.dps.repository.plugin.SLUBVirusCheckClamAVPlugin EICAR/eicar diff --git a/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java b/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java index 8c737ecc6f59c8995c5451ce467912fdbf14f19e..e69e74047097ff9bbe8613e6f6d8ae64c1a9cfb3 100644 --- a/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java +++ b/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java @@ -1,3 +1,25 @@ +/* +2014 by Andreas Romeyke (SLUB Dresden) + +The code is partially based on https://code.google.com/p/clamavj/source/browse/trunk/src/main/java/com/philvarner/clamavj/ClamScan.java?r=2 + https://github.com/vrtadmin/clamav-devel/blob/master/clamdscan/client.c and + https://github.com/vrtadmin/clamav-devel/blob/master/clamdscan/proto.c + + and therefore licensed under apache 2.0. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package org.slub.rosetta.dps.repository.plugin; @@ -13,7 +35,6 @@ import java.net.SocketException; import java.util.HashMap; import java.util.Map; -// import com.exlibris.dps.repository.plugin.virusCheck; /** * SLUBVirusCheckClamAVPlugin