0
0
mirror of https://github.com/openwrt/packages.git synced 2025-10-08 16:27:39 +00:00
Files
packages/utils/rpcd-mod-lxc/Makefile
Hannu Nyman d3e4d5549d treewide: adjust local CMakeLists.txt min version to cmake 4.x
cmake 4.x will require 'cmake_minimum_required' defined in cmake
projects to be at least 3.5. Adjust those local sources where that
variable is currently defined with value below 3.5.

Use 3.30 as the value, as 3.30 is currently used in 24.10, the oldest
still supported OpenWrt release branch.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-08-23 22:40:53 +03:00

43 lines
872 B
Makefile

#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=rpcd-mod-lxc
PKG_RELEASE=20250823
PKG_LICENSE:=ISC
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/rpcd-mod-lxc
SECTION:=libs
CATEGORY:=Libraries
TITLE:=LXC rpcd module
DEPENDS:=+rpcd +liblxc
MAINTAINER:=Luka Perkov <luka@openwrt.org>
endef
define Build/Prepare
$(CP) ./files/* $(PKG_BUILD_DIR)/
endef
define Package/rpcd-mod-lxc/install
$(INSTALL_DIR) $(1)/usr/lib/rpcd
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/lxc.so $(1)/usr/lib/rpcd/
endef
define Package/rpcd-mod-lxc/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
endef
$(eval $(call BuildPackage,rpcd-mod-lxc))