atlassian-crowd: init at 2.10.1

This commit is contained in:
Franz Pletz 2016-10-09 12:29:48 +02:00 committed by Robin Gloster
parent 96d0950ce3
commit 8a59ad167e
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv, fetchurl, home ? "/var/lib/crowd" }:
stdenv.mkDerivation rec {
name = "atlassian-crowd-${version}";
version = "2.10.1";
src = fetchurl {
url = "https://www.atlassian.com/software/crowd/downloads/binary/${name}.tar.gz";
sha256 = "1pl4wyqvzqb97ql23530amslrrsysi0fmmnzpihhgqhvhwf57sc6";
};
phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
buildPhase = ''
mv apache-tomcat/conf/server.xml apache-tomcat/conf/server.xml.dist
ln -s /run/atlassian-crowd/server.xml apache-tomcat/conf/server.xml
rm -rf apache-tomcat/work
ln -s /run/atlassian-crowd/work apache-tomcat/work
substituteInPlace apache-tomcat/bin/startup.sh --replace start run
echo "crowd.home=${home}" > crowd-webapp/WEB-INF/classes/crowd-init.properties
'';
installPhase = ''
cp -rva . $out
'';
meta = with stdenv.lib; {
description = "Single sign-on and identity management tool";
homepage = https://www.atlassian.com/software/crowd;
license = licenses.unfree;
maintainers = with maintainers; [ fpletz globin ];
};
}

View File

@ -9820,6 +9820,7 @@ in
archiveopteryx = callPackage ../servers/mail/archiveopteryx/default.nix { };
atlassian-confluence = callPackage ../servers/atlassian/confluence.nix { };
atlassian-crowd = callPackage ../servers/atlassian/crowd.nix { };
atlassian-jira = callPackage ../servers/atlassian/jira.nix { };
cadvisor = callPackage ../servers/monitoring/cadvisor { };