mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
b4f463d969
easy-rsa v3 is now a single script. It expects a 'vars' configuration file which path can be set using easy-rsa options, environment variables or just looking in the current directory. The default usage would be: # cd /etc/easy-rsa # easy-rsa COMMAND [command-options] Following upstream changes, /etc/easy-rsa/pki replaces /etc/easy-rsa/keys directory. The default /etc/easy-rsa/pki dir is marked to be kept during upgrade (WARN: priv keys are saved in the system backup) /etc/easy-rsa/openssl.1.0.cnf is now marked as config file while index and serial got removed. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=openvpn-easy-rsa
|
|
|
|
PKG_VERSION:=3.0.1
|
|
PKG_RELEASE:=1
|
|
PKG_SOURCE_URL:=https://github.com/OpenVPN/easy-rsa/releases/download/$(PKG_VERSION)/
|
|
PKG_SOURCE:=EasyRSA-$(PKG_VERSION).tgz
|
|
PKG_HASH:=dbdaf5b9444b99e0c5221fd4bcf15384c62380c1b63cea23d42239414d7b2d4e
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/EasyRSA-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/openvpn-easy-rsa
|
|
TITLE:=CLI utility to build and manage a PKI CA.
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
URL:=http://openvpn.net
|
|
SUBMENU:=VPN
|
|
DEPENDS:=+openssl-util
|
|
endef
|
|
|
|
define Package/openvpn-easy-rsa/conffiles
|
|
/etc/easy-rsa/vars
|
|
/etc/easy-rsa/openssl-1.0.cnf
|
|
endef
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
define Package/openvpn-easy-rsa/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/easyrsa $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/openssl-1.0.cnf $(1)/etc/easy-rsa/openssl-1.0.cnf
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/vars.example $(1)/etc/easy-rsa/vars
|
|
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa/pki
|
|
chmod 700 $(1)/etc/easy-rsa/pki
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa/pki/private
|
|
chmod 700 $(1)/etc/easy-rsa/pki/private
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa/pki/reqs
|
|
chmod 700 $(1)/etc/easy-rsa/pki/reqs
|
|
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa/x509-types
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/x509-types/* $(1)/etc/easy-rsa/x509-types/
|
|
|
|
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
|
|
$(INSTALL_DATA) files/openvpn-easy-rsa.upgrade $(1)/lib/upgrade/keep.d/$(PKG_NAME)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,openvpn-easy-rsa))
|