Makefile 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_BUILD_PARALLEL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. define Build/Prepare
  14. true
  15. endef
  16. define Build/Compile
  17. true
  18. endef
  19. define Package/rpcd-mod-rad2-enc
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Radicale 2.x Hashing RPC module
  23. DEPENDS:=+rpcd +python3 +python3-passlib
  24. endef
  25. define Package/rpcd-mod-rad2-enc/description
  26. Python3 password hashing module for use Radicale 2.x LuCI app
  27. endef
  28. define Package/rpcd-mod-rad2-enc/install
  29. $(INSTALL_DIR) $(1)/usr/libexec/rpcd
  30. $(INSTALL_BIN) ./files/rad2-enc $(1)/usr/libexec/rpcd
  31. endef
  32. define Package/rpcd-mod-rad2-enc/postinst
  33. #!/bin/sh
  34. killall -HUP rpcd 2>/dev/null
  35. exit 0
  36. endef
  37. $(eval $(call BuildPackage,rpcd-mod-rad2-enc))