2018-10-13 01:10:38 +02:00
|
|
|
{ stdenv, fetchgit, perl, openssl, perlPackages, gettext, python3Packages
|
2015-08-10 22:02:51 +02:00
|
|
|
# TODO: Remove extra dependencies once it is clear that they are NOT needed somewhere.
|
|
|
|
, extraDependencies1 ? false, extraDependencies2 ? false, extraDependencies3 ? false }:
|
|
|
|
|
2018-10-13 01:10:38 +02:00
|
|
|
perlPackages.buildPerlPackage {
|
2019-06-20 15:07:56 +02:00
|
|
|
pname = "openxpki";
|
|
|
|
version = "git20150807";
|
2015-08-10 22:02:51 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/openxpki/openxpki";
|
|
|
|
rev = "5cb76c553b6b1a81ede380857700628a7521f6e3";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "05bmhani2c7ays488xv3hx5xbxb612bnwq5rdjwmsj51xpaz454p";
|
2015-08-10 22:02:51 +02:00
|
|
|
};
|
|
|
|
|
2018-09-19 16:16:19 +02:00
|
|
|
buildInputs = [ perl openssl gettext python3Packages.sphinx ];
|
2015-08-10 22:02:51 +02:00
|
|
|
propagatedBuildInputs = with perlPackages;
|
|
|
|
[ # dependencies from Makefile.PL
|
2018-07-22 04:03:24 +02:00
|
|
|
libintl_perl ConfigVersioned LWP ClassAccessorChained IOSocketSSL ClassStd
|
2015-08-10 22:02:51 +02:00
|
|
|
CGISession ConfigStd ConfigMerge Connector CryptCBC CryptOpenSSLAES CryptPKCS10
|
|
|
|
DBDMock DataPassword DataSerializer DateTimeFormatDateParse IOPrompt
|
2018-07-22 04:03:24 +02:00
|
|
|
IPCShareLite JSON LogLog4perl LWPProtocolConnect LWPProtocolHttps MailRFC822Address
|
|
|
|
Moose NetAddrIP NetDNS NetIP perlldap NetHTTP NetServer NetSSLeay ParamsValidate PathClass
|
2015-08-10 22:02:51 +02:00
|
|
|
ProcProcessTable ProcSafeExec RegexpCommon SOAPLite Switch SysSigAction TemplateToolkit
|
2018-12-14 16:40:36 +01:00
|
|
|
TestPod TestPodCoverage TextCSV_XS Workflow XMLFilterXInclude XMLParser
|
2015-08-10 22:02:51 +02:00
|
|
|
XMLSAX XMLSAXWriter XMLSimple XMLValidatorSchema ]
|
|
|
|
++ stdenv.lib.optionals extraDependencies1
|
|
|
|
[ # dependencies from parsing through core/server
|
2018-12-14 16:40:36 +01:00
|
|
|
ClassAccessor PathTools DataDumper DateTime DateTimeFormatStrptime DBI
|
|
|
|
Encode ExceptionClass FilePath FileTemp Filter GetoptLong HTMLParser
|
|
|
|
ScalarListUtils MathBigInt Memoize libnet RTClientREST
|
|
|
|
Storable ]
|
2015-08-10 22:02:51 +02:00
|
|
|
++ stdenv.lib.optionals extraDependencies2
|
|
|
|
[ # dependencies taken from Debian
|
2018-12-14 16:40:36 +01:00
|
|
|
MooseXTypesPathClass DataStreamBulk MooseXStrictConstructor GitPurePerl
|
2015-08-10 22:02:51 +02:00
|
|
|
ConfigGitLike DevelStackTrace TreeDAGNode ClassObservable ClassFactory TimeDate ConfigAny
|
|
|
|
CGIFast ClassISA YAML YAMLLibYAML AuthenSASL TextCSV FileFindRulePerl IODigest ]
|
|
|
|
++ stdenv.lib.optionals extraDependencies3
|
2018-07-11 05:43:22 +02:00
|
|
|
[ # dependencies taken from https://metacpan.org/pod/release/ALECH/Bundle-OpenXPKI-0.06/lib/Bundle/OpenXPKI.pm
|
2018-12-14 16:40:36 +01:00
|
|
|
AttributeParamsValidate BC CGI CPAN CacheCache ClassClassgenclassgen
|
2015-08-10 22:02:51 +02:00
|
|
|
ClassContainer ClassDataInheritable ClassSingleton ConvertASN1 DBDSQLite DBIxHTMLViewLATEST
|
2018-12-14 16:40:36 +01:00
|
|
|
DBFile DataPage DataSpreadPagination DateTimeLocale DateTimeTimeZone DevelPPPort
|
|
|
|
DevelSymdump DigestSHA1 Env Error ExtUtilsConstant ExtUtilsInstall
|
|
|
|
ExtUtilsMakeMaker FileCheckTree GoferTransporthttp HTMLMason HTMLTagset
|
|
|
|
HTTPServerSimpleMason IO IPCSysV LocaleCodes LogDispatch MathBigRat
|
|
|
|
MathRound ModuleBuild ModuleBuildDeprecated NetPing PodChecker
|
|
|
|
PodCoverage PodLaTeX PodParser PodPerldoc PodPlainer PodSimple
|
|
|
|
SubUplevel SysSyslog TemplatePluginAutoformat TermReadKey TestException
|
|
|
|
TestHTTPServerSimple TestHarnessStraps TextBalanced TextIconv TextSoundex
|
|
|
|
ThreadQueue TieFile TieRefHash TimeLocal URI
|
|
|
|
UnicodeNormalize WWWMechanize Want XMLFilterBufferText XMLNamespaceSupport bignum
|
|
|
|
libapreq2 libnet podlators threadsshared version ];
|
2015-08-10 22:02:51 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2016-04-17 17:37:43 +02:00
|
|
|
substituteInPlace core/server/Makefile.PL \
|
2016-04-16 19:44:32 +02:00
|
|
|
--replace "my \$openssl_inc_dir = ''';" "my \$openssl_inc_dir = '${openssl.dev}/include';" \
|
2016-04-17 17:37:43 +02:00
|
|
|
--replace "my \$openssl_lib_dir = ''';" "my \$openssl_lib_dir = '${openssl.out}/lib';" \
|
|
|
|
--replace "my \$openssl_binary = ''';" "my \$openssl_binary = '${openssl.bin}/bin/openssl';"
|
2015-08-10 22:02:51 +02:00
|
|
|
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 = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.openxpki.org;
|
2015-08-10 22:02:51 +02:00
|
|
|
description = "Enterprise-grade PKI/Trustcenter software";
|
2015-08-10 23:10:43 +02:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2015-08-10 22:02:51 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2015-08-10 22:02:51 +02:00
|
|
|
};
|
|
|
|
}
|