image_optim_pack 0.5.6.20190728 → 0.6.0.20201024

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +17 -4
  3. data/.travis.yml +15 -18
  4. data/CHANGELOG.markdown +21 -0
  5. data/LICENSE.txt +1 -1
  6. data/Makefile +15 -15
  7. data/README.markdown +13 -13
  8. data/Vagrantfile +0 -20
  9. data/boxes/.rubocop.yml +2 -5
  10. data/checksums.mk +5 -5
  11. data/image_optim_pack.gemspec +4 -4
  12. data/script/livecheck +9 -11
  13. data/spec/image_optim_spec.rb +5 -4
  14. data/vendor/darwin-i386/jhead +0 -0
  15. data/vendor/darwin-i386/jpeg-recompress +0 -0
  16. data/vendor/darwin-i386/jpegoptim +0 -0
  17. data/vendor/darwin-i386/jpegtran +0 -0
  18. data/vendor/darwin-i386/libjpeg.dylib +0 -0
  19. data/vendor/darwin-i386/pngquant +0 -0
  20. data/vendor/darwin-x86_64/jhead +0 -0
  21. data/vendor/darwin-x86_64/jpeg-recompress +0 -0
  22. data/vendor/darwin-x86_64/jpegoptim +0 -0
  23. data/vendor/darwin-x86_64/jpegtran +0 -0
  24. data/vendor/darwin-x86_64/libjpeg.dylib +0 -0
  25. data/vendor/darwin-x86_64/pngquant +0 -0
  26. data/vendor/linux-i686/jhead +0 -0
  27. data/vendor/linux-i686/jpeg-recompress +0 -0
  28. data/vendor/linux-i686/jpegoptim +0 -0
  29. data/vendor/linux-i686/jpegtran +0 -0
  30. data/vendor/linux-i686/libjpeg.so +0 -0
  31. data/vendor/linux-i686/pngquant +0 -0
  32. data/vendor/linux-x86_64/jhead +0 -0
  33. data/vendor/linux-x86_64/jpeg-recompress +0 -0
  34. data/vendor/linux-x86_64/jpegoptim +0 -0
  35. data/vendor/linux-x86_64/jpegtran +0 -0
  36. data/vendor/linux-x86_64/libjpeg.so +0 -0
  37. data/vendor/linux-x86_64/pngquant +0 -0
  38. metadata +12 -74
  39. data/boxes/definitions/freebsd-amd64/definition.rb +0 -40
  40. data/boxes/definitions/freebsd-amd64/install.sh +0 -66
  41. data/boxes/definitions/freebsd-i386/definition.rb +0 -40
  42. data/boxes/definitions/freebsd-i386/install.sh +0 -66
  43. data/boxes/definitions/freebsd-postinstall.sh +0 -38
  44. data/boxes/definitions/openbsd-amd64/definition.rb +0 -69
  45. data/boxes/definitions/openbsd-i386/definition.rb +0 -69
  46. data/boxes/definitions/openbsd-postinstall.sh +0 -29
  47. data/image_optim_pack-fake-x42.gemspec +0 -3
  48. data/image_optim_pack-freebsd-amd64.gemspec +0 -3
  49. data/image_optim_pack-freebsd-x86.gemspec +0 -3
  50. data/image_optim_pack-openbsd-x86.gemspec +0 -3
  51. data/image_optim_pack-openbsd-x86_64.gemspec +0 -3
  52. data/vendor/fake-x42/.gitkeep +0 -0
  53. data/vendor/freebsd-amd64/advpng +0 -0
  54. data/vendor/freebsd-amd64/gifsicle +0 -0
  55. data/vendor/freebsd-amd64/jhead +0 -0
  56. data/vendor/freebsd-amd64/jpeg-recompress +0 -0
  57. data/vendor/freebsd-amd64/jpegoptim +0 -0
  58. data/vendor/freebsd-amd64/jpegtran +0 -0
  59. data/vendor/freebsd-amd64/libjpeg.so +0 -0
  60. data/vendor/freebsd-amd64/libpng.so +0 -0
  61. data/vendor/freebsd-amd64/libz.so +0 -0
  62. data/vendor/freebsd-amd64/optipng +0 -0
  63. data/vendor/freebsd-amd64/pngcrush +0 -0
  64. data/vendor/freebsd-amd64/pngquant +0 -0
  65. data/vendor/freebsd-i386/advpng +0 -0
  66. data/vendor/freebsd-i386/gifsicle +0 -0
  67. data/vendor/freebsd-i386/jhead +0 -0
  68. data/vendor/freebsd-i386/jpeg-recompress +0 -0
  69. data/vendor/freebsd-i386/jpegoptim +0 -0
  70. data/vendor/freebsd-i386/jpegtran +0 -0
  71. data/vendor/freebsd-i386/libjpeg.so +0 -0
  72. data/vendor/freebsd-i386/libpng.so +0 -0
  73. data/vendor/freebsd-i386/libz.so +0 -0
  74. data/vendor/freebsd-i386/optipng +0 -0
  75. data/vendor/freebsd-i386/pngcrush +0 -0
  76. data/vendor/freebsd-i386/pngquant +0 -0
  77. data/vendor/openbsd-amd64/advpng +0 -0
  78. data/vendor/openbsd-amd64/gifsicle +0 -0
  79. data/vendor/openbsd-amd64/jhead +0 -0
  80. data/vendor/openbsd-amd64/jpeg-recompress +0 -0
  81. data/vendor/openbsd-amd64/jpegoptim +0 -0
  82. data/vendor/openbsd-amd64/jpegtran +0 -0
  83. data/vendor/openbsd-amd64/libjpeg.so +0 -0
  84. data/vendor/openbsd-amd64/libpng.so +0 -0
  85. data/vendor/openbsd-amd64/libz.so +0 -0
  86. data/vendor/openbsd-amd64/optipng +0 -0
  87. data/vendor/openbsd-amd64/pngcrush +0 -0
  88. data/vendor/openbsd-amd64/pngquant +0 -0
  89. data/vendor/openbsd-i386/advpng +0 -0
  90. data/vendor/openbsd-i386/gifsicle +0 -0
  91. data/vendor/openbsd-i386/jhead +0 -0
  92. data/vendor/openbsd-i386/jpeg-recompress +0 -0
  93. data/vendor/openbsd-i386/jpegoptim +0 -0
  94. data/vendor/openbsd-i386/jpegtran +0 -0
  95. data/vendor/openbsd-i386/libjpeg.so +0 -0
  96. data/vendor/openbsd-i386/libpng.so +0 -0
  97. data/vendor/openbsd-i386/libz.so +0 -0
  98. data/vendor/openbsd-i386/optipng +0 -0
  99. data/vendor/openbsd-i386/pngcrush +0 -0
  100. data/vendor/openbsd-i386/pngquant +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_optim_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6.20190728
4
+ version: 0.6.0.20201024
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-28 00:00:00.000000000 Z
11
+ date: 2020-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: image_optim
@@ -64,16 +64,16 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.59'
67
+ version: '1.0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.59'
75
- description:
76
- email:
74
+ version: '1.0'
75
+ description:
76
+ email:
77
77
  executables: []
78
78
  extensions: []
79
79
  extra_rdoc_files: []
@@ -119,24 +119,11 @@ files:
119
119
  - boxes/definitions/centos-i386/definition.rb
120
120
  - boxes/definitions/centos-i386/ks.cfg
121
121
  - boxes/definitions/centos-postinstall.sh
122
- - boxes/definitions/freebsd-amd64/definition.rb
123
- - boxes/definitions/freebsd-amd64/install.sh
124
- - boxes/definitions/freebsd-i386/definition.rb
125
- - boxes/definitions/freebsd-i386/install.sh
126
- - boxes/definitions/freebsd-postinstall.sh
127
- - boxes/definitions/openbsd-amd64/definition.rb
128
- - boxes/definitions/openbsd-i386/definition.rb
129
- - boxes/definitions/openbsd-postinstall.sh
130
122
  - checksums.mk
131
123
  - image_optim_pack-darwin-x86.gemspec
132
124
  - image_optim_pack-darwin-x86_64.gemspec
133
- - image_optim_pack-fake-x42.gemspec
134
- - image_optim_pack-freebsd-amd64.gemspec
135
- - image_optim_pack-freebsd-x86.gemspec
136
125
  - image_optim_pack-linux-x86.gemspec
137
126
  - image_optim_pack-linux-x86_64.gemspec
138
- - image_optim_pack-openbsd-x86.gemspec
139
- - image_optim_pack-openbsd-x86_64.gemspec
140
127
  - image_optim_pack.gemspec
141
128
  - lib/image_optim/pack.rb
142
129
  - lib/image_optim_pack.rb
@@ -170,31 +157,6 @@ files:
170
157
  - vendor/darwin-x86_64/optipng
171
158
  - vendor/darwin-x86_64/pngcrush
172
159
  - vendor/darwin-x86_64/pngquant
173
- - vendor/fake-x42/.gitkeep
174
- - vendor/freebsd-amd64/advpng
175
- - vendor/freebsd-amd64/gifsicle
176
- - vendor/freebsd-amd64/jhead
177
- - vendor/freebsd-amd64/jpeg-recompress
178
- - vendor/freebsd-amd64/jpegoptim
179
- - vendor/freebsd-amd64/jpegtran
180
- - vendor/freebsd-amd64/libjpeg.so
181
- - vendor/freebsd-amd64/libpng.so
182
- - vendor/freebsd-amd64/libz.so
183
- - vendor/freebsd-amd64/optipng
184
- - vendor/freebsd-amd64/pngcrush
185
- - vendor/freebsd-amd64/pngquant
186
- - vendor/freebsd-i386/advpng
187
- - vendor/freebsd-i386/gifsicle
188
- - vendor/freebsd-i386/jhead
189
- - vendor/freebsd-i386/jpeg-recompress
190
- - vendor/freebsd-i386/jpegoptim
191
- - vendor/freebsd-i386/jpegtran
192
- - vendor/freebsd-i386/libjpeg.so
193
- - vendor/freebsd-i386/libpng.so
194
- - vendor/freebsd-i386/libz.so
195
- - vendor/freebsd-i386/optipng
196
- - vendor/freebsd-i386/pngcrush
197
- - vendor/freebsd-i386/pngquant
198
160
  - vendor/linux-i686/advpng
199
161
  - vendor/linux-i686/gifsicle
200
162
  - vendor/linux-i686/jhead
@@ -219,39 +181,15 @@ files:
219
181
  - vendor/linux-x86_64/optipng
220
182
  - vendor/linux-x86_64/pngcrush
221
183
  - vendor/linux-x86_64/pngquant
222
- - vendor/openbsd-amd64/advpng
223
- - vendor/openbsd-amd64/gifsicle
224
- - vendor/openbsd-amd64/jhead
225
- - vendor/openbsd-amd64/jpeg-recompress
226
- - vendor/openbsd-amd64/jpegoptim
227
- - vendor/openbsd-amd64/jpegtran
228
- - vendor/openbsd-amd64/libjpeg.so
229
- - vendor/openbsd-amd64/libpng.so
230
- - vendor/openbsd-amd64/libz.so
231
- - vendor/openbsd-amd64/optipng
232
- - vendor/openbsd-amd64/pngcrush
233
- - vendor/openbsd-amd64/pngquant
234
- - vendor/openbsd-i386/advpng
235
- - vendor/openbsd-i386/gifsicle
236
- - vendor/openbsd-i386/jhead
237
- - vendor/openbsd-i386/jpeg-recompress
238
- - vendor/openbsd-i386/jpegoptim
239
- - vendor/openbsd-i386/jpegtran
240
- - vendor/openbsd-i386/libjpeg.so
241
- - vendor/openbsd-i386/libpng.so
242
- - vendor/openbsd-i386/libz.so
243
- - vendor/openbsd-i386/optipng
244
- - vendor/openbsd-i386/pngcrush
245
- - vendor/openbsd-i386/pngquant
246
- homepage: http://github.com/toy/image_optim_pack
184
+ homepage: https://github.com/toy/image_optim_pack
247
185
  licenses:
248
186
  - MIT
249
187
  metadata:
250
188
  bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
251
189
  changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
252
- documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.5.6.20190728
190
+ documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.6.0.20201024
253
191
  source_code_uri: https://github.com/toy/image_optim_pack
254
- post_install_message:
192
+ post_install_message:
255
193
  rdoc_options: []
256
194
  require_paths:
257
195
  - lib
@@ -266,8 +204,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
204
  - !ruby/object:Gem::Version
267
205
  version: '0'
268
206
  requirements: []
269
- rubygems_version: 3.0.3
270
- signing_key:
207
+ rubygems_version: 3.1.4
208
+ signing_key:
271
209
  specification_version: 4
272
210
  summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,
273
211
  jpegoptim, jpegtran, optipng, pngcrush, pngquant'
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Veewee::Session.declare({
4
- :cpu_count => '1',
5
- :memory_size => '512',
6
- :disk_size => '8192',
7
- :disk_format => 'VDI',
8
- :hostiocache => 'off',
9
- :os_type_id => 'FreeBSD_64',
10
- :iso_file => 'FreeBSD-10.3-RELEASE-amd64-disc1.iso',
11
- :iso_src => 'http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-amd64-disc1.iso',
12
- :iso_sha256 => 'fef068cf6dea26923ab84b62ba9f21461ca0bdec90a0741c8ffb0e1ca29e410d',
13
- :iso_download_timeout => '1000',
14
- :boot_wait => '10',
15
- :boot_cmd_sequence => [
16
- '<Esc>',
17
- 'boot -s',
18
- '<Enter>',
19
- '<Wait>' * 10,
20
- '/bin/sh<Enter>',
21
- 'mdmfs -s 100m md1 /tmp<Enter>',
22
- 'dhclient -l /tmp/dhclient.lease.em0 em0<Enter>',
23
- '<Wait>' * 10,
24
- 'fetch -o /tmp/install.sh http://%IP%:%PORT%/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh %NAME%<Enter>',
25
- ],
26
- :kickstart_port => '7122',
27
- :kickstart_timeout => '300',
28
- :kickstart_file => 'install.sh',
29
- :ssh_login_timeout => '10000',
30
- :ssh_user => 'root',
31
- :ssh_password => 'vagrant',
32
- :ssh_key => '',
33
- :ssh_host_port => '7222',
34
- :ssh_guest_port => '22',
35
- :sudo_cmd => "sh '%f'",
36
- :shutdown_cmd => 'shutdown -p now',
37
- :postinstall_files => %w[../freebsd-postinstall.sh],
38
- :postinstall_timeout => '10000',
39
- :skip_iso_transfer => true,
40
- })
@@ -1,66 +0,0 @@
1
- #!/bin/sh -x
2
-
3
- # Credit: http://www.aisecure.net/2011/05/01/root-on-zfs-freebsd-current/
4
-
5
- NAME=$1
6
-
7
- # create disks
8
- gpart create -s gpt ada0
9
- gpart add -t freebsd-boot -l boot -b 40 -s 512K ada0
10
- gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
11
- gpart add -t freebsd-ufs -l root -b 1M -s 2G ada0
12
- gpart add -t freebsd-swap -l swap -s 512M ada0
13
- gpart add -t freebsd-ufs -l var -s 1G ada0
14
- gpart add -t freebsd-ufs -l tmp -s 512M ada0
15
- gpart add -t freebsd-ufs -l usr -a 1M ada0
16
-
17
- # create filesystems
18
- newfs -U /dev/gpt/root
19
- newfs -U /dev/gpt/var
20
- newfs -U /dev/gpt/tmp
21
- newfs -U /dev/gpt/usr
22
-
23
- # mount the filesystems
24
- mount /dev/gpt/root /mnt
25
- mkdir /mnt/var && mount /dev/gpt/var /mnt/var
26
- mkdir /mnt/tmp && mount /dev/gpt/tmp /mnt/tmp
27
- mkdir /mnt/usr && mount /dev/gpt/usr /mnt/usr
28
-
29
- # correct permissions
30
- chmod 1777 /mnt/tmp
31
- mkdir /mnt/var/tmp && chmod 1777 /mnt/var/tmp
32
- cd /mnt && mkdir usr/home && ln -s usr/home home
33
-
34
- # Install the OS
35
- cd /usr/freebsd-dist
36
- cat base.txz | tar --unlink -xpJf - -C /mnt
37
- cat lib32.txz | tar --unlink -xpJf - -C /mnt
38
- cat kernel.txz | tar --unlink -xpJf - -C /mnt
39
- cat src.txz | tar --unlink -xpJf - -C /mnt
40
-
41
- # Enable required services
42
- cat >> /mnt/etc/rc.conf << EOT
43
- hostname="${NAME}"
44
- ifconfig_em0="dhcp"
45
- sshd_enable="YES"
46
- EOT
47
-
48
- # Enable swap
49
- cat >> /mnt/etc/fstab << EOT
50
- /dev/gpt/swap none swap sw 0 0
51
- /dev/gpt/root / ufs rw 1 1
52
- /dev/gpt/var /var ufs rw 1 1
53
- /dev/gpt/tmp /tmp ufs rw 1 1
54
- /dev/gpt/usr /usr ufs rw 1 1
55
- EOT
56
-
57
- # Install a few requirements
58
- touch /mnt/etc/resolv.conf
59
- echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config
60
-
61
- # Set up user accounts
62
- mkdir /mnt/usr/home/vagrant && chown 1001:1001 /mnt/home/vagrant
63
- echo "vagrant" | pw -V /mnt/etc useradd vagrant -h 0 -s csh -G wheel -d /home/vagrant -c "Vagrant User"
64
- echo "vagrant" | pw -V /mnt/etc usermod root -h 0
65
-
66
- reboot
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Veewee::Session.declare({
4
- :cpu_count => '1',
5
- :memory_size => '512',
6
- :disk_size => '8192',
7
- :disk_format => 'VDI',
8
- :hostiocache => 'off',
9
- :os_type_id => 'FreeBSD',
10
- :iso_file => 'FreeBSD-10.3-RELEASE-i386-disc1.iso',
11
- :iso_src => 'http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-i386-disc1.iso',
12
- :iso_sha256 => '8329ee2ca4779892edbb001c303670d74642e4353e97d02f4521895023cacd5d',
13
- :iso_download_timeout => '1000',
14
- :boot_wait => '10',
15
- :boot_cmd_sequence => [
16
- '<Esc>',
17
- 'boot -s',
18
- '<Enter>',
19
- '<Wait>' * 10,
20
- '/bin/sh<Enter>',
21
- 'mdmfs -s 100m md1 /tmp<Enter>',
22
- 'dhclient -l /tmp/dhclient.lease.em0 em0<Enter>',
23
- '<Wait>' * 10,
24
- 'fetch -o /tmp/install.sh http://%IP%:%PORT%/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh %NAME%<Enter>',
25
- ],
26
- :kickstart_port => '7122',
27
- :kickstart_timeout => '300',
28
- :kickstart_file => 'install.sh',
29
- :ssh_login_timeout => '10000',
30
- :ssh_user => 'root',
31
- :ssh_password => 'vagrant',
32
- :ssh_key => '',
33
- :ssh_host_port => '7222',
34
- :ssh_guest_port => '22',
35
- :sudo_cmd => "sh '%f'",
36
- :shutdown_cmd => 'shutdown -p now',
37
- :postinstall_files => %w[../freebsd-postinstall.sh],
38
- :postinstall_timeout => '10000',
39
- :skip_iso_transfer => true,
40
- })
@@ -1,66 +0,0 @@
1
- #!/bin/sh -x
2
-
3
- # Credit: http://www.aisecure.net/2011/05/01/root-on-zfs-freebsd-current/
4
-
5
- NAME=$1
6
-
7
- # create disks
8
- gpart create -s gpt ada0
9
- gpart add -t freebsd-boot -l boot -b 40 -s 512K ada0
10
- gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
11
- gpart add -t freebsd-ufs -l root -b 1M -s 2G ada0
12
- gpart add -t freebsd-swap -l swap -s 512M ada0
13
- gpart add -t freebsd-ufs -l var -s 1G ada0
14
- gpart add -t freebsd-ufs -l tmp -s 512M ada0
15
- gpart add -t freebsd-ufs -l usr -a 1M ada0
16
-
17
- # create filesystems
18
- newfs -U /dev/gpt/root
19
- newfs -U /dev/gpt/var
20
- newfs -U /dev/gpt/tmp
21
- newfs -U /dev/gpt/usr
22
-
23
- # mount the filesystems
24
- mount /dev/gpt/root /mnt
25
- mkdir /mnt/var && mount /dev/gpt/var /mnt/var
26
- mkdir /mnt/tmp && mount /dev/gpt/tmp /mnt/tmp
27
- mkdir /mnt/usr && mount /dev/gpt/usr /mnt/usr
28
-
29
- # correct permissions
30
- chmod 1777 /mnt/tmp
31
- mkdir /mnt/var/tmp && chmod 1777 /mnt/var/tmp
32
- cd /mnt && mkdir usr/home && ln -s usr/home home
33
-
34
- # Install the OS
35
- cd /usr/freebsd-dist
36
- cat base.txz | tar --unlink -xpJf - -C /mnt
37
- cat lib32.txz | tar --unlink -xpJf - -C /mnt
38
- cat kernel.txz | tar --unlink -xpJf - -C /mnt
39
- cat src.txz | tar --unlink -xpJf - -C /mnt
40
-
41
- # Enable required services
42
- cat >> /mnt/etc/rc.conf << EOT
43
- hostname="${NAME}"
44
- ifconfig_em0="dhcp"
45
- sshd_enable="YES"
46
- EOT
47
-
48
- # Enable swap
49
- cat >> /mnt/etc/fstab << EOT
50
- /dev/gpt/swap none swap sw 0 0
51
- /dev/gpt/root / ufs rw 1 1
52
- /dev/gpt/var /var ufs rw 1 1
53
- /dev/gpt/tmp /tmp ufs rw 1 1
54
- /dev/gpt/usr /usr ufs rw 1 1
55
- EOT
56
-
57
- # Install a few requirements
58
- touch /mnt/etc/resolv.conf
59
- echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config
60
-
61
- # Set up user accounts
62
- mkdir /mnt/usr/home/vagrant && chown 1001:1001 /mnt/home/vagrant
63
- echo "vagrant" | pw -V /mnt/etc useradd vagrant -h 0 -s csh -G wheel -d /home/vagrant -c "Vagrant User"
64
- echo "vagrant" | pw -V /mnt/etc usermod root -h 0
65
-
66
- reboot
@@ -1,38 +0,0 @@
1
- set -ex
2
-
3
- ntpdate -v -b in.pool.ntp.org
4
- date > /etc/vagrant_box_build_time
5
-
6
- ASSUME_ALWAYS_YES=yes pkg info
7
- pkg install -y sudo bash-static wget
8
-
9
- # setup the vagrant key
10
- mkdir -p /home/vagrant/.ssh
11
- chmod 700 /home/vagrant/.ssh
12
- wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
13
- chmod 600 /home/vagrant/.ssh/authorized_keys
14
- chown -R vagrant /home/vagrant/.ssh
15
-
16
- # passwordless sudo
17
- echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
18
-
19
- # undo customizations
20
- sed -i '' -e '/^REFUSE /d' /etc/portsnap.conf
21
- sed -i '' -e '/^PermitRootLogin /d' /etc/ssh/sshd_config
22
-
23
- # set vagrant shell to bash
24
- pw usermod vagrant -s /usr/local/bin/bash
25
-
26
- # cleanup
27
- sudo pkg clean -y
28
- rm -rf \
29
- /var/db/freebsd-update/* \
30
- /var/cache/pkg/* \
31
- /etc/ssh/ssh_host_key* \
32
- /usr/src \
33
- /var/log/* \
34
- /var/tmp/* \
35
- /tmp/*
36
- dd if=/dev/zero of=filler bs=1M || rm filler
37
-
38
- shutdown -p now
@@ -1,69 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Veewee::Session.declare({
4
- :cpu_count => '1',
5
- :memory_size => '512',
6
- :disk_size => '8192',
7
- :disk_format => 'VDI',
8
- :hostiocache => 'off',
9
- :os_type_id => 'OpenBSD_64',
10
- :iso_file => 'OpenBSD-5.9-amd64.iso',
11
- :iso_src => 'https://www.mirrorservice.org/pub/OpenBSD/5.9/amd64/install59.iso',
12
- :iso_sha256 => '685262fc665425c61a2952b2820389a2d331ac5558217080e6d564d2ce88eecb',
13
- :iso_download_timeout => '1000',
14
- :boot_wait => '50',
15
- :boot_cmd_sequence => [
16
- 'I<Enter>', # I - install
17
- 'us<Enter>', # set the keyboard
18
- 'OpenBSD59-x64<Enter>', # set the hostname
19
- '<Enter>', # Which nic to config ? [em0]
20
- '<Enter>', # do you want dhcp ? [dhcp]
21
- '<Wait>' * 5,
22
- '<Enter>', # IPV6 for em0 ? [none]
23
- '<Enter>', # Which other nic do you wish to configure [done]
24
- 'vagrant<Enter>', # Pw for root account
25
- 'vagrant<Enter>',
26
- 'yes<Enter>', # Start sshd by default ? [yes]
27
- 'no<Enter>', # Do you want the X window system [yes]
28
- 'vagrant<Enter>', # Setup a user ?
29
- 'vagrant<Enter>', # Full username
30
- 'vagrant<Enter>', # Pw for this user
31
- 'vagrant<Enter>',
32
- 'yes<Enter>', # Do you want to allow sshd for root ? [no]
33
- 'GB<Enter>', # What timezone are you in ?
34
- '<Enter>', # Available disks [sd0]
35
- 'W<Enter>', # Use (W)whole disk or (E)edit MBR ? [whole]
36
- 'A<Enter>', # Use (A)auto layout ... ? [a]
37
- '<Wait>' * 5,
38
- '<Enter>', # location of the sets [cd0]
39
- '<Enter>', # Pathname to sets ? [5.9/amd64]
40
- '-game59.tgz<Enter>', # Remove games and X
41
- '-xbase59.tgz<Enter>',
42
- '-xshare59.tgz<Enter>',
43
- '-xfont59.tgz<Enter>',
44
- '-xserv59.tgz<Enter>',
45
- 'done<Enter>',
46
- '<Wait>',
47
- 'yes<Enter>', # CD does not contain SHA256.sig (5.9) Continue without verification?
48
- '<Wait>' * 60,
49
- 'done<Enter>', # Location of sets?
50
- 'yes<Enter><Wait>', # Time appears wrong. Set to ...? [yes]
51
- '<Wait>' * 6,
52
- 'reboot<Enter>',
53
- '<Wait>' * 6,
54
- ],
55
- :kickstart_port => '7122',
56
- :kickstart_timeout => '300',
57
- :kickstart_file => '',
58
- :ssh_login_timeout => '10000',
59
- :ssh_user => 'root',
60
- :ssh_password => 'vagrant',
61
- :ssh_key => '',
62
- :ssh_host_port => '7222',
63
- :ssh_guest_port => '22',
64
- :sudo_cmd => "sh '%f'",
65
- :shutdown_cmd => '/sbin/halt -p',
66
- :postinstall_files => %w[../openbsd-postinstall.sh],
67
- :postinstall_timeout => '10000',
68
- :skip_iso_transfer => true,
69
- })