diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-01-28 12:23:33 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-02-04 09:58:31 +0100 |
commit | f876d08b533d93e8bcc386f14f91ee2a9ba74252 (patch) | |
tree | 66efab88f1a31e99dad87ccb994f09088951a743 /rules/easy-rsa.make | |
parent | dc81f883b6ba22dd4cc1c1fb00a893fbbfe1e29f (diff) | |
download | ptxdist-f876d08b533d93e8bcc386f14f91ee2a9ba74252.tar.gz ptxdist-f876d08b533d93e8bcc386f14f91ee2a9ba74252.tar.xz |
easy-rsa: initial commit
This patch adds easy-rsa. Some scripting framework to generate a PKI
CA "correctly".
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/easy-rsa.make')
-rw-r--r-- | rules/easy-rsa.make | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/easy-rsa.make b/rules/easy-rsa.make new file mode 100644 index 000000000..05c3f0cf1 --- /dev/null +++ b/rules/easy-rsa.make @@ -0,0 +1,62 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Alexander Aring <aar@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_EASY_RSA) += easy-rsa + +# +# Paths and names +# +EASY_RSA_VERSION := 2.2.2 +EASY_RSA_MD5 := 040238338980617bc9c2df4274349593 +EASY_RSA := easy-rsa-$(EASY_RSA_VERSION) +EASY_RSA_SUFFIX := tar.gz +EASY_RSA_TARBALL := $(EASY_RSA_VERSION).$(EASY_RSA_SUFFIX) +EASY_RSA_URL := https://github.com/OpenVPN/easy-rsa/archive/$(EASY_RSA_TARBALL) +EASY_RSA_SOURCE := $(SRCDIR)/$(EASY_RSA).$(EASY_RSA_SUFFIX) +EASY_RSA_DIR := $(BUILDDIR)/$(EASY_RSA) +EASY_RSA_LICENSE := GPLv2 + +EASY_RSA_INSTALL_SCRIPTS := \ + build-ca build-dh build-inter build-key build-key-pass build-key-pkcs12 \ + build-key-server build-req build-req-pass clean-all inherit-inter \ + list-crl pkitool revoke-full sign-req whichopensslcnf + +EASY_RSA_INSTALL_FILES := \ + openssl-1.0.0.cnf vars + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/easy-rsa.targetinstall: + @$(call targetinfo) + + @$(call install_init, easy-rsa) + @$(call install_fixup, easy-rsa,PRIORITY,optional) + @$(call install_fixup, easy-rsa,SECTION,base) + @$(call install_fixup, easy-rsa,AUTHOR,"Alexander Aring <aar@pengutronix.de>") + @$(call install_fixup, easy-rsa,DESCRIPTION,missing) + + @$(foreach script,$(EASY_RSA_INSTALL_SCRIPTS), \ + $(call install_copy, easy-rsa, 0, 0, 0755, -, \ + /usr/share/easy-rsa/$(script));) + + @$(foreach file,$(EASY_RSA_INSTALL_FILES), \ + $(call install_copy, easy-rsa, 0, 0, 0644, -, \ + /usr/share/easy-rsa/$(file));) + + @$(call install_finish, easy-rsa) + + @$(call touch) + +# vim: syntax=make |