1
0

Makefile 1.5 KB

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