5b7d9be2131f7e57d37a28ab9e7b65fb300684aa
[openwrt/openwrt.git] / package / network / services / openvpn-easy-rsa / Makefile
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
12 PKG_RELEASE=2
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/OpenVPN/easy-rsa.git
16 PKG_SOURCE_DATE:=2013-01-30
17 PKG_SOURCE_VERSION:=ff5bfd1dd8e548cb24d302742af3894f893ef92f
18 PKG_MIRROR_HASH:=c87704b3906a0c14f51c6677151a9389f698523c7ec07f7c75489ca31786f128
19 PKG_LICENSE:=GPL-2.0
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/openvpn-easy-rsa
24 TITLE:=Simple shell scripts to manage a Certificate Authority
25 SECTION:=net
26 CATEGORY:=Network
27 URL:=http://openvpn.net
28 SUBMENU:=VPN
29 DEPENDS:=+openssl-util
30 endef
31
32 define Package/openvpn-easy-rsa/conffiles
33 /etc/easy-rsa/keys/serial
34 /etc/easy-rsa/keys/index.txt
35 /etc/easy-rsa/vars
36 endef
37
38 define Build/Configure
39
40 endef
41
42 define Build/Compile
43
44 endef
45
46 define Package/openvpn-easy-rsa/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(CP) $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/easy-rsa
50 $(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/openssl-1.0.0.cnf $(1)/etc/easy-rsa/openssl-1.0.0.cnf
51 $(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/vars $(1)/etc/easy-rsa/vars
52 $(INSTALL_DIR) $(1)/etc/easy-rsa/keys
53 $(INSTALL_DATA) files/easy-rsa.index $(1)/etc/easy-rsa/keys/index.txt
54 $(INSTALL_DATA) files/easy-rsa.serial $(1)/etc/easy-rsa/keys/serial
55 endef
56
57 $(eval $(call BuildPackage,openvpn-easy-rsa))