Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

* correct debian build dependencies * add huge mem page detection in general initscript * disable logging completely in jmimemagic-library

f1orif99c307eff1f
diff --git a/addon/yacyInit.m4 b/addon/yacyInit.m4
index be61e0b4c..05c79875e 100644
--- a/addon/yacyInit.m4
+++ b/addon/yacyInit.m4
@@ -47,6 +47,12 @@ SHUTDOWN_TIMEOUT=50
NICE_VAL=0
JAVA_ARGS="-server -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseAdaptiveSizePolicy"
+#check if system supports large memory pages and enable it if possible
+HUGEPAGESTOTAL="`cat /proc/meminfo | grep HugePages_Total | sed s/[^0-9]//g`"
+if [ -n "$HUGEPAGESTOTAL" ] && [ $HUGEPAGESTOTAL -ne 0 ]
+then
+ JAVA_ARGS="$JAVA_ARGS -XX:+UseLargePages"
+fi
ifdef(`openSUSE', `dnl
. /etc/rc.status
diff --git a/debian/control b/debian/control
index 4d7e3d5d9..0be829c1f 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: yacy
Section: network
Priority: extra
Maintainer: root <root@debian>
-Build-Depends: ant, sun-java6-jdk, debhelper (>= 5)
+Build-Depends: ant, sun-java5-jdk, debhelper (>= 5), m4
Standards-Version: 3.7.2
Package: yacy
diff --git a/source/de/anomic/plasma/parser/mimeType/build.xml b/source/de/anomic/plasma/parser/mimeType/build.xml
index 875005964..be0836095 100644
--- a/source/de/anomic/plasma/parser/mimeType/build.xml
+++ b/source/de/anomic/plasma/parser/mimeType/build.xml
@@ -21,7 +21,9 @@
<pathelement location="${libx}/log4j-1.2.9.jar" />
<pathelement location="${libx}/xerces.jar"/>
</classpath>
- </javac>
+ </javac>
+ <!-- copy log4j.properties, to disable logging -->
+ <copy file="${src}/de/anomic/plasma/parser/${parserShortName}/log4j.properties" todir="${build}"/>
</target>
diff --git a/source/de/anomic/plasma/parser/mimeType/log4j.properties b/source/de/anomic/plasma/parser/mimeType/log4j.properties
new file mode 100644
index 000000000..8520d48c3
--- /dev/null
+++ b/source/de/anomic/plasma/parser/mimeType/log4j.properties
@@ -0,0 +1 @@
+log4j.rootLogger=OFF