1
0

Makefile 972 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-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. killall -HUP rpcd 2>/dev/null
  34. exit 0
  35. endef
  36. $(eval $(call BuildPackage,rpcd-mod-rrdns))