2
0

Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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-luci
  8. PKG_VERSION:=20191114
  9. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_BUILD_DEPENDS:=iwinfo
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. TARGET_CFLAGS += \
  16. -I$(STAGING_DIR)/usr/include/libnl-tiny \
  17. -I$(STAGING_DIR)/usr/include \
  18. CMAKE_OPTIONS += \
  19. -DLIBNL_LIBS=-lnl-tiny \
  20. define Build/Prepare
  21. $(INSTALL_DIR) $(PKG_BUILD_DIR)
  22. $(CP) ./src/* $(PKG_BUILD_DIR)/
  23. endef
  24. define Package/rpcd-mod-luci
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=Rapid reverse DNS rpcd module
  28. DEPENDS:=+rpcd +libubox +libubus +libnl-tiny
  29. endef
  30. define Package/rpcd-mod-luci/description
  31. Provides LuCI backend ubus RPC operations.
  32. endef
  33. define Package/rpcd-mod-luci/install
  34. $(INSTALL_DIR) $(1)/usr/lib/rpcd
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/luci.so $(1)/usr/lib/rpcd/
  36. endef
  37. define Package/rpcd-mod-luci/postinst
  38. #!/bin/sh
  39. killall -HUP rpcd 2>/dev/null
  40. exit 0
  41. endef
  42. $(eval $(call BuildPackage,rpcd-mod-luci))