You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
881 B

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rpcd-mod-lxc
  9. PKG_RELEASE=20201208
  10. PKG_LICENSE:=ISC
  11. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  12. include $(INCLUDE_DIR)/package.mk
  13. include ../../devel/ninja/ninja-cmake.mk
  14. define Package/rpcd-mod-lxc
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=LXC rpcd module
  18. DEPENDS:=+rpcd +liblxc
  19. MAINTAINER:=Luka Perkov <luka@openwrt.org>
  20. endef
  21. define Build/Prepare
  22. $(CP) ./files/* $(PKG_BUILD_DIR)/
  23. endef
  24. define Package/rpcd-mod-lxc/install
  25. $(INSTALL_DIR) $(1)/usr/lib/rpcd
  26. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/lxc.so $(1)/usr/lib/rpcd/
  27. endef
  28. define Package/rpcd-mod-lxc/postinst
  29. #!/bin/sh
  30. [ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
  31. endef
  32. $(eval $(call BuildPackage,rpcd-mod-lxc))