BtSync 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -0
  4. data/Vagrantfile +31 -0
  5. data/cookbooks/apt/.gitignore +14 -0
  6. data/cookbooks/apt/.kitchen.yml +38 -0
  7. data/cookbooks/apt/Berksfile +8 -0
  8. data/cookbooks/apt/CHANGELOG.md +97 -0
  9. data/cookbooks/apt/CONTRIBUTING +29 -0
  10. data/cookbooks/apt/LICENSE +201 -0
  11. data/cookbooks/apt/README.md +243 -0
  12. data/cookbooks/apt/TESTING.md +25 -0
  13. data/cookbooks/apt/attributes/default.rb +4 -0
  14. data/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
  15. data/cookbooks/apt/metadata.json +1 -0
  16. data/cookbooks/apt/metadata.rb +30 -0
  17. data/cookbooks/apt/providers/preference.rb +61 -0
  18. data/cookbooks/apt/providers/repository.rb +132 -0
  19. data/cookbooks/apt/recipes/cacher-client.rb +59 -0
  20. data/cookbooks/apt/recipes/cacher-ng.rb +40 -0
  21. data/cookbooks/apt/recipes/default.rb +68 -0
  22. data/cookbooks/apt/resources/preference.rb +30 -0
  23. data/cookbooks/apt/resources/repository.rb +40 -0
  24. data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +174 -0
  25. data/cookbooks/apt/templates/default/01proxy.erb +2 -0
  26. data/cookbooks/apt/templates/default/acng.conf.erb +276 -0
  27. data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +270 -0
  28. data/cookbooks/btsync/README.md +2 -0
  29. data/cookbooks/btsync/metadata.rb +14 -0
  30. data/cookbooks/btsync/recipes/default.rb +13 -0
  31. data/cookbooks/build-essential/.gitignore +4 -0
  32. data/cookbooks/build-essential/.kitchen.yml +42 -0
  33. data/cookbooks/build-essential/Berksfile +3 -0
  34. data/cookbooks/build-essential/CHANGELOG.md +42 -0
  35. data/cookbooks/build-essential/CONTRIBUTING +29 -0
  36. data/cookbooks/build-essential/LICENSE +201 -0
  37. data/cookbooks/build-essential/README.md +139 -0
  38. data/cookbooks/build-essential/TESTING.md +25 -0
  39. data/cookbooks/build-essential/attributes/default.rb +33 -0
  40. data/cookbooks/build-essential/metadata.json +44 -0
  41. data/cookbooks/build-essential/metadata.rb +16 -0
  42. data/cookbooks/build-essential/recipes/debian.rb +45 -0
  43. data/cookbooks/build-essential/recipes/default.rb +24 -0
  44. data/cookbooks/build-essential/recipes/fedora.rb +36 -0
  45. data/cookbooks/build-essential/recipes/mac_os_x.rb +40 -0
  46. data/cookbooks/build-essential/recipes/rhel.rb +43 -0
  47. data/cookbooks/build-essential/recipes/smartos.rb +36 -0
  48. data/cookbooks/build-essential/recipes/solaris2.rb +42 -0
  49. data/cookbooks/build-essential/recipes/suse.rb +36 -0
  50. data/lib/btsync.rb +13 -13
  51. data/lib/btsync/communicator.rb +14 -4
  52. data/lib/btsync/directory.rb +12 -12
  53. data/lib/btsync/version.rb +1 -1
  54. data/spec/BtSync/bt_sync_spec.rb +13 -9
  55. data/spec/BtSync/directory_spec.rb +13 -20
  56. data/spec/fixtures/cassettes/{get-known-hosts.yml → Remove-Default-Host.yml} +5 -5
  57. data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +289 -12
  58. data/spec/fixtures/cassettes/Setup-BtSync.yml +252 -0
  59. data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +8 -38
  60. data/spec/fixtures/cassettes/add-folder-list.yml +32 -35
  61. data/spec/fixtures/cassettes/add-folder.yml +10 -94
  62. data/spec/fixtures/cassettes/add-known-host.yml +6 -6
  63. data/spec/fixtures/cassettes/change_download_limit.yml +15 -42
  64. data/spec/fixtures/cassettes/change_listening_port.yml +15 -42
  65. data/spec/fixtures/cassettes/change_name.yml +13 -40
  66. data/spec/fixtures/cassettes/change_upload_limit.yml +15 -42
  67. data/spec/fixtures/cassettes/get-folders.yml +54 -24
  68. data/spec/fixtures/cassettes/get-os-type.yml +3 -30
  69. data/spec/fixtures/cassettes/get-peers.yml +7 -8
  70. data/spec/fixtures/cassettes/get-preferences.yml +24 -24
  71. data/spec/fixtures/cassettes/get-settings.yml +6 -33
  72. data/spec/fixtures/cassettes/get-version.yml +3 -30
  73. data/spec/fixtures/cassettes/remove-folder-list.yml +18 -20
  74. data/spec/fixtures/cassettes/remove-folder.yml +35 -38
  75. data/spec/fixtures/cassettes/remove-known-host.yml +6 -6
  76. data/spec/fixtures/cassettes/reset_device_name.yml +13 -13
  77. data/spec/fixtures/cassettes/reset_download_limit.yml +15 -15
  78. data/spec/fixtures/cassettes/reset_listening_port.yml +15 -15
  79. data/spec/fixtures/cassettes/reset_upload_limit.yml +15 -15
  80. data/spec/fixtures/cassettes/set-preferences-delete.yml +11 -11
  81. data/spec/fixtures/cassettes/set-preferences-dht.yml +11 -11
  82. data/spec/fixtures/cassettes/set-preferences-hosts.yml +11 -11
  83. data/spec/fixtures/cassettes/set-preferences-lan.yml +11 -11
  84. data/spec/fixtures/cassettes/set-preferences-relay.yml +11 -11
  85. data/spec/fixtures/cassettes/set-preferences-tracker.yml +11 -11
  86. data/spec/fixtures/cassettes/view-folders.yml +5 -5
  87. metadata +52 -4
@@ -0,0 +1,270 @@
1
+
2
+ # Letter case in directive names does not matter. Must be separated with colons.
3
+ # Valid boolean values are a zero number for false, non-zero numbers for true.
4
+
5
+ CacheDir: /var/cache/apt-cacher-ng
6
+
7
+ # set empty to disable logging
8
+ LogDir: /var/log/apt-cacher-ng
9
+
10
+ # place to look for additional configuration and resource files if they are not
11
+ # found in the configuration directory
12
+ # SupportDir: /usr/lib/apt-cacher-ng
13
+
14
+ # TCP (http) port
15
+ # Set to 9999 to emulate apt-proxy
16
+ Port:<%= node['apt']['cacher_port'] %>
17
+
18
+ # Addresses or hostnames to listen on. Multiple addresses must be separated by
19
+ # spaces. Each entry must be an exact local address which is associated with a
20
+ # local interface. DNS resolution is performed using getaddrinfo(3) for all
21
+ # available protocols (IPv4, IPv6, ...). Using a protocol specific format will
22
+ # create binding(s) only on protocol specific socket(s) (e.g. 0.0.0.0 will listen
23
+ # only to IPv4).
24
+ #
25
+ # Default: not set, will listen on all interfaces and protocols
26
+ #
27
+ # BindAddress: localhost 192.168.7.254 publicNameOnMainInterface
28
+
29
+ # The specification of another proxy which shall be used for downloads.
30
+ # Username and password are, and see manual for limitations.
31
+ #
32
+ #Proxy: http://www-proxy.example.net:80
33
+ #proxy: username:proxypassword@proxy.example.net:3128
34
+
35
+ # Repository remapping. See manual for details.
36
+ # In this example, some backends files might be generated during package
37
+ # installation using information collected on the system.
38
+ Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
39
+ Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
40
+ Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
41
+
42
+ # This is usually not needed for security.debian.org because it's always the
43
+ # same DNS hostname. However, it might be enabled in order to use hooks,
44
+ # ForceManaged mode or special flags in this context.
45
+ # Remap-secdeb: security.debian.org
46
+
47
+ # Virtual page accessible in a web browser to see statistics and status
48
+ # information, i.e. under http://localhost:3142/acng-report.html
49
+ ReportPage: acng-report.html
50
+
51
+ # Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
52
+ # used with inetd bridge or cron client.
53
+ # SocketPath:/var/run/apt-cacher-ng/socket
54
+
55
+ # Forces log file to be written to disk after every line when set to 1. Default
56
+ # is 0, buffers are flushed when the client disconnects.
57
+ #
58
+ # (technically, alias to the Debug option, see its documentation for details)
59
+ #
60
+ # UnbufferLogs: 0
61
+
62
+ # Set to 0 to store only type, time and transfer sizes.
63
+ # 1 -> client IP and relative local path are logged too
64
+ # VerboseLog: 1
65
+
66
+ # Don't detach from the console
67
+ # ForeGround: 0
68
+
69
+ # Store the pid of the daemon process therein
70
+ # PidFile: /var/run/apt-cacher-ng/pid
71
+
72
+ # Forbid outgoing connections, work around them or respond with 503 error
73
+ # offlinemode:0
74
+
75
+ # Forbid all downloads that don't run through preconfigured backends (.where)
76
+ #ForceManaged: 0
77
+
78
+ # Days before considering an unreferenced file expired (to be deleted).
79
+ # Warning: if the value is set too low and particular index files are not
80
+ # available for some days (mirror downtime) there is a risk of deletion of
81
+ # still useful package files.
82
+ ExTreshold: 4
83
+
84
+ # Stop expiration when a critical problem appeared. Currently only failed
85
+ # refresh of an index file is considered as critical.
86
+ #
87
+ # WARNING: don't touch this option or set to zero.
88
+ # Anything else is DANGEROUS and may cause data loss.
89
+ #
90
+ # ExAbortOnProblems: 1
91
+
92
+ # Replace some Windows/DOS-FS incompatible chars when storing
93
+ # StupidFs: 0
94
+
95
+ # Experimental feature for apt-listbugs: pass-through SOAP requests and
96
+ # responses to/from bugs.debian.org. If not set, default is true if
97
+ # ForceManaged is enabled and false otherwise.
98
+ # ForwardBtsSoap: 1
99
+
100
+ # The daemon has a small cache for DNS data, to speed up resolution. The
101
+ # expiration time of the DNS entries can be configured in seconds.
102
+ # DnsCacheSeconds: 3600
103
+
104
+ # Don't touch the following values without good consideration!
105
+ #
106
+ # Max. count of connection threads kept ready (for faster response in the
107
+ # future). Should be a sane value between 0 and average number of connections,
108
+ # and depend on the amount of spare RAM.
109
+ # MaxStandbyConThreads: 8
110
+ #
111
+ # Hard limit of active thread count for incoming connections, i.e. operation
112
+ # is refused when this value is reached (below zero = unlimited).
113
+ # MaxConThreads: -1
114
+ #
115
+ # Pigeonholing files with regular expressions (static/volatile). Can be
116
+ # overriden here but not should not be done permanently because future update
117
+ # of default settings would not be applied later.
118
+ # VfilePattern = (^|.*?/)(Index|Packages(\.gz|\.bz2|\.lzma|\.xz)?|InRelease|Release|Release\.gpg|Sources(\.gz|\.bz2|\.lzma|\.xz)?|release|index\.db-.*\.gz|Contents-[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|((setup|setup-legacy)(\.ini|\.bz2|\.hint)(\.sig)?)|mirrors\.lst|repo(index|md)\.xml(\.asc|\.key)?|directory\.yast|products|content(\.asc|\.key)?|media|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz|info\.txt|license\.tar\.gz|license\.zip|.*\.db(\.tar\.gz)?|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|metalink\?repo|.*prestodelta\.xml\.gz)$|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*
119
+ # PfilePattern = .*(\.d?deb|\.rpm|\.dsc|\.tar(\.gz|\.bz2|\.lzma|\.xz)(\.gpg)?|\.diff(\.gz|\.bz2|\.lzma|\.xz)|\.jigdo|\.template|changelog|copyright|\.udeb|\.debdelta|\.diff/.*\.gz|(Devel)?ReleaseAnnouncement(\?.*)?|[a-f0-9]+-(susedata|updateinfo|primary|deltainfo).xml.gz|fonts/(final/)?[a-z]+32.exe(\?download.*)?|/dists/.*/installer-[^/]+/[0-9][^/]+/images/.*)$
120
+ # Whitelist for expiration, file types not to be removed even when being
121
+ # unreferenced. Default: many parts from VfilePattern where no parent index
122
+ # exists or might be unknown.
123
+ # WfilePattern = (^|.*?/)(Release|InRelease|Release\.gpg|(Packages|Sources)(\.gz|\.bz2|\.lzma|\.xz)?|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|.*\.xml|.*\.db\.tar\.gz|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|[a-z]+32.exe)$|/dists/.*/installer-.*/images/.*
124
+
125
+ # Higher modes only working with the debug version
126
+ # Warning, writes a lot into apt-cacher.err logfile
127
+ # Value overwrites UnbufferLogs setting (aliased)
128
+ # Debug:3
129
+
130
+ # Usually, general purpose proxies like Squid expose the IP address of the
131
+ # client user to the remote server using the X-Forwarded-For HTTP header. This
132
+ # behaviour can be optionally turned on with the Expose-Origin option.
133
+ # ExposeOrigin: 0
134
+
135
+ # When logging the originating IP address, trust the information supplied by
136
+ # the client in the X-Forwarded-For header.
137
+ # LogSubmittedOrigin: 0
138
+
139
+ # The version string reported to the peer, to be displayed as HTTP client (and
140
+ # version) in the logs of the mirror.
141
+ # WARNING: some archives use this header to detect/guess capabilities of the
142
+ # client (i.e. redirection support) and change the behaviour accordingly, while
143
+ # ACNG might not support the expected features. Expect side effects.
144
+ #
145
+ # UserAgent: Yet Another HTTP Client/1.2.3p4
146
+
147
+ # In some cases the Import and Expiration tasks might create fresh volatile
148
+ # data for internal use by reconstructing them using patch files. This
149
+ # by-product might be recompressed with bzip2 and with some luck the resulting
150
+ # file becomes identical to the *.bz2 file on the server, usable for APT
151
+ # clients trying to fetch the full .bz2 compressed version. Injection of the
152
+ # generated files into the cache has however a disadvantage on underpowered
153
+ # servers: bzip2 compression can create high load on the server system and the
154
+ # visible download of the busy .bz2 files also becomes slower.
155
+ #
156
+ # RecompBz2: 0
157
+
158
+ # Network timeout for outgoing connections.
159
+ # NetworkTimeout: 60
160
+
161
+ # Sometimes it makes sense to not store the data in cache and just return the
162
+ # package data to client as it comes in. DontCache parameters can enable this
163
+ # behaviour for certain URL types. The tokens are extended regular expressions
164
+ # that URLs are matched against.
165
+ #
166
+ # DontCacheRequested is applied to the URL as it comes in from the client.
167
+ # Example: exclude packages built with kernel-package for x86
168
+ # DontCacheRequested: linux-.*_10\...\.Custo._i386
169
+ # Example usecase: exclude popular private IP ranges from caching
170
+ # DontCacheRequested: 192.168.0 ^10\..* 172.30
171
+ #
172
+ # DontCacheResolved is applied to URLs after mapping to the target server. If
173
+ # multiple backend servers are specified then it's only matched against the
174
+ # download link for the FIRST possible source (due to implementation limits).
175
+ # Example usecase: all Ubuntu stuff comes from a local mirror (specified as
176
+ # backend), don't cache it again:
177
+ # DontCacheResolved: ubuntumirror.local.net
178
+ #
179
+ # DontCache directive sets (overrides) both, DontCacheResolved and
180
+ # DontCacheRequested. Provided for convenience, see those directives for
181
+ # details.
182
+ #
183
+ # Default permission set of freshly created files and directories, as octal
184
+ # numbers (see chmod(1) for details).
185
+ # Can by limited by the umask value (see umask(2) for details) if it's set in
186
+ # the environment of the starting shell, e.g. in apt-cacher-ng init script or
187
+ # in its configuration file.
188
+ # DirPerms: 00755
189
+ # FilePerms: 00664
190
+ #
191
+ #
192
+ # It's possible to use use apt-cacher-ng as a regular web server with limited
193
+ # feature set, i.e.
194
+ # including directory browsing and download of any file;
195
+ # excluding sorting, mime types/encodings, CGI execution, index page
196
+ # redirection and other funny things.
197
+ # To get this behavior, mappings between virtual directories and real
198
+ # directories on the server must be defined with the LocalDirs directive.
199
+ # Virtual and real dirs are separated by spaces, multiple pairs are separated
200
+ # by semi-colons. Real directories must be absolute paths.
201
+ # NOTE: Since the names of that key directories share the same namespace as
202
+ # repository names (see Remap-...) it's administrators job to avoid such
203
+ # collisions on them (unless created deliberately).
204
+ #
205
+ # LocalDirs: woo /data/debarchive/woody ; hamm /data/debarchive/hamm
206
+
207
+ # Precache a set of files referenced by specified index files. This can be used
208
+ # to create a partial mirror usable for offline work. There are certain limits
209
+ # and restrictions on the path specification, see manual for details. A list of
210
+ # (maybe) relevant index files could be retrieved via
211
+ # "apt-get --print-uris update" on a client machine.
212
+ #
213
+ # PrecacheFor: debrep/dists/unstable/*/source/Sources* debrep/dists/unstable/*/binary-amd64/Packages*
214
+
215
+ # Arbitrary set of data to append to request headers sent over the wire. Should
216
+ # be a well formated HTTP headers part including newlines (DOS style) which
217
+ # can be entered as escape sequences (\r\n).
218
+ # RequestAppendix: X-Tracking-Choice: do-not-track\r\n
219
+
220
+ # Specifies the IP protocol families to use for remote connections. Order does
221
+ # matter, first specified are considered first. Possible combinations:
222
+ # v6 v4
223
+ # v4 v6
224
+ # v6
225
+ # v4
226
+ # (empty or not set: use system default)
227
+ #
228
+ # ConnectProto: v6 v4
229
+
230
+ # Regular expiration algorithm finds package files which are no longer listed
231
+ # in any index file and removes them of them after a safety period.
232
+ # This option allows to keep more versions of a package in the cache after
233
+ # safety period is over.
234
+ # KeepExtraVersions: 1
235
+
236
+ # Optionally uses TCP access control provided by libwrap, see hosts_access(5)
237
+ # for details. Daemon name is apt-cacher-ng. Default if not set: decided on
238
+ # startup by looking for explicit mentioning of apt-cacher-ng in
239
+ # /etc/hosts.allow or /etc/hosts.deny files.
240
+ # UseWrap: 0
241
+
242
+ # If many machines from the same local network attempt to update index files
243
+ # (apt-get update) at nearly the same time, the known state of these index file
244
+ # is temporarily frozen and multiple requests receive the cached response
245
+ # without contacting the server. This parameter (in seconds) specifies the
246
+ # length of this period before the files are considered outdated.
247
+ # Setting it too low transfers more data and increases remote server load,
248
+ # setting it too high (more than a couple of minutes) increases the risk of
249
+ # delivering inconsistent responses to the clients.
250
+ # FreshIndexMaxAge: 27
251
+
252
+ # Usually the users are not allowed to specify custom TCP ports of remote
253
+ # mirrors in the requests, only the default HTTP port can be used (instead,
254
+ # proxy administrator can create Remap- rules with custom ports). This
255
+ # restriction can be disabled by specifying a list of allowed ports or 0 for
256
+ # any port.
257
+ #
258
+ # AllowUserPorts: 80
259
+
260
+ # Normally the HTTP redirection responses are forwarded to the original caller
261
+ # (i.e. APT) which starts a new download attempt from the new URL. This
262
+ # solution is ok for client configurations with proxy mode but doesn't work
263
+ # well with configurations using URL prefixes. To work around this the server
264
+ # can restart its own download with another URL. However, this might be used to
265
+ # circumvent download source policies by malicious users.
266
+ # The RedirMax option specifies how many such redirects the server should
267
+ # follow per request, 0 disables the internal redirection. If not set,
268
+ # default value is 0 if ForceManaged is used and 5 otherwise.
269
+ #
270
+ # RedirMax: 5
@@ -0,0 +1,2 @@
1
+ Description
2
+ ===========
@@ -0,0 +1,14 @@
1
+ name "btsync"
2
+ maintainer "Chris MacNaughton"
3
+ maintainer_email "chmacnaughton@gmail.com"
4
+ license "Apache 2.0"
5
+ description "Installs Bittorrent Sync"
6
+ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7
+ version "0.0.1"
8
+ recipe "btsync", "installs BtSync"
9
+
10
+ depends "apt"
11
+
12
+ %w{ ubuntu debian }.each do |os|
13
+ supports os
14
+ end
@@ -0,0 +1,13 @@
1
+ package "python-software-properties"
2
+
3
+ apt_repository "btsync" do
4
+ uri "http://ppa.launchpad.net/tuxpoldo/btsync/ubuntu"
5
+ distribution node['lsb']['codename']
6
+ components ["main"]
7
+ key "D294A752"
8
+ keyserver "keyserver.ubuntu.com"
9
+ notifies :run, resources(:execute => "apt-get update"), :immediately
10
+ end
11
+ package "btsync" do
12
+ action :install
13
+ end
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ .cache
3
+ .kitchen
4
+ bin
@@ -0,0 +1,42 @@
1
+ ---
2
+ driver_plugin: vagrant
3
+ platforms:
4
+ - name: debian-6
5
+ driver_config:
6
+ box: opscode-debian-6
7
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_debian-6.0.7_chef-11.2.0.box
8
+ require_chef_omnibus: 11.4.0
9
+ - name: ubuntu-12.10
10
+ driver_config:
11
+ box: canonical-ubuntu-12.10
12
+ box_url: http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box
13
+ require_chef_omnibus: 11.4.0
14
+ - name: ubuntu-12.04
15
+ driver_config:
16
+ box: canonical-ubuntu-12.04
17
+ box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
18
+ require_chef_omnibus: 11.4.0
19
+ - name: ubuntu-11.04
20
+ driver_config:
21
+ box: opscode-ubuntu-11.04
22
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-11.04.box
23
+ require_chef_omnibus: 11.4.0
24
+ - name: ubuntu-10.04
25
+ driver_config:
26
+ box: opscode-ubuntu-10.04
27
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box
28
+ require_chef_omnibus: 11.4.0
29
+ - name: centos-6.3
30
+ driver_config:
31
+ box: opscode-centos-6.3
32
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box
33
+ require_chef_omnibus: 11.4.0
34
+ - name: centos-5.8
35
+ driver_config:
36
+ box: opscode-centos-5.8
37
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box
38
+ require_chef_omnibus: 11.4.0
39
+ suites:
40
+ - name: default
41
+ run_list:
42
+ - recipe[build-essential]
@@ -0,0 +1,3 @@
1
+ site :opscode
2
+
3
+ metadata
@@ -0,0 +1,42 @@
1
+ ## v1.4.0:
2
+
3
+ This version splits up the default recipe into recipes included based
4
+ on the node's platform_family.
5
+
6
+ * [COOK-2505] - backport omnibus builder improvements
7
+
8
+ ## v1.3.4:
9
+
10
+ * [COOK-2272] - Complete `platform_family` conversion in build-essential
11
+
12
+ ## v1.3.2:
13
+
14
+ * [COOK-2069] - build-essential will install osx-gcc-installer when
15
+ Xcode is present
16
+
17
+ ## v1.3.0:
18
+
19
+ * [COOK-1895] - support smartos
20
+
21
+ ## v1.2.0:
22
+
23
+ * Add test-kitchen support (source repo only)
24
+ * [COOK-1677] - build-essential cookbook support for OpenSuse and SLES
25
+ * [COOK-1718] - build-essential cookbook metadata should include scientific
26
+ * [COOK-1768] - The apt-get update in build-essentials needs to be renamed
27
+
28
+ ## v1.1.2:
29
+
30
+ * [COOK-1620] - support OS X 10.8
31
+
32
+ ## v1.1.0:
33
+
34
+ * [COOK-1098] - support amazon linux
35
+ * [COOK-1149] - support Mac OS X
36
+ * [COOK-1296] - allow for compile-time installation of packages
37
+ through an attribute (see README)
38
+
39
+ ## v1.0.2:
40
+
41
+ * [COOK-1098] - Add Amazon Linux platform support
42
+ * [COOK-1149] - Add OS X platform support
@@ -0,0 +1,29 @@
1
+ If you would like to contribute, please open a ticket in JIRA:
2
+
3
+ * http://tickets.opscode.com
4
+
5
+ Create the ticket in the COOK project and use the cookbook name as the
6
+ component.
7
+
8
+ For all code contributions, we ask that contributors sign a
9
+ contributor license agreement (CLA). Instructions may be found here:
10
+
11
+ * http://wiki.opscode.com/display/chef/How+to+Contribute
12
+
13
+ When contributing changes to individual cookbooks, please do not
14
+ modify the version number in the metadata.rb. Also please do not
15
+ update the CHANGELOG.md for a new version. Not all changes to a
16
+ cookbook may be merged and released in the same versions. Opscode will
17
+ handle the version updates during the release process. You are welcome
18
+ to correct typos or otherwise make updates to documentation in the
19
+ README.
20
+
21
+ If a contribution adds new platforms or platform versions, indicate
22
+ such in the body of the commit message(s), and update the relevant
23
+ COOK ticket. When writing commit messages, it is helpful for others if
24
+ you indicate the COOK ticket. For example:
25
+
26
+ git commit -m '[COOK-1041] Updated pool resource to correctly delete.'
27
+
28
+ In the ticket itself, it is also helpful if you include log output of
29
+ a successful Chef run, but this is not absolutely required.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.