From 4e40455e899a10954e2b2d717ea68e803086cd57 Mon Sep 17 00:00:00 2001 From: Grupa za izradu paketa Date: Mon, 22 Oct 2007 09:57:30 +0000 Subject: [PATCH] r1: [svn-inject] Installing original source of jre-cn --- README.CARNet | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ changelog.CARNet | 1 + debian/changelog | 32 ++++++++++++++++++++ debian/compat | 1 + debian/control | 16 ++++++++++ debian/docs | 2 ++ debian/postinst | 49 +++++++++++++++++++++++++++++++ debian/rules | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 266 insertions(+) create mode 100644 README.CARNet create mode 120000 changelog.CARNet create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/docs create mode 100755 debian/postinst create mode 100755 debian/rules diff --git a/README.CARNet b/README.CARNet new file mode 100644 index 0000000..8d8b0c6 --- /dev/null +++ b/README.CARNet @@ -0,0 +1,79 @@ +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 Sun, 17 Oct 2004 03:09:01 +0200 diff --git a/changelog.CARNet b/changelog.CARNet new file mode 120000 index 0000000..194579e --- /dev/null +++ b/changelog.CARNet @@ -0,0 +1 @@ +changelog.Debian \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fe0b6bb --- /dev/null +++ b/debian/changelog @@ -0,0 +1,32 @@ +jre-cn (1.5.0-10-1) carnet-etch; urgency=low + + * Prva verzija za Etch + + -- Ivan Rako 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 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 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 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 Tue, 17 Aug 2004 02:36:48 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5673d28 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: jre-cn +Section: non-free/libs +Priority: optional +Maintainer: Ivan Rako +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. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..d92e2d1 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README.CARNet +changelog.CARNet diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..09395ab --- /dev/null +++ b/debian/postinst @@ -0,0 +1,49 @@ +#!/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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..16ac514 --- /dev/null +++ b/debian/rules @@ -0,0 +1,86 @@ +#!/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 -- 1.7.10.4