Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= easy-rsa
  5. PKG_VERSION:= 2.0.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 40a1800d8cf4e858d4b3cdc3d3c612747edcd18ecaeb6b8737f452092760e50c
  8. PKG_DESCR:= openssl ca scripts
  9. PKG_SECTION:= app/crypto
  10. PKG_DEPENDS:= openssl-util
  11. PKG_URL:= https://github.com/OpenVPN/easy-rsa
  12. PKG_SITES:= http://openadk.org/distfiles/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,EASY_RSA,easy-rsa,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. easy-rsa-install:
  20. ${INSTALL_DIR} $(IDIR_EASY_RSA)/usr/sbin \
  21. $(IDIR_EASY_RSA)/etc/easy-rsa/keys
  22. touch $(IDIR_EASY_RSA)/etc/easy-rsa/keys/index.txt
  23. $(CP) ./files/serial $(IDIR_EASY_RSA)/etc/easy-rsa/keys
  24. $(CP) $(WRKBUILD)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} \
  25. $(IDIR_EASY_RSA)/usr/sbin
  26. ${INSTALL_DATA} $(WRKBUILD)/easy-rsa/2.0/openssl-1.0.0.cnf \
  27. $(IDIR_EASY_RSA)/etc/easy-rsa/openssl.cnf
  28. ${INSTALL_DATA} $(WRKBUILD)/easy-rsa/2.0/vars \
  29. $(IDIR_EASY_RSA)/etc/easy-rsa/vars
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk