1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= easy-rsa
  5. PKG_VERSION:= 2.0.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= cd55a94b0785a0b1e1076b4dc018d531
  8. PKG_DESCR:= openssl ca scripts
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= openssl-util
  11. PKG_URL:= https://github.com/OpenVPN/easy-rsa
  12. PKG_SITES:= http://openadk.org/distfiles/
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,EASY_RSA,easy-rsa,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. easy-rsa-install:
  19. ${INSTALL_DIR} $(IDIR_EASY_RSA)/usr/sbin \
  20. $(IDIR_EASY_RSA)/etc/easy-rsa/keys
  21. touch $(IDIR_EASY_RSA)/etc/easy-rsa/keys/index.txt
  22. $(CP) ./files/serial $(IDIR_EASY_RSA)/etc/easy-rsa/keys
  23. $(CP) $(WRKBUILD)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} \
  24. $(IDIR_EASY_RSA)/usr/sbin
  25. ${INSTALL_DATA} $(WRKBUILD)/easy-rsa/2.0/openssl-1.0.0.cnf \
  26. $(IDIR_EASY_RSA)/etc/easy-rsa/openssl.cnf
  27. ${INSTALL_DATA} $(WRKBUILD)/easy-rsa/2.0/vars \
  28. $(IDIR_EASY_RSA)/etc/easy-rsa/vars
  29. include ${TOPDIR}/mk/pkg-bottom.mk