* updated tzdata (2024a -> 2024b)
[t2sde.git] / package / java / maven / maven.conf
blobb7dc05b7d9da5f5ce62a0bc36fd1fc865ffb6257
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/maven/maven.conf
3 # Copyright (C) 2004 - 2024 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 # Make prefix same a java_home. This way artifacts like the bin, lib
18 # and doc directory are created at the proper level.
19 prefix=opt/maven2
20 set_confopt
22 # To be able to run maven a JRE needs to be installed. To be able to
23 # have maven compile java stuff a JDK needs to be available as well.
24 # Todo: check for jdk, after java alternatives are working properly.
26 # Custom installation.
27 maven_postmake() {
28         # Copy the extracted archive to the current prefix location.
29         # But make sure to preserve any possible links.
30         (cd $builddir/apache-maven-${ver}; tar -c * | tar -x -C $root/$prefix)
32         # Unfortunately the acces right need to be changed. The archive
33         # was probably created under Windows.
34         chmod u+x $root$bindir/mvn
35         chmod -R u+r $root/$prefix
37         # Prepare necessary environment variables.
38         cat <<-EOF > $root/etc/profile.d/maven
39         PATH=\$PATH:$root$bindir
40         export PATH
41         EOF
44 hook_add postmake 5 maven_postmake