Makefile 987 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-rrdns
  8. PKG_VERSION:=20170710
  9. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_BUILD_PARALLEL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. define Build/Prepare
  15. $(INSTALL_DIR) $(PKG_BUILD_DIR)
  16. $(CP) ./src/* $(PKG_BUILD_DIR)/
  17. endef
  18. define Package/rpcd-mod-rrdns
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Rapid reverse DNS rpcd module
  22. DEPENDS:=+rpcd +libubox +libubus
  23. endef
  24. define Package/rpcd-mod-rrdns/description
  25. Provides rapid mass reverse DNS lookup functionality.
  26. endef
  27. define Package/rpcd-mod-rrdns/install
  28. $(INSTALL_DIR) $(1)/usr/lib/rpcd
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rrdns.so $(1)/usr/lib/rpcd/
  30. endef
  31. define Package/rpcd-mod-rrdns/postinst
  32. #!/bin/sh
  33. [ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
  34. endef
  35. $(eval $(call BuildPackage,rpcd-mod-rrdns))