DEBUG=--debug
DEBUG=
- DEBBUILDOPTS=--debbuildopts -sa
+ DEBBUILDOPTS=--debbuildopts -sa
-ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null)
# Some doc found there http://wiki.debian.org/cowbuilder
# Hook are not anymore necessary, but I keep as an example
delrights: beroot
lxc-setcap -d
-installtemplate: /usr/share/lxc/templates/lxc-debian7 /usr/share/lxc/templates/lxc-debian6 /usr/share/lxc/templates/lxc-centos5 /usr/share/lxc/templates/lxc-centos6
+installtemplate: $(TEMPLATELIST)
-/usr/share/lxc/templates/lxc-debian6: lxc-debian6 /usr/share/lxc
- cat lxc-debian6 | sed 's!http://cdn.debian.net/debian/!$(DEBMIRROR)!' > /usr/share/lxc/templates/lxc-debian6
- chmod 755 /usr/share/lxc/templates/lxc-debian6
+removetemplate:
+ rm -f $(TEMPLATELIST)
-/usr/share/lxc/templates/lxc-debian7: lxc-debian7 /usr/share/lxc
- cat lxc-debian7 | sed 's!http://cdn.debian.net/debian/!$(DEBMIRROR)!' > /usr/share/lxc/templates/lxc-debian7
- chmod 755 /usr/share/lxc/templates/lxc-debian7
+$(LXC_DATA)/templates/lxc-debian6: lxc-debian6 $(LXC_DATA) Makefile
+ cat lxc-debian6 | sed 's!http://cdn.debian.net/debian/!$(DEBMIRROR)!' > $(LXC_DATA)/templates/lxc-debian6
+ chmod 755 $(LXC_DATA)/templates/lxc-debian6
-/usr/share/lxc/templates/lxc-centos5: lxc-centos5 /usr/share/lxc
- cp lxc-centos5 /usr/share/lxc/templates/
+$(LXC_DATA)/templates/lxc-debian7: lxc-debian7 $(LXC_DATA) Makefile
+ cat lxc-debian7 | sed 's!http://cdn.debian.net/debian/!$(DEBMIRROR)!' > $(LXC_DATA)/templates/lxc-debian7
+ chmod 755 $(LXC_DATA)/templates/lxc-debian7
+
+$(LXC_DATA)/templates/lxc-centos5: lxc-centos5 $(LXC_DATA) Makefile
+ cp lxc-centos5 $(LXC_DATA)/templates/
-/usr/share/lxc/templates/lxc-centos6: lxc-centos6 /usr/share/lxc
- cp lxc-centos6 /usr/share/lxc/templates/
+$(LXC_DATA)/templates/lxc-centos6: lxc-centos6 $(LXC_DATA) Makefile
+ cp lxc-centos6 $(LXC_DATA)/templates/
+ /usr/share/lxc/templates/lxc-centos5: lxc-centos5 /usr/share/lxc
+ cp lxc-centos5 /usr/share/lxc/templates/
+
createdeb:
+ sudo /usr/bin/lxc-create -n dhdebian6.local -f config.debian6 -t debian6
sudo /usr/bin/lxc-create -n dhdebian7.local -f config.debian7 -t debian7
createcos: /usr/bin/netmask /usr/bin/rinse