2 # Copyright (C) 2010-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=openvpn-easy-rsa
12 PKG_REV
:=ff5bfd1dd8e548cb24d302742af3894f893ef92f
13 PKG_VERSION
:=2013-01-30
17 PKG_SOURCE_URL
:=https
://github.com
/OpenVPN
/easy-rsa.git
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_REV
).
tar.xz
20 PKG_MIRROR_HASH
:=cdb0d3f1fb828e4026b6fb297303d5ccb9bc4e1faccbb6a7687518655b178875
21 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/openvpn-easy-rsa
27 TITLE
:=Simple
shell scripts to manage a Certificate Authority
30 URL
:=http
://openvpn.net
32 DEPENDS
:=+openssl-util
35 define Package
/openvpn-easy-rsa
/conffiles
36 /etc
/easy-rsa
/keys
/serial
37 /etc
/easy-rsa
/keys
/index.txt
41 define Build
/Configure
49 define Package
/openvpn-easy-rsa
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(CP
) $(PKG_BUILD_DIR
)/easy-rsa
/2.0/{build-
*,clean-all
,inherit-inter
,list-crl
,pkitool
,revoke-full
,sign-req
,whichopensslcnf
} $(1)/usr
/sbin
/
52 $(INSTALL_DIR
) $(1)/etc
/easy-rsa
53 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/easy-rsa
/2.0/openssl-1.0
.0.cnf
$(1)/etc
/easy-rsa
/openssl-1.0
.0.cnf
54 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/easy-rsa
/2.0/vars
$(1)/etc
/easy-rsa
/vars
55 $(INSTALL_DIR
) $(1)/etc
/easy-rsa
/keys
56 $(INSTALL_DATA
) files
/easy-rsa.index
$(1)/etc
/easy-rsa
/keys
/index.txt
57 $(INSTALL_DATA
) files
/easy-rsa.serial
$(1)/etc
/easy-rsa
/keys
/serial
60 $(eval
$(call BuildPackage
,openvpn-easy-rsa
))