Skip to content

Commit

Permalink
Added optional aports.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mueller-Knapp committed Oct 7, 2017
1 parent df9195f commit a424a0b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/alpinelinux-3.6.2-x86_64-virtual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Minimal build of the 'Virtual'-Image.
* The template currently only supports the VirtualBox provider
* shutdown for vagrant is provided under /usr/local/bin
* ``who`` and alike do not work because of [musl][] not providing utmp
* if you want alpine-sdk with aports include ``aports.sh in`` in ``definition.rb``

[musl]: http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_the_utmp.2Fwtmp_functionality_only_implemented_as_stubs_.3F
# Alpine Linux
29 changes: 29 additions & 0 deletions templates/alpinelinux-3.6.2-x86_64-virtual/aports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/ash

# Requires
# settings.sh
# base.sh
# sudo.sh
# user.sh
# apk.sh
# virtualbox.sh
# vagrant.sh

source /etc/profile

chroot $chroot /bin/ash <<DATAEOF
apk add alpine-sdk
su - vagrant -c 'cd ~/ && git clone git://git.alpinelinux.org/aports'
addgroup vagrant abuild
mkdir -p /var/cache/distfiles
chmod a+w /var/cache/distfiles
chgrp abuild /var/cache/distfiles
chmod g+w /var/cache/distfiles
echo "Don't forget to run 'abuild-keygen -a -i'" >> /home/vagrant/README.ABUILD
chown vagrant:vagrant /home/vagrant/README.ABUILD
DATAEOF


1 change: 1 addition & 0 deletions templates/alpinelinux-3.6.2-x86_64-virtual/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'apk.sh',
'virtualbox.sh',
'vagrant.sh',
# 'aports.sh',
'ruby.sh',
'puppet.sh',
'chef.sh',
Expand Down

0 comments on commit a424a0b

Please sign in to comment.