add build to .gitignore and add xbuilder group
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f55cdd652e
commit
57f812f833
3 changed files with 7 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
*.log
|
*.log
|
||||||
|
build
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -60,9 +60,13 @@ build: ensure-toolbox
|
||||||
# Create build directory
|
# Create build directory
|
||||||
mkdir $(BUILDDIR)
|
mkdir $(BUILDDIR)
|
||||||
# Create keys database directory
|
# Create keys database directory
|
||||||
mkdir -p $(BUILDDIR)/var/db/xbps
|
mkdir -p $(BUILDDIR)/var/db/xbps $(BUILDDIR)/etc
|
||||||
# Import known keys
|
# Import known keys
|
||||||
cp -r keys $(BUILDDIR)/var/db/xbps
|
cp -r keys $(BUILDDIR)/var/db/xbps
|
||||||
|
# Create passwd, shadow and group file
|
||||||
|
cp files/passwd $(BUILDDIR)/etc/passwd
|
||||||
|
cp files/group $(BUILDDIR)/etc/group
|
||||||
|
cp files/shadow $(BUILDDIR)/etc/shadow
|
||||||
# Install packages into build directory
|
# Install packages into build directory
|
||||||
XBPS_ARCH="$(ARCH)" xbps-install -y -r $(BUILDDIR) --repository=$(REPO) -S $(PACKAGES)
|
XBPS_ARCH="$(ARCH)" xbps-install -y -r $(BUILDDIR) --repository=$(REPO) -S $(PACKAGES)
|
||||||
# Create symlinks expected by void
|
# Create symlinks expected by void
|
||||||
|
@ -92,10 +96,6 @@ endif
|
||||||
chmod +x $(BUILDDIR)/bin/xbps-remote
|
chmod +x $(BUILDDIR)/bin/xbps-remote
|
||||||
cp files/xbps-local $(BUILDDIR)/bin/xbps-local
|
cp files/xbps-local $(BUILDDIR)/bin/xbps-local
|
||||||
chmod +x $(BUILDDIR)/bin/xbps-local
|
chmod +x $(BUILDDIR)/bin/xbps-local
|
||||||
# Create passwd, shadow and group file
|
|
||||||
cp files/passwd $(BUILDDIR)/etc/passwd
|
|
||||||
cp files/group $(BUILDDIR)/etc/group
|
|
||||||
cp files/shadow $(BUILDDIR)/etc/shadow
|
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
# Import directory as tar (owned by root) into docker
|
# Import directory as tar (owned by root) into docker
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
root:x:0:
|
root:x:0:
|
||||||
nogroup:x:99:
|
nogroup:x:99:
|
||||||
users:x:100:
|
users:x:100:
|
||||||
|
xbuilder:x:101:
|
||||||
|
|
Loading…
Reference in a new issue