pakur.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. NEWPATH=$PKG/usr/lib/jvm/java-8-openjdk
  2. mv $PKG/usr/lib/jvm/openjdk-1.8.0_222 ${NEWPATH}
  3. rm -rf $PKG/usr/lib/bin
  4. # izin
  5. find ${NEWPATH} -iname '*.jar' -exec chmod ugo+r {} \;
  6. chmod ugo+r ${NEWPATH}/lib/ct.sym
  7. # Gereksiz dosyaların silinmesi
  8. rm -f ${NEWPATH}/src.zip
  9. rm -rf ${NEWPATH}/{demo,man/ja*,sample}
  10. rm -f ${NEWPATH}/{,jre/}THIRD_PARTY_README
  11. find ${NEWPATH} \( \
  12. -name '*.ja' -o \
  13. -name 'ASSEMBLY_EXCEPTION' -o \
  14. -name 'LICENSE' -o \
  15. -name 'THIRD_PARTY_README' \) \
  16. -delete
  17. find ${NEWPATH} -iname '*.diz' -exec rm {} \;
  18. find ${NEWPATH} -iname '*.debuginfo' -exec rm {} \;
  19. # sertifika linklenmesi
  20. rm ${NEWPATH}/jre/lib/security/cacerts
  21. ln -sf /etc/ssl/certs/java/cacerts ${NEWPATH}/jre/lib/security/cacerts
  22. # Aynı dosyaları linkle
  23. rm ${NEWPATH}/jre/lib/amd64/libjawt.so
  24. ln -sr ${NEWPATH}/lib/amd64/libjawt.so ${NEWPATH}/jre/lib/amd64/libjawt.so
  25. rm ${NEWPATH}/jre/lib/amd64/jli/libjli.so
  26. ln -sr ${NEWPATH}/lib/amd64/jli/libjli.so ${NEWPATH}/jre/lib/amd64/jli/libjli.so
  27. for f in ${NEWPATH}/jre/bin/* ; do
  28. if [ -f ${NEWPATH}/bin/${f##*/} ]; then
  29. rm $f
  30. ln -sr ${NEWPATH}/bin/${f##*/} $f
  31. fi
  32. done