--- /dev/null
+jre-cn
+~~~~~~
+
+1. Informacije o pakiranju
+2. Java i Grsecurity
+
+---
+
+1. Informacije o pakiranju
+
+Paket donosi verziju Java VM-a za koju odrzavatelj smatra da je
+najprikladnija za opcenitu uporabu. Na Linux i386 platformi, to
+je najsvjezija 1.4 verzija Sun-ovog JVM-a, a na Linux sparc platformi
+to je Blackdown JVM, trenutno u verziji 1.4.1.
+
+http://z42.de/debian/ Paketi za JVM napravljeni su iz izvornih downloada
+ koristenjem j2se-package skripte Huberta Schmida
+ skinute sa ove stranice. Pored j2se-package koristimo
+ i njegove pakete sa specificnim Debian datotekama za
+ bolje uklapanje JVM-a u Debian okruzenje:
+ sun-j2re1.4debian odn. blackdown-j2re1.4debian.
+
+http://java.sun.com je mjesto odakle je skinut Sunov JVM.
+
+http://www.blackdown.org/
+ je pocetna stranica za Blackdown JVM, a
+
+ftp://ftp.tux.org/pub/java/JDK-1.4.1/sparc/01/
+ je mirror sa kojeg je skinuta najnovija (13.02.2003.)
+ verzija Blackdown JVM-a za Linux/Sparc.
+
+Za referencu navodimo imena datoteka izvornih arhiva sa pripadajucim
+imenima deb paketa kako ih je j2se-package skripta imenovala.
+
+izvorna arhiva paket
+--------------------------------------------------------------------------
+j2re-1_4_2_05-linux-i586.bin sun-j2re1.4_1.4.2+05_i386.deb
+j2re-1.4.1-01-linux-sparc-gcc3.2.bin blackdown-j2re1.4_1.4.1+01_sparc.deb
+
+Pored paketa sa Java Runtime Engineom, ovaj paket donosi prateci
+sun-j2re1.4debian odn. blackdown-j2re1.4debian paketu koji podesi
+Java plugin za web preglednike (netscape, mozilla, firefox), i
+podrsku za izbor pretpostavljenog JVM-a preko update-alternatives
+sustava.
+
+
+2. Java i Grsecurity
+
+Ukoliko se java aplikacije ruse sa SEGV ili KILL signalom, a imate
+instaliran CARNetov kernel-cn paket ili vlastiti kernel sa Grsecurity ili
+PAX zakrpama, za pocetak provjerite u /var/log/kernel.log da li grsec odn.
+PAX zaustavljaju izvrsenje java procesa. Ukoliko postoje zapisi sa "grsec"
+ili "PAX" i pid-om java procesa pokusajte postaviti sljedece:
+
+chpax -rs /usr/lib/j2re1.4-sun/bin/* (za Sunov JVM)
+chpax -rs /usr/lib/j2re1.4-blackdown/bin/* (za Blackdown JVM)
+
+Nakon toga provjerite je li se poboljsalo stanje aplikacije ili barem
+promijenio oblik greske. Ako se aplikacije jos uvijek ne ponasa ispravno,
+pokusajte obrisati svu PAX zastitu:
+
+chpax -pemxsr /usr/lib/j2re1.4-sun/bin/* (Sunov JVM), odnosno
+chpax -pemxsr /usr/lib/j2re1.4-blackdown/bin/* (Blackdown JVM)
+
+Ako ni tada aplikacija ne radi, preostaje mogucnost koristenja
+kernela bez Grsecurity zakrpe. U trenutnoj inacici kernel-cn paketa,
+taj se image zove "LinuxOLD". (Ako budete mijenjali default= parametar
+u /etc/lilo.conf, ne zaboravite pokrenuti lilo. :) Imajte u vidu da ce
+upgrade kernel-cn paketa pregaziti izmjene u lilo.conf datoteci.)
+
+Ovaj paket kod instalacije postavlja
+
+chpax -rs /usr/lib/j2re1.4-sun/bin/java
+
+sto je dovoljno za pokretanje klijentskih aplikacija poput
+LDAP Browser\Editor (http://www.iit.edu/~gawojar/ldap/),
+Azureus (http://azureus.sf.net) ili xnap (Debian paket).
+
+ -- Zoran Dzelajlija <jelly+paketi@srce.hr> Sun, 17 Oct 2004 03:09:01 +0200
--- /dev/null
+changelog.Debian
\ No newline at end of file
--- /dev/null
+jre-cn (1.5.0-10-1) carnet-etch; urgency=low
+
+ * Prva verzija za Etch
+
+ -- Ivan Rako <irako@srce.hr> Mon, 22 Oct 2007 11:44:28 +0200
+
+jre-cn (1.4.2+08-1) sarge; urgency=low
+
+ * Novo izdanje Sunovog JVM-a.
+
+ -- Zoran Dzelajlija <jelly+paketi@srce.hr> Wed, 27 Apr 2005 16:29:48 +0200
+
+jre-cn (1.4.2+06-1) sarge; urgency=high
+
+ * Novo izdanje Sun JVM-a, ispravlja gresku neovlastenog pristupa
+ skrivenim klasama [CAN-2004-1029].
+
+ -- Zoran Dzelajlija <jelly+paketi@srce.hr> Tue, 23 Nov 2004 20:15:40 +0100
+
+jre-cn (1.4.2+05-2) sarge; urgency=low
+
+ * chpax -rs .../bin/java, dodatne upute o Grsecurityju u README.CARNet.
+
+ -- Zoran Dzelajlija <jelly+paketi@srce.hr> Sun, 17 Oct 2004 04:07:33 +0200
+
+jre-cn (1.4.2+05-1) sarge; urgency=low
+
+ * Prvo izdanje.
+ * chpax -s .../bin/java (ako postoji chpax).
+
+ -- Zoran Dzelajlija <jelly+paketi@srce.hr> Tue, 17 Aug 2004 02:36:48 +0200
+
--- /dev/null
+Source: jre-cn
+Section: non-free/libs
+Priority: optional
+Maintainer: Ivan Rako <Ivan.Rako@CARNet.hr>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: jre-cn
+Architecture: all
+Depends: sun-java5-jre, sun-java5-bin, sun-java5-fonts
+Description: Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture independent files)
+ The Sun Java Platform Standard Edition Runtime Environment (JRE) 5.0
+ contains the Java virtual machine, runtime class libraries, and
+ Java application launcher that are necessary to run programs written
+ in the Java progamming language. It is not a development environment and
+ doesn't contain development tools such as compilers or debuggers.
--- /dev/null
+README.CARNet
+changelog.CARNet
--- /dev/null
+#!/bin/sh
+
+set -e
+
+[ "$DEBIAN_SCRIPT_DEBUG" ] && set -x
+
+case "$1" in
+ configure)
+ # continue below
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ exit 0
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 0
+ ;;
+esac
+
+libdir="/usr/lib/jvm/java-1.5.0-sun/jre"
+
+if [ -x /usr/sbin/chpax ]; then
+ chpax=/usr/sbin/chpax
+elif [ -x /sbin/chpax ]; then
+ chpax=/sbin/chpax
+elif uname -r | grep -q grsec; then
+ # no chpax found in default places
+ echo "Warning: Grsecurity kernel detected but no chpax found."
+ echo "Your java applications might not work until you run"
+ echo
+ echo "chpax -rs $libdir/bin/java"
+ echo
+ echo "Possibly even"
+ echo
+ echo "chpax -rs $libdir/bin/\*"
+ echo
+fi
+
+if [ ! -x $libdir/bin/java ]; then
+ echo "java not found in $libdir/bin. _Very_ strange."
+ exit 0
+fi
+
+if [ "$chpax" ] && \
+ ! $chpax -v $libdir/bin/java | egrep -q "flags for $libdir/bin/java \(...r.s\)"; then
+ $chpax -rs $libdir/bin/java
+fi
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ # $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ # -$(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/jre-cn.
+ # $(MAKE) install DESTDIR=$(CURDIR)/debian/jre-cn
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -k
+ dh_installdocs
+# dh_installexamples
+ dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+# dh_link
+# dh_strip
+# dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+# dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure