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