diff --git a/copy-jdk-configs.spec b/copy-jdk-configs.spec index 218b29d..920cf33 100644 --- a/copy-jdk-configs.spec +++ b/copy-jdk-configs.spec @@ -6,9 +6,9 @@ Name: copy-jdk-configs # hash relevant to version tag -%global htag ed45a7dce13fab490529d4d13a064d379c8f66e7 -Version: 3.3 -Release: 10%{?dist} +%global htag 1d18ce8b5dec47a0468136ab6cdadfb93defe2c4 +Version: 3.7 +Release: 1%{?dist} Summary: JDKs configuration files copier License: BSD @@ -72,6 +72,17 @@ rm "%{rpm_state_dir}/%{file}" 2> /dev/null || : %license LICENSE %changelog +* Wed May 02 2018 Jiri Vanek - 3.7-1 +- udpated to latst relase +- configurable blacklist +- listed all java keystores + +* Wed May 02 2018 Jiri Vanek - 3.3-12 +- blackidrs put on single line + +* Wed May 02 2018 Jiri Vanek - 3.3-11 +- added more files to balcklist based on oralce and ibm jdks + * Mon Apr 30 2018 Jiri Vanek - 3.3-10 - added javaws.policy and blacklist diff --git a/copy_jdk_configs.lua b/copy_jdk_configs.lua index 1ec1321..d3ab7c7 100755 --- a/copy_jdk_configs.lua +++ b/copy_jdk_configs.lua @@ -28,7 +28,13 @@ local caredFiles = {"jre/lib/calendars.properties", "jre/lib/security/nss.cfg", "jre/lib/security/cacerts", "jre/lib/security/blacklisted.certs", + "jre/lib/security/jssecacerts", + "jre/lib/security/trusted.certs", + "jre/lib/security/trusted.jssecerts", + "jre/lib/security/trusted.clientcerts", "jre/lib/ext", + "jre/lib/security/blacklist", + "jre/lib/security/javaws.policy", "lib/security", "conf", "lib/ext"} diff --git a/copy_jdk_configs_fixFiles.sh b/copy_jdk_configs_fixFiles.sh index 964f607..3c9bda0 100755 --- a/copy_jdk_configs_fixFiles.sh +++ b/copy_jdk_configs_fixFiles.sh @@ -192,7 +192,13 @@ files=`find $sourceSearchPath | grep "\\.rpmsave$"` #warning: file /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64-debug/jre/lib/amd64/client: remove failed: No such file or directory #warning: file /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.171-2.6.13.2.el7.x86_64/jre/lib/amd64/xawt: remove failed: No such file or directory #those dirs might be mepty by installtion, filling to not be rmeoved later -blackdirs="$source/jre/lib/applet $source/jre/lib/*/client $source/jre/lib/locale/*/LC_MESSAGE $source/jre/lib/*/xawt" +#use exported CJC_BLACKDIRS_ADD to extend it in runtime/spec file +blackdirs="" +internal_blackdirs="jre/lib/applet jre/lib/*/client jre/lib/locale/*/LC_MESSAGES jre/lib/*/xawt jre/javaws properties/version properties jre/lib/endorsed jre/lib/boot lib/missioncontrol/p2/org.eclipse.equinox.p2.engine/profileRegistry/JMC.profile/.data" +for x in $internal_blackdirs $CJC_BLACKDIRS_ADD ; do + blackdirs="$blackdirs $source/$x" +done + for blackdir in $blackdirs; do if [ -e $blackdir ] ; then debug "nasty $blackdir exists, filling"