[ "$J2SE_PACKAGE_LIBDIR" ] && lib_dir="$J2SE_PACKAGE_LIBDIR"
# If a default has been set for either of the
-# environment variables, use it; otherwise,
-# default to the name and email used by the
+# environment variables, use it; otherwise,
+# default to the name and email used by the
# Debian Java Maintainers project.
if [ -z "$J2SE_PACKAGE_FULL_NAME" ]; then
maintainer_name="Debian Java Maintainers"
fi
genchanges=""
+build_source=""
### check for run in fakeroot
Supported java binary distributions currently include:
* Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
- - The Java Development Kit (JDK), version 6 and 7
- - The Java Runtime Environment (JRE), version 6 and 7
- - The Java API Javadoc, version 6 and 7
+ - The Java Development Kit (JDK), version 6, 7 and 8
+ - The Java Runtime Environment (JRE), version 6, 7 and 8
+ - The Java API Javadoc, version 6, 7 and 8
(Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
The following options are recognized:
- --full-name NAME full name used in the maintainer field of the package
- --email EMAIL email address used in the maintainer field of the package
- --changes create a .changes file
- --revision add debian revision
+ --full-name NAME full name used in the maintainer field of the package
+ --email EMAIL email address used in the maintainer field of the package
+ --changes create a .changes file
+ --revision add debian revision
+ --source build a source package instead of a binary deb package
+ --with-system-certs integrate with the system's keystore
- --help display this help and exit
- --version output version information and exit
+ --help display this help and exit
+ --version output version information and exit
EOF
}
revision="-${1}"
elif [[ "x$1" == x--changes ]]; then
genchanges="true"
+ elif [[ "x$1" == x--source ]]; then
+ build_source="true"
+ elif [[ "x$1" == x--with-system-certs ]]; then
+ create_cert_softlinks="true"
else
unrecognized_option "$1"
fi
tmp="$( mktemp -d -t "$program_name.XXXXXXXXXX" )"
echo "$tmp"
-debian_dir="$tmp/debian"
-install -d -m 755 "$debian_dir"
+package_dir="$tmp/package"
+install -d -m 755 "$package_dir"
-install_dir="$tmp/install"
-install -d -m 755 "$install_dir"
+debian_dir="$package_dir/debian"
+install -d -m 755 "$debian_dir"
# load and execute plugins
echo -n "Loading plugins:"
javadoc_base="/usr/share/doc/"
j2se_found=
-for var in ${!j2se_detect_*}; do
+for var in ${!j2se_detect_*}; do
eval "\$$var"
if [[ "$j2se_found" == "true" ]]; then
break;