diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-13 12:01:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-13 12:01:45 +0000 |
commit | 0ff6c91205d7b3d56e72683c917e74bd573b6c04 (patch) | |
tree | 544234ac216e8bf7ce447238866612b1b6ceda56 /alpine.mk | |
parent | 5994aa62af5416b12d35e74bf01ce2beac6ff74d (diff) | |
download | abuild-0ff6c91205d7b3d56e72683c917e74bd573b6c04.tar.gz abuild-0ff6c91205d7b3d56e72683c917e74bd573b6c04.tar.bz2 abuild-0ff6c91205d7b3d56e72683c917e74bd573b6c04.tar.xz abuild-0ff6c91205d7b3d56e72683c917e74bd573b6c04.zip |
alpine.mk: vserver template target
Diffstat (limited to 'alpine.mk')
-rwxr-xr-x | alpine.mk | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -10,6 +10,8 @@ DESTDIR ?= $(shell pwd)/isotmp APORTS_DIR ?= $(HOME)/aports REPOS ?= core extra +SUDO = sudo + # this might need to change... APKDIRS ?= $(REPOS_DIR)/*/ @@ -200,6 +202,21 @@ $(INITFS): $(INITFS_DIRSTAMP) $(INITFS_DIR)/init $(INITFS_DIR)/sbin/bootchartd $ @(cd $(INITFS_DIR) && find . | cpio -o -H newc | gzip -9) > $(INITFS) # +# Vserver template rules +# +VSTEMPLATE := $(ISO_DIR)/vs-template.tar.bz2 +VSTEMPLATE_DIR := $(DESTDIR)/vs-template + +vstemplate: $(VSTEMPLATE) + @echo "==> vstemplate: built $(VSTEMPLATE)" + +$(VSTEMPLATE): + @$(SUDO) rm -rf "$(VSTEMPLATE_DIR)" + @$(SUDO) mkdir -p "$(VSTEMPLATE_DIR)" + @$(SUDO) apk add --initdb --root $(VSTEMPLATE_DIR) alpine-baselayout + @cd $(VSTEMPLATE_DIR) && $(SUDO) tar -jcf $@ * + +# # ISO rules # |