diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-08-10 22:02:51 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2015-08-10 22:05:20 +0200 |
commit | 4da188cf540e0e8e5d3b6adf9a2ca070e7a511bb (patch) | |
tree | b978b463f861a50a7b9b55659eadea2af7f60fe7 /pkgs/servers/openxpki | |
parent | 8b94394ec2f263a792ae9f6e561843091d87da5e (diff) |
openxpki: init at git 2015/08/07
Diffstat (limited to 'pkgs/servers/openxpki')
-rw-r--r-- | pkgs/servers/openxpki/default.nix | 77 | ||||
-rw-r--r-- | pkgs/servers/openxpki/vergen_revision_state | 12 |
2 files changed, 89 insertions, 0 deletions
diff --git a/pkgs/servers/openxpki/default.nix b/pkgs/servers/openxpki/default.nix new file mode 100644 index 0000000000000..b26c4f12456f9 --- /dev/null +++ b/pkgs/servers/openxpki/default.nix @@ -0,0 +1,77 @@ +{ stdenv, buildPerlPackage, fetchgit, perl, openssl, perlPackages, gettext, python34Packages +# TODO: Remove extra dependencies once it is clear that they are NOT needed somewhere. +, extraDependencies1 ? false, extraDependencies2 ? false, extraDependencies3 ? false }: + +buildPerlPackage { + name = "openxpki-git20150807"; + + src = fetchgit { + url = "https://github.com/openxpki/openxpki"; + rev = "5cb76c553b6b1a81ede380857700628a7521f6e3"; + sha256 = "7c93bdce7a205c58b08c91c249e566e885ed08f9d43cc2ac652c705c1f7e4490"; + }; + + buildInputs = [ perl openssl gettext python34Packages.sphinx ]; + propagatedBuildInputs = with perlPackages; + [ # dependencies from Makefile.PL + libintlperl ConfigVersioned LWP TestSimple ClassAccessorChained IOSocketSSL ClassStd + CGISession ConfigStd ConfigMerge Connector CryptCBC CryptOpenSSLAES CryptPKCS10 + DBDMock DataPassword DataSerializer DateTimeFormatDateParse IOPrompt + IPCShareLite JSON Log4Perl LWPProtocolconnect LWPProtocolhttps MailRFC822Address + Moose NetAddrIP NetDNS NetIP NetLDAP NetHTTP NetServer NetSSLeay ParamsValidate PathClass + ProcProcessTable ProcSafeExec RegexpCommon SOAPLite Switch SysSigAction TemplateToolkit + TestPod TestPodCoverage TextCSV_XS TimeHiRes Workflow XMLFilterXInclude XMLParser + XMLSAX XMLSAXWriter XMLSimple XMLValidatorSchema ] + ++ stdenv.lib.optionals extraDependencies1 + [ # dependencies from parsing through core/server + ClassAccessor Carp PathTools DataDumper DateTime DateTimeFormatStrptime DBI DigestMD5 + DigestSHA Encode ExceptionClass Exporter FilePath FileTemp Filter GetoptLong HTMLParser + ScalarListUtils MathBigInt Memoize MIMEBase64 NetSMTP PodUsage RTClientREST Socket + Storable XSLoader ] + ++ stdenv.lib.optionals extraDependencies2 + [ # dependencies taken from Debian + MooseXTypesPathClass DataStreamBulk MooseXStrictConstructor NamespaceAutoclean GitPurePerl + ConfigGitLike DevelStackTrace TreeDAGNode ClassObservable ClassFactory TimeDate ConfigAny + CGIFast ClassISA YAML YAMLLibYAML AuthenSASL TextCSV FileFindRulePerl IODigest ] + ++ stdenv.lib.optionals extraDependencies3 + [ # dependencies taken from http://search.cpan.org/~alech/Bundle-OpenXPKI-0.06/lib/Bundle/OpenXPKI.pm + AttributeHandlers AttributeParamsValidate AutoLoader BC CGI CPAN CacheCache ClassClassgenclassgen + ClassContainer ClassDataInheritable ClassSingleton ConvertASN1 DBDSQLite DBIxHTMLViewLATEST + DBFile DataPage DataSpreadPagination DateTimeLocale DateTimeTimeZone DevelPPPort DevelSelfStubber + DevelSymdump Digest DigestSHA1 Env Error ExtUtilsCommand ExtUtilsConstant ExtUtilsInstall + ExtUtilsMakeMaker FileCheckTree FilterSimple GoferTransporthttp HTMLMason HTMLTagset + HTTPServerSimpleMason I18NCollate IO IPCSysV LocaleCodes LocaleMaketext LogDispatch MathBigRat + MathComplex MathRound ModuleBuild ModuleBuildDeprecated NetPing PerlIOviaQuotedPrint PodChecker + PodCoverage PodEscapes PodLaTeX PodParser PodPerldoc PodPlainer PodSimple Safe SearchDict SelfLoader + SubUplevel SysSyslog TemplatePluginAutoformat TermANSIColor TermCap TermReadKey Test TestException + TestHTTPServerSimple TestHarness TestHarnessStraps TextAbbrev TextBalanced TextIconv TextSoundex + TextTabsWrap ThreadQueue ThreadSemaphore TieFile TieRefHash TimeLocal URI UnicodeCollate + UnicodeNormalize WWWMechanize Want XMLFilterBufferText XMLNamespaceSupport autodie base bignum if_ + lib libapreq2 libnet podlators threads threadsshared version ]; + + preConfigure = '' + export OPENSSL_PREFIX=${openssl} + substituteInPlace tools/vergen --replace "#!/usr/bin/perl" "#!${perl}/bin/perl" + cp ${./vergen_revision_state} .vergen_revision_state + cd core/server + ''; + + postInstall = '' + mkdir -p $out/share/openxpki + cp -r ../htdocs_source $out/share/openxpki/. + cp -r ../../config $out/share/openxpki/. + cp -r ../../qatest $out/share/openxpki/. + (cd ../i18n; make scan; make; make install PREFIX=$out) + (cd ../../clients/perl/OpenXPKI-Client-Enrollment; perl Makefile.PL PREFIX=$out; make; make install PREFIX=$out) + (cd ../../doc; make html man; cp _build/man/* $out/share/man/man1/.; mkdir -p $out/share/openxpki/doc; cp -r _build/{html,doctrees} $out/share/openxpki/doc/.) + ''; + + doCheck = false; + + meta = { + homepage = "http://www.openxpki.org"; + description = "Enterprise-grade PKI/Trustcenter software"; + license = stdenv.lib.licences.apache20; + maintainers = with stdenv.lib.maintainers; [ tstrobel ]; + }; +} diff --git a/pkgs/servers/openxpki/vergen_revision_state b/pkgs/servers/openxpki/vergen_revision_state new file mode 100644 index 0000000000000..9a5d7b531de47 --- /dev/null +++ b/pkgs/servers/openxpki/vergen_revision_state @@ -0,0 +1,12 @@ +$revision_info = { + 'git-tag' => 'v0.33.0', + 'git-tags' => 'v0.33.0', + 'git-branch' => 'master', + 'git-description-root' => undef, + 'git-description' => 'v0.33.0', + 'revision' => '1591', + 'last-changed-revision' => '1591', + 'git-abbreviated-commit-hash' => '5cb76c5', + 'git-commit-hash' => '5cb76c553b6b1a81ede380857700628a7521f6e3', + 'git-commit-date' => 'Tue, 4 Aug 2015 12:47:29 +0200' + }; |