Browse Source

lxc: add config templates package

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
Petar Koretic 10 years ago
parent
commit
6bb15ba13c
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      utils/lxc/Makefile

+ 14
- 0
utils/lxc/Makefile View File

@@ -77,6 +77,12 @@ define Package/lxc-templates
77 77
   DEPENDS:= lxc
78 78
 endef
79 79
 
80
+define Package/lxc-configs
81
+  $(call Package/lxc/Default)
82
+  TITLE:=LXC virtual machine common config files
83
+  DEPENDS:= lxc
84
+endef
85
+
80 86
 define Package/liblxc
81 87
   $(call Package/lxc/Default)
82 88
   SECTION:=libs
@@ -176,6 +182,13 @@ define Package/lxc-templates/install
176 182
 		$(1)/usr/share/lxc/templates/
177 183
 endef
178 184
 
185
+define Package/lxc-configs/install
186
+	$(INSTALL_DIR) $(1)/usr/share/lxc/config/
187
+	$(CP) \
188
+		$(PKG_INSTALL_DIR)/usr/share/lxc/config/* \
189
+		$(1)/usr/share/lxc/config/
190
+endef
191
+
179 192
 define Package/liblxc/install
180 193
 	$(INSTALL_DIR) $(1)/usr/lib/
181 194
 	$(CP) \
@@ -222,6 +235,7 @@ endef
222 235
 $(eval $(call BuildPackage,lxc))
223 236
 $(eval $(call BuildPackage,lxc-common))
224 237
 $(eval $(call BuildPackage,lxc-hooks))
238
+$(eval $(call BuildPackage,lxc-configs))
225 239
 $(eval $(call BuildPackage,lxc-templates))
226 240
 $(eval $(call BuildPackage,liblxc))
227 241
 $(eval $(call BuildPackage,lxc-lua))