OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2010-2013 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=openvpn-easy-rsa |
||
11 | |||
3 | office | 12 | PKG_VERSION:=3.0.1 |
1 | office | 13 | PKG_RELEASE:=1 |
3 | office | 14 | PKG_SOURCE_URL:=https://github.com/OpenVPN/easy-rsa/releases/download/$(PKG_VERSION)/ |
1 | office | 15 | PKG_SOURCE:=EasyRSA-$(PKG_VERSION).tgz |
3 | office | 16 | PKG_HASH:=dbdaf5b9444b99e0c5221fd4bcf15384c62380c1b63cea23d42239414d7b2d4e |
1 | office | 17 | PKG_LICENSE:=GPL-2.0 |
18 | PKG_BUILD_DIR:=$(BUILD_DIR)/EasyRSA-$(PKG_VERSION) |
||
19 | |||
20 | include $(INCLUDE_DIR)/package.mk |
||
21 | |||
22 | define Package/openvpn-easy-rsa |
||
23 | TITLE:=CLI utility to build and manage a PKI CA. |
||
24 | SECTION:=net |
||
25 | CATEGORY:=Network |
||
26 | URL:=http://openvpn.net |
||
27 | SUBMENU:=VPN |
||
28 | DEPENDS:=+openssl-util |
||
29 | endef |
||
30 | |||
31 | define Package/openvpn-easy-rsa/conffiles |
||
32 | /etc/easy-rsa/vars |
||
33 | /etc/easy-rsa/openssl-1.0.cnf |
||
34 | endef |
||
35 | |||
36 | define Build/Configure |
||
37 | |||
38 | endef |
||
39 | |||
40 | define Build/Compile |
||
41 | |||
42 | endef |
||
43 | |||
44 | define Package/openvpn-easy-rsa/install |
||
3 | office | 45 | $(INSTALL_DIR) $(1)/usr/sbin |
1 | office | 46 | |
3 | office | 47 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/easyrsa $(1)/usr/sbin/ |
1 | office | 48 | $(INSTALL_DIR) $(1)/etc/easy-rsa |
3 | office | 49 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/openssl-1.0.cnf $(1)/etc/easy-rsa/openssl-1.0.cnf |
1 | office | 50 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/vars.example $(1)/etc/easy-rsa/vars |
51 | |||
52 | $(INSTALL_DIR) $(1)/etc/easy-rsa/pki |
||
53 | chmod 700 $(1)/etc/easy-rsa/pki |
||
54 | $(INSTALL_DIR) $(1)/etc/easy-rsa/pki/private |
||
55 | chmod 700 $(1)/etc/easy-rsa/pki/private |
||
56 | $(INSTALL_DIR) $(1)/etc/easy-rsa/pki/reqs |
||
57 | chmod 700 $(1)/etc/easy-rsa/pki/reqs |
||
58 | |||
59 | $(INSTALL_DIR) $(1)/etc/easy-rsa/x509-types |
||
60 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/x509-types/* $(1)/etc/easy-rsa/x509-types/ |
||
61 | |||
62 | $(INSTALL_DIR) $(1)/lib/upgrade/keep.d |
||
63 | $(INSTALL_DATA) files/openvpn-easy-rsa.upgrade $(1)/lib/upgrade/keep.d/$(PKG_NAME) |
||
64 | endef |
||
65 | |||
66 | $(eval $(call BuildPackage,openvpn-easy-rsa)) |