# New ports collection makefile for:	p5-openxpki
# Date created:				29 Sep 2006
# Whom:					svysh
#
# $FreeBSD: ports/security/p5-openxpki/Makefile,v 1.8 2006/10/07 12:27:24 rafan Exp $
#

PORTNAME=	openxpki
PORTVERSION=	0.9.548
CATEGORIES=	security perl5
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
PKGNAMEPREFIX=	p5-
DISTNAME=	OpenXPKI-${PORTVERSION}
DIST_SUBDIR=	openxpki

MAINTAINER=	svysh@cryptocom.ru
COMMENT=	Perl based trustcenter software for PKI: core for server

BUILD_DEPENDS=	\
	${SITE_PERL}/Workflow.pm:${PORTSDIR}/devel/p5-Workflow \
	${SITE_PERL}/CGI/Session.pm:${PORTSDIR}/www/p5-CGI-Session \
	${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
	${SITE_PERL}/Locale/Recode.pm:${PORTSDIR}/devel/p5-Locale-libintl \
	${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
	${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \
	${SITE_PERL}/${PERL_ARCH}/Text/CSV_XS.pm:${PORTSDIR}/textproc/p5-Text-CSV_XS \
	${SITE_PERL}/XML/Filter/XInclude.pm:${PORTSDIR}/textproc/p5-XML-Filter-XInclude \
	${SITE_PERL}/XML/SAX/Writer.pm:${PORTSDIR}/textproc/p5-XML-SAX-Writer \
	${SITE_PERL}/XML/Validator/Schema.pm:${PORTSDIR}/textproc/p5-XML-Validator-Schema \
	${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
	${SITE_PERL}/Test/Pod.pm:${PORTSDIR}/devel/p5-Test-Pod \
	${SITE_PERL}/Test/Pod/Coverage.pm:${PORTSDIR}/devel/p5-Test-Pod-Coverage \
	${SITE_PERL}/Net/IP.pm:${PORTSDIR}/net-mgmt/p5-Net-IP \
	${SITE_PERL}/Class/Std.pm:${PORTSDIR}/devel/p5-Class-Std \
	${SITE_PERL}/Mail/RFC822/Address.pm:${PORTSDIR}/mail/p5-Mail-RFC822-Address \
	${SITE_PERL}/${PERL_ARCH}/Proc/ProcessTable.pm:${PORTSDIR}/devel/p5-Proc-ProcessTable \
	${SITE_PERL}/Sys/SigAction.pm:${PORTSDIR}/devel/p5-Sys-SigAction
RUN_DEPENDS=	${BUILD_DEPENDS}

MAN3=	OpenXPKI.3 \
	OpenXPKI::Crypto::API.3 \
	OpenXPKI::Crypto::Backend::API.3 \
	OpenXPKI::Crypto::Backend::OpenSSL.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::CLI.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::convert_cert.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::convert_crl.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::convert_key.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::convert_pkcs10.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_cert.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::DSA.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::EC.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::GOST2001.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::GOST2001CP.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::GOST94.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::GOST94CP.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_key::RSA.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_pkcs10.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_pkcs12.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::create_random.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::is_prime.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::issue_cert.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::issue_crl.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::pkcs7_decrypt.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::pkcs7_encrypt.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::pkcs7_get_chain.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::pkcs7_sign.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::pkcs7_verify.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Command::symmetric_cipher.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Config.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Engine.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Engine::GOST.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Engine::OpenSSL.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::Engine::nCipher.3 \
	OpenXPKI::Crypto::Backend::OpenSSL::XS.3 \
	OpenXPKI::Crypto::CLI.3 \
	OpenXPKI::Crypto::CRL.3 \
	OpenXPKI::Crypto::CRR.3 \
	OpenXPKI::Crypto::CSR.3 \
	OpenXPKI::Crypto::Header.3 \
	OpenXPKI::Crypto::Object.3 \
	OpenXPKI::Crypto::PKCS7.3 \
	OpenXPKI::Crypto::Profile::Base.3 \
	OpenXPKI::Crypto::Profile::CRL.3 \
	OpenXPKI::Crypto::Profile::Certificate.3 \
	OpenXPKI::Crypto::Secret.3 \
	OpenXPKI::Crypto::Secret::Plain.3 \
	OpenXPKI::Crypto::Secret::Split.3 \
	OpenXPKI::Crypto::TokenManager.3 \
	OpenXPKI::Crypto::Tool::SCEP.3 \
	OpenXPKI::Crypto::Tool::SCEP::API.3 \
	OpenXPKI::Crypto::Tool::SCEP::CLI.3 \
	OpenXPKI::Crypto::Tool::SCEP::Command::get_message_type.3 \
	OpenXPKI::Crypto::Tool::SCEP::Command::get_transaction_id.3 \
	OpenXPKI::Crypto::Tool::SCEP::Engine::OpenSSL.3 \
	OpenXPKI::Crypto::Toolkit.3 \
	OpenXPKI::Crypto::VolatileVault.3 \
	OpenXPKI::Crypto::X509.3 \
	OpenXPKI::DN.3 \
	OpenXPKI::DateTime.3 \
	OpenXPKI::Debug.3 \
	OpenXPKI::Exception.3 \
	OpenXPKI::FileUtils.3 \
	OpenXPKI::Serialization::JSON.3 \
	OpenXPKI::Serialization::Simple.3 \
	OpenXPKI::Server.3 \
	OpenXPKI::Server::ACL.3 \
	OpenXPKI::Server::API.3 \
	OpenXPKI::Server::API::Default.3 \
	OpenXPKI::Server::API::Object.3 \
	OpenXPKI::Server::API::Visualization.3 \
	OpenXPKI::Server::API::Workflow.3 \
	OpenXPKI::Server::Authentication.3 \
	OpenXPKI::Server::Authentication::Anonymous.3 \
	OpenXPKI::Server::Authentication::External.3 \
	OpenXPKI::Server::Authentication::LDAP.3 \
	OpenXPKI::Server::Authentication::Password.3 \
	OpenXPKI::Server::Authentication::X509.3 \
	OpenXPKI::Server::Context.3 \
	OpenXPKI::Server::DBI.3 \
	OpenXPKI::Server::DBI::DBH.3 \
	OpenXPKI::Server::DBI::Driver.3 \
	OpenXPKI::Server::DBI::Driver::DB2.3 \
	OpenXPKI::Server::DBI::Driver::MySQL.3 \
	OpenXPKI::Server::DBI::Driver::PostgreSQL.3 \
	OpenXPKI::Server::DBI::Driver::SQLite.3 \
	OpenXPKI::Server::DBI::Hash.3 \
	OpenXPKI::Server::DBI::SQL.3 \
	OpenXPKI::Server::DBI::Schema.3 \
	OpenXPKI::Server::Init.3 \
	OpenXPKI::Server::Log.3 \
	OpenXPKI::Server::Log::Appender::DBI.3 \
	OpenXPKI::Server::Session.3 \
	OpenXPKI::Server::Session::Mock.3 \
	OpenXPKI::Server::Workflow.3 \
	OpenXPKI::Server::Workflow::Activity.3 \
	OpenXPKI::Server::Workflow::Activity::CRLIssuance::DetermineNextCA.3 \
	OpenXPKI::Server::Workflow::Activity::CRLIssuance::GetCRLProfile.3 \
	OpenXPKI::Server::Workflow::Activity::CRLIssuance::IssueCRL.3 \
	OpenXPKI::Server::Workflow::Activity::CRLIssuance::PublishCRL.3 \
	OpenXPKI::Server::Workflow::Activity::CertIssuance::GetCertProfile.3 \
	OpenXPKI::Server::Workflow::Activity::CertIssuance::ImportCertData.3 \
	OpenXPKI::Server::Workflow::Activity::CertIssuance::Issue.3 \
	OpenXPKI::Server::Workflow::Activity::CertIssuance::PersistCertificate.3 \
	OpenXPKI::Server::Workflow::Activity::CertRequest::PersistRequest.3 \
	OpenXPKI::Server::Workflow::Activity::CertRequest::SetSource.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::Cleanup.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::ExportLogs.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::ExportWorkflowInstances.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::ImportLogs.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::ImportWorkflowInstances.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::PackArchive.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::PrepareEnv.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::ReadArchive.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::UnpackArchive.3 \
	OpenXPKI::Server::Workflow::Activity::DataExchange::WriteArchive.3 \
	OpenXPKI::Server::Workflow::Activity::Key::Generate.3 \
	OpenXPKI::Server::Workflow::Activity::Passphrase::Generate.3 \
	OpenXPKI::Server::Workflow::Activity::Profile::Create.3 \
	OpenXPKI::Server::Workflow::Activity::Request::Certificate::DataOnly::Create.3 \
	OpenXPKI::Server::Workflow::Activity::Request::Certificate::PKCS10::Create.3 \
	OpenXPKI::Server::Workflow::Activity::Skeleton.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::Approve.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::CancelApprovals.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::CreateWorkflowInstance.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::DetermineIssuingCA.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::Export.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::ForkWorkflowInstance.3 \
	OpenXPKI::Server::Workflow::Activity::Tools::Sleep.3 \
	OpenXPKI::Server::Workflow::Condition::ACL.3 \
	OpenXPKI::Server::Workflow::Condition::Approved.3 \
	OpenXPKI::Server::Workflow::Condition::CRLSigningCAsLeft.3 \
	OpenXPKI::Server::Workflow::Condition::ContextParameterExistence.3 \
	OpenXPKI::Server::Workflow::Condition::Key.3 \
	OpenXPKI::Server::Workflow::Condition::Server.3 \
	OpenXPKI::Server::Workflow::Condition::WorkflowChildrenSuccessfullyFinished.3 \
	OpenXPKI::Server::Workflow::Observer::Log.3 \
	OpenXPKI::Server::Workflow::Persister::DBI.3 \
	OpenXPKI::Server::Workflow::Persister::DBI::SequenceId.3 \
	OpenXPKI::Server::Workflow::Validator::CertProfile.3 \
	OpenXPKI::Server::Workflow::Validator::CertRole.3 \
	OpenXPKI::Server::Workflow::Validator::CertSubject.3 \
	OpenXPKI::Server::Workflow::Validator::CertSubjectAltName.3 \
	OpenXPKI::Server::Workflow::Validator::PKCS10.3 \
	OpenXPKI::Server::Workflow::Validator::SPKAC.3 \
	OpenXPKI::Server::Workflow::Validator::SetContextParameter.3 \
	OpenXPKI::Service.3 \
	OpenXPKI::Service::Default.3 \
	OpenXPKI::Service::Default::Command.3 \
	OpenXPKI::Service::Default::Command::nop.3 \
	OpenXPKI::Service::SCEP.3 \
	OpenXPKI::Service::SCEP::Command.3 \
	OpenXPKI::Service::SCEP::Command::GetCACert.3 \
	OpenXPKI::Service::SCEP::Command::PKIOperation.3 \
	OpenXPKI::Service::Test.3 \
	OpenXPKI::Transport::Simple.3 \
	OpenXPKI::VERSION.3 \
	OpenXPKI::XML::Cache.3 \
	OpenXPKI::XML::Config.3 \
	OpenXPKI::i18n.3
USE_PERL5=	yes
USE_GMAKE=	yes
USE_OPENSSL=	yes
WITH_OPENSSL_BETA=	yes
PERL_CONFIGURE=	yes

post-install:
	${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500806
IGNORE=	requires newer Perl, but you can install required old additional perl modules from CPAN instead
.endif

.include <bsd.port.post.mk>
