Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
0ff6c912
Commit
0ff6c912
authored
16 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
alpine.mk: vserver template target
parent
5994aa62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alpine.mk
+17
-0
17 additions, 0 deletions
alpine.mk
with
17 additions
and
0 deletions
alpine.mk
+
17
−
0
View file @
0ff6c912
...
@@ -10,6 +10,8 @@ DESTDIR ?= $(shell pwd)/isotmp
...
@@ -10,6 +10,8 @@ DESTDIR ?= $(shell pwd)/isotmp
APORTS_DIR
?=
$(
HOME
)
/aports
APORTS_DIR
?=
$(
HOME
)
/aports
REPOS
?=
core extra
REPOS
?=
core extra
SUDO
=
sudo
# this might need to change...
# this might need to change...
APKDIRS
?=
$(
REPOS_DIR
)
/
*
/
APKDIRS
?=
$(
REPOS_DIR
)
/
*
/
...
@@ -199,6 +201,21 @@ $(INITFS): $(INITFS_DIRSTAMP) $(INITFS_DIR)/init $(INITFS_DIR)/sbin/bootchartd $
...
@@ -199,6 +201,21 @@ $(INITFS): $(INITFS_DIRSTAMP) $(INITFS_DIR)/init $(INITFS_DIR)/sbin/bootchartd $
@
mkdir
-p
$(
dir
$(
INITFS
))
@
mkdir
-p
$(
dir
$(
INITFS
))
@
(
cd
$(
INITFS_DIR
)
&&
find
.
| cpio
-o
-H
newc |
gzip
-9
)
>
$(
INITFS
)
@
(
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
# ISO rules
#
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment