Index: debian_installer/lams-jboss4-5.1/debian/changelog =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/changelog,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/changelog 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,12 @@ +lams-jboss4 (5.1-1) unstable; urgency=low + + * Upgrade to JBoss 5.1 + + -- Ernie Ghiglione Thu, 16 Aug 2012 11:44:53 +1100 + +lams-jboss4 (4.0.2-1) unstable; urgency=low + + * Initial release + + -- Jun-Dir Liew Thu, 27 Mar 2008 11:44:53 +1100 + Index: debian_installer/lams-jboss4-5.1/debian/compat =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/compat,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/compat 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1 @@ +5 Index: debian_installer/lams-jboss4-5.1/debian/control =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/control,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/control 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,13 @@ +Source: lams-jboss4 +Section: contrib/web +Priority: extra +Maintainer: LAMS Development Team +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 + +Package: lams-jboss4 +Architecture: all +Depends: java2-runtime, java-compiler +Description: JBoss 5.1 Application Server + This version is the recommended 5.1 version for use with + LAMS 2.4+ Index: debian_installer/lams-jboss4-5.1/debian/copyright =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/copyright,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/copyright 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,28 @@ +This package was debianized by Ernie Ghiglione +on Thu, 27 Mar 2008 11:44:53 +1100. + +It was downloaded from + +License: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + On Debian GNU/Linux systems, the complete text of the GNU Lesser General + Public License can be found in `/usr/share/common-licenses/LGPL'. + +The Debian packaging is (C) 2008, Jun-Dir Liew and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +Further licenses used by jboss are listed under the docs/licenses folder. Index: debian_installer/lams-jboss4-5.1/debian/lams-jboss4.install =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/lams-jboss4.install,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/lams-jboss4.install 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,5 @@ +bin/* /usr/share/jboss-5.1/bin +common/* /usr/share/jboss-5.1/common +lib/* /usr/share/jboss-5.1/lib +server/* /usr/share/jboss-5.1/server + Index: debian_installer/lams-jboss4-5.1/debian/postinst =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/postinst,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/postinst 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,81 @@ +#!/bin/sh +# postinst script for lams-jboss4 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +update402to51() { + + # Move files from 4.0.2 to 5.1 dir structure + mkdir -p /usr/share/jboss-5.1/server/default/deploy/lams.ear/lams-www.war/images + + # Copy secure folder + cp -rp /usr/share/lams2/tmp/secure /usr/share/jboss-5.1/server/default/deploy/lams.ear/lams-www.war + + # Copy pixlr images + cp -rp /usr/share/lams2/tmp/pixlr /usr/share/jboss-5.1/server/default/deploy/lams.ear/lams-www.war/images + + # Copy news.html + cp -rp /usr/share/lams2/tmp/news.html /usr/share/jboss-5.1/server/default/deploy/lams.ear/lams-www.war + + + +} + +case "$1" in + configure) + # Store variable data under /var + mkdir -p /var/cache/jboss + mkdir -p /var/cache/jboss/data + mkdir -p /var/cache/jboss/tmp + mkdir -p /var/cache/jboss/work + mkdir -p /var/log/jboss + cd /usr/share/jboss-5.1/server/default + ln -s /var/cache/jboss/data data + ln -s /var/cache/jboss/tmp tmp + ln -s /var/cache/jboss/work work + ln -s /var/log/jboss log + + # Make scripts executable + cd /usr/share/jboss-5.1/bin + chmod 755 *.sh + + + case "$2" in + 4.0.2*) + update402to51; + ;; + esac + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Index: debian_installer/lams-jboss4-5.1/debian/postrm =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/postrm,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/postrm 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,43 @@ +#!/bin/sh +# postrm script for lams-jboss4 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) + ;; + purge) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Index: debian_installer/lams-jboss4-5.1/debian/preinst =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/preinst,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/preinst 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,44 @@ +#!/bin/sh +# preinst script for lams-jboss4 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install) + ;; + + upgrade) + # Backup selected files + mkdir -p /usr/share/lams2/tmp/ + cp -p /usr/share/jboss-4.0.2/server/default/deploy/lams.ear/lams-www.war/news.html /usr/share/lams2/tmp/ + cp -pr /usr/share/jboss-4.0.2/server/default/deploy/lams.ear/lams-www.war/secure /usr/share/lams2/tmp + cp -pr /usr/share/jboss-4.0.2/server/default/deploy/lams.ear/lams-www.war/images/pixlr /usr/share/lams2/tmp + + ;; + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + Index: debian_installer/lams-jboss4-5.1/debian/prerm =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/prerm,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/prerm 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,50 @@ +#!/bin/sh +# prerm script for blah +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) + rm -rf /usr/share/jboss-4.0.2/server/default/data + rm -rf /usr/share/jboss-4.0.2/server/default/tmp + rm -rf /usr/share/jboss-4.0.2/server/default/work + rm -rf /usr/share/jboss-4.0.2/server/default/log + rm -rf /var/cache/jboss/ + rm -rf /var/log/jboss/ + rm -rf /usr/share/jboss-5.1 + ;; + + upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + Index: debian_installer/lams-jboss4-5.1/debian/rules =================================================================== RCS file: /usr/local/cvsroot/debian_installer/lams-jboss4-5.1/debian/rules,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ debian_installer/lams-jboss4-5.1/debian/rules 21 Aug 2012 15:39:34 -0000 1.1 @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +build: + +clean: + dh_testdir + dh_testroot + + dh_clean + +binary-indep: build + +binary-arch: build + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installdebconf + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary