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
   DEPENDS:= lxc
77
   DEPENDS:= lxc
78
 endef
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
 define Package/liblxc
86
 define Package/liblxc
81
   $(call Package/lxc/Default)
87
   $(call Package/lxc/Default)
82
   SECTION:=libs
88
   SECTION:=libs
176
 		$(1)/usr/share/lxc/templates/
182
 		$(1)/usr/share/lxc/templates/
177
 endef
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
 define Package/liblxc/install
192
 define Package/liblxc/install
180
 	$(INSTALL_DIR) $(1)/usr/lib/
193
 	$(INSTALL_DIR) $(1)/usr/lib/
181
 	$(CP) \
194
 	$(CP) \
222
 $(eval $(call BuildPackage,lxc))
235
 $(eval $(call BuildPackage,lxc))
223
 $(eval $(call BuildPackage,lxc-common))
236
 $(eval $(call BuildPackage,lxc-common))
224
 $(eval $(call BuildPackage,lxc-hooks))
237
 $(eval $(call BuildPackage,lxc-hooks))
238
+$(eval $(call BuildPackage,lxc-configs))
225
 $(eval $(call BuildPackage,lxc-templates))
239
 $(eval $(call BuildPackage,lxc-templates))
226
 $(eval $(call BuildPackage,liblxc))
240
 $(eval $(call BuildPackage,liblxc))
227
 $(eval $(call BuildPackage,lxc-lua))
241
 $(eval $(call BuildPackage,lxc-lua))