buildroot/package/easy-rsa/easy-rsa.mk
Julien Viard de Galbert a02c64f190 easy-rsa: new package
[Peter: Mention that openssl is a runtime dependency,
	Add license info as noted by Romain, add gpl-2.0.txt,
	Add comment explaining the missing build step,
	Use install -t for x509-types files]
Signed-off-by: Julien Viard de Galbert <julien@vdg.name>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2017-07-04 00:24:38 +02:00

24 lines
890 B
Makefile

################################################################################
#
# easy-rsa
#
################################################################################
EASY_RSA_VERSION = 3.0.1
EASY_RSA_SOURCE = EasyRSA-$(EASY_RSA_VERSION).tgz
EASY_RSA_SITE = https://github.com/OpenVPN/easy-rsa/releases/download/$(EASY_RSA_VERSION)
EASY_RSA_LICENSE = GPL-2.0
EASY_RSA_LICENSE_FILES = COPYING gpl-2.0.txt
# shell script, so no build step
define EASY_RSA_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/easyrsa $(TARGET_DIR)/usr/bin/easyrsa
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/easy-rsa/x509-types
$(INSTALL) -m 0644 -t $(TARGET_DIR)/etc/easy-rsa/x509-types $(@D)/x509-types/*
$(INSTALL) -D -m 0644 $(@D)/openssl-1.0.cnf $(TARGET_DIR)/etc/easy-rsa/openssl-1.0.cnf
$(INSTALL) -D -m 0644 $(@D)/vars.example $(TARGET_DIR)/etc/easy-rsa/vars
endef
$(eval $(generic-package))