From 67187f5513abb5c3617406aeba665cf3a58f3336 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Thu, 12 Jun 2014 11:47:11 +0000
Subject: [PATCH] - added license information - added general information

---
 README                                        | 15 ++++++++++++
 README.1st                                    |  3 ++-
 .../plugin/SLUBVirusCheckClamAVPlugin.java    | 23 ++++++++++++++++++-
 3 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 README

diff --git a/README b/README
new file mode 100644
index 0000000..6271800
--- /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 392ce2d..7015f01 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 8c737ec..e69e740 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
-- 
GitLab