Makefile 1.6 KB

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