java-service-wrapper: 3.5.48 -> 3.5.49
* java-service-wrapper: 3.5.48 -> 3.5.49 (#161255) * java-service-wrapper: update meta changelog and SPDX3 license identifier and run pre- and post- hooks Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
This commit is contained in:
parent
75442ee9bc
commit
1bfcbcc05d
|
@ -5,36 +5,45 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "java-service-wrapper";
|
pname = "java-service-wrapper";
|
||||||
version = "3.5.48";
|
version = "3.5.49";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://wrapper.tanukisoftware.com/download/${version}/wrapper_${version}_src.tar.gz";
|
url = "https://wrapper.tanukisoftware.com/download/${version}/wrapper_${version}_src.tar.gz";
|
||||||
sha256 = "sha256-woANhwLOhvTnq+Bnc8zCIDZEJOv3swNfeI/3nQ7Y1SM=";
|
hash = "sha256-gcScF5LIqWVBv8erI3hG5tt5BZPO2XlhFACz1Y60+v4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ jdk ];
|
buildInputs = [ jdk ];
|
||||||
nativeBuildInputs = [ ant cunit ncurses ];
|
nativeBuildInputs = [ ant cunit ncurses ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
export ANT_HOME=${ant}
|
export ANT_HOME=${ant}
|
||||||
export JAVA_HOME=${jdk}/lib/openjdk/jre/
|
export JAVA_HOME=${jdk}/lib/openjdk/jre/
|
||||||
export JAVA_TOOL_OPTIONS=-Djava.home=$JAVA_HOME
|
export JAVA_TOOL_OPTIONS=-Djava.home=$JAVA_HOME
|
||||||
export CLASSPATH=${jdk}/lib/openjdk/lib/tools.jar
|
export CLASSPATH=${jdk}/lib/openjdk/lib/tools.jar
|
||||||
|
|
||||||
${if stdenv.isi686 then "./build32.sh" else "./build64.sh"}
|
${if stdenv.isi686 then "./build32.sh" else "./build64.sh"}
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/{bin,lib}
|
mkdir -p $out/{bin,lib}
|
||||||
cp bin/wrapper $out/bin/wrapper
|
cp bin/wrapper $out/bin/wrapper
|
||||||
cp lib/wrapper.jar $out/lib/wrapper.jar
|
cp lib/wrapper.jar $out/lib/wrapper.jar
|
||||||
cp lib/libwrapper.so $out/lib/libwrapper.so
|
cp lib/libwrapper.so $out/lib/libwrapper.so
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Enables a Java Application to be run as a Windows Service or Unix Daemon";
|
description = "Enables a Java Application to be run as a Windows Service or Unix Daemon";
|
||||||
homepage = "https://wrapper.tanukisoftware.com/";
|
homepage = "https://wrapper.tanukisoftware.com/";
|
||||||
license = licenses.gpl2;
|
changelog = "https://wrapper.tanukisoftware.com/doc/english/release-notes.html#${version}";
|
||||||
|
license = licenses.gpl2Only;
|
||||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||||
maintainers = [ maintainers.suhr ];
|
maintainers = [ maintainers.suhr ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue