aboutsummaryrefslogtreecommitdiff
path: root/utils/rpcd-mod-lxc/Makefile
blob: 289b2d1241a137d0ab178e6ace8701d544eeebb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# 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=20201208

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))