Skip to content
This repository was archived by the owner on May 6, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions dragonflybsd/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ISO=dfly-x86_64-5.2.1_REL.iso

.PHONY: install-boxes install-box-virtualbox

all: install-boxes
Expand All @@ -7,8 +9,14 @@ install-boxes: install-box-virtualbox
install-box-virtualbox: dragonflybsd-virtualbox.box
vagrant box add -f --name mcandre/dragonflybsd --provider virtualbox dragonflybsd-virtualbox.box

dragonflybsd-virtualbox.box: dragonflybsd.json http/p *.sh Vagrantfile
PACKER_LOG=1 packer build -force -only virtualbox-iso dragonflybsd.json
$(ISO).bz2:
wget https://mirror-master.dragonflybsd.org/iso-images/$(ISO).bz2

$(ISO): $(ISO).bz2
bunzip2 $(ISO).bz2

dragonflybsd-virtualbox.box: dragonflybsd.json $(ISO) http/p *.sh Vagrantfile
PACKER_LOG=1 packer build -force -only virtualbox-iso -var 'iso=$(ISO)' dragonflybsd.json

clean: clean-boxes clean-vagrant clean-artifacts clean-isos

Expand Down
5 changes: 4 additions & 1 deletion dragonflybsd/dragonflybsd.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"variables": {
"iso": ""
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "FreeBSD_64",
"vm_name": "dragonflybsd",
"iso_url": "http://mirror-master.dragonflybsd.org/iso-images/dfly-x86_64-5.2.0_REL.iso",
"iso_url": "{{user `iso`}}",
"iso_checksum_type": "md5",
"iso_checksum_url": "http://avalon.dragonflybsd.org/iso-images/md5.txt",
"ssh_username": "vagrant",
Expand Down