Makefile 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (C) 2016-2017 Jo-Philipp Wich <jo@mein.io>
  3. #
  4. # Licensed under the Apache License, Version 2.0.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=rpcd-mod-rad2-enc
  8. PKG_VERSION:=20190109
  9. PKG_LICENSE:=Apache-2.0
  10. PKG_BUILD_PARALLEL:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define Build/Prepare
  13. true
  14. endef
  15. define Build/Compile
  16. true
  17. endef
  18. define Package/rpcd-mod-rad2-enc
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Radicale 2.x Hashing RPC module
  22. DEPENDS:=+rpcd +python3 +python3-passlib
  23. endef
  24. define Package/rpcd-mod-rad2-enc/description
  25. Python3 password hashing module for use Radicale 2.x LuCI app
  26. endef
  27. define Package/rpcd-mod-rad2-enc/install
  28. $(INSTALL_DIR) $(1)/usr/libexec/rpcd
  29. $(INSTALL_BIN) ./files/rad2-enc $(1)/usr/libexec/rpcd
  30. endef
  31. define Package/rpcd-mod-rad2-enc/postinst
  32. #!/bin/sh
  33. [ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
  34. endef
  35. $(eval $(call BuildPackage,rpcd-mod-rad2-enc))