Add more license tags with SPDX identifiers
[openwrt/staging/yousong.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_REV:=ff5bfd1dd8e548cb24d302742af3894f893ef92f
13 PKG_VERSION:=2013-01-30
14 PKG_RELEASE=2
15
16 PKG_SOURCE_PROTO:=git
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.gz
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_LICENSE:=GPL-2.0
22
23 PKG_LICENSE:=GPL-2.0
24 PKG_LICENSE_FILES:=COPYRIGHT.GPL
25
26 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/openvpn-easy-rsa
31 TITLE:=Simple shell scripts to manage a Certificate Authority
32 SECTION:=net
33 CATEGORY:=Network
34 URL:=http://openvpn.net
35 SUBMENU:=VPN
36 DEPENDS:=+openssl-util
37 endef
38
39 define Package/openvpn-easy-rsa/conffiles
40 /etc/easy-rsa/keys/serial
41 /etc/easy-rsa/keys/index.txt
42 /etc/easy-rsa/vars
43 endef
44
45 define Build/Configure
46
47 endef
48
49 define Build/Compile
50
51 endef
52
53 define Package/openvpn-easy-rsa/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(CP) $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/etc/easy-rsa
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/openssl-1.0.0.cnf $(1)/etc/easy-rsa/openssl-1.0.0.cnf
58 $(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/vars $(1)/etc/easy-rsa/vars
59 $(INSTALL_DIR) $(1)/etc/easy-rsa/keys
60 $(INSTALL_DATA) files/easy-rsa.index $(1)/etc/easy-rsa/keys/index.txt
61 $(INSTALL_DATA) files/easy-rsa.serial $(1)/etc/easy-rsa/keys/serial
62 endef
63
64 $(eval $(call BuildPackage,openvpn-easy-rsa))