* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / java / jboss-as / jboss-as.conf
blob830149826bb53e4ee185a3d891cac860a06a8f93
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/jboss-as/jboss-as.conf
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Prevent executing normal make and install build steps.
13 # This package has custom make and install.
14 makeopt=
15 makeinstopt=
17 # Check if a java development kit was installed. Unfortunately
18 # JBoss seems to use special sun classes that are no available
19 # in the IBM jdk. So we are forced to check for the availability
20 # of the Sun jdk.
21 pkgprefix -t sun-jdk-150
23 prefix=opt/jboss
24 export JBOSS_HOME=$root/$prefix
26 # Custom package building and installation.
27 jboss_postmake() {
28         # Start building.
29         (cd build; sh build.sh)
30         if [ $? -ne 0 ]; then
31                 # Something went wrong.
32                 abort "Building $pkg failed."
33         fi
34         
35         mkdir -p $JBOSS_HOME
36         # After building we have to copy the build results to
37         # the installation directory ($prefix). We also have
38         # to make sure to preserve any existing links.
39         buildoutput=$builddir/jboss-$ver-src/build/output/jboss-$ver/
40         (cd $buildoutput; tar -c * | tar -x -C $JBOSS_HOME)
43 hook_add postmake 5 jboss_postmake