2013-02-05 10:40:13 +00:00
|
|
|
#
|
2013-10-15 12:23:21 +00:00
|
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
2013-02-05 10:40:13 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2018-03-27 05:42:06 +00:00
|
|
|
PKG_VERSION:=3.0.4
|
2017-03-01 04:42:55 +00:00
|
|
|
PKG_RELEASE:=1
|
2018-03-27 05:42:06 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/OpenVPN/easy-rsa/releases/download/v$(PKG_VERSION)/
|
2017-03-01 04:42:55 +00:00
|
|
|
PKG_SOURCE:=EasyRSA-$(PKG_VERSION).tgz
|
2018-03-27 05:42:06 +00:00
|
|
|
PKG_HASH:=472167f976c6cb7c860cec6150a5616e163ae20365c81f179811d6ee0779ec5a
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2017-03-01 04:42:55 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/EasyRSA-$(PKG_VERSION)
|
2018-03-27 05:42:06 +00:00
|
|
|
PKGARCH:=all
|
2013-02-05 10:40:13 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/openvpn-easy-rsa
|
2017-03-01 04:42:55 +00:00
|
|
|
TITLE:=CLI utility to build and manage a PKI CA.
|
2013-02-05 10:40:13 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=http://openvpn.net
|
|
|
|
SUBMENU:=VPN
|
|
|
|
DEPENDS:=+openssl-util
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openvpn-easy-rsa/conffiles
|
|
|
|
/etc/easy-rsa/vars
|
2017-03-01 04:42:55 +00:00
|
|
|
/etc/easy-rsa/openssl-1.0.cnf
|
2018-03-27 05:42:06 +00:00
|
|
|
/etc/easy-rsa/openssl-easyrsa.cnf
|
2013-02-05 10:40:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openvpn-easy-rsa/install
|
2018-03-27 05:42:06 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2017-03-01 04:42:55 +00:00
|
|
|
|
2018-03-27 05:42:06 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/easyrsa $(1)/usr/bin/
|
2013-02-05 10:40:13 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa
|
2018-03-27 05:42:06 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/openssl-easyrsa.cnf $(1)/etc/easy-rsa/openssl-1.0.cnf
|
|
|
|
$(LN) /etc/easy-rsa/openssl-1.0.cnf $(1)/etc/easy-rsa/openssl-easyrsa.cnf
|
2017-03-01 04:42:55 +00:00
|
|
|
$(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)
|
2013-02-05 10:40:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,openvpn-easy-rsa))
|