Skip to content

Commit

Permalink
Update downloads page to ensure Apache compliance (WIP) (apache#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins authored and merlimat committed Jan 5, 2018
1 parent 7e7966e commit 558b0b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 28 deletions.
9 changes: 5 additions & 4 deletions site/_includes/explanations/install-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
-->

{% capture binary_release_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz{% endcapture %}
{% capture source_release_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz{% endcapture %}
{% capture root_url %}http://www.apache.org/dist/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}{% endcapture %}
{% capture binary_release_url %}{{ root_url }}-bin.tar.gz{% endcapture %}
{% capture source_release_url %}{{ root_url }}-src.tar.gz{% endcapture %}

## System requirements

Expand All @@ -41,10 +42,10 @@ To get started running Pulsar, download a binary tarball release in one of the f

```shell
# Source release
$ wget http://archive.apache.org/dist/incubator/pulsar/pulsar-{{site.current_version}}/apache-pulsar-{{site.current_version}}-src.tar.gz
$ wget {{ source_release_url }}

# Binary release
$ wget http://archive.apache.org/dist/incubator/pulsar/pulsar-{{site.current_version}}/apache-pulsar-{{site.current_version}}-bin.tar.gz
$ wget {{ binary_release_url }}
```

Once the tarball is downloaded, untar it and `cd` into the resulting directory:
Expand Down
39 changes: 15 additions & 24 deletions site/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,18 @@ layout: content
-->

{% capture root_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}{% endcapture %}

You can download Pulsar from the [releases page](https://github.com/apache/incubator-pulsar/releases) on GitHub or here:

### Version {{ site.current_version }} releases

#### Binary release

File | Link
:----|:----
Tarball | [apache-pulsar-{{ site.current_version }}-bin.tar.gz](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz)
[ASCII-armored detached signature](http://www.apache.org/dev/release-signing#ascii) | [apache-pulsar-{{ site.current_version }}-bin.tar.gz.asc](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz.asc)
[MD5 checksum](http://www.apache.org/dev/release-signing#md5) | [apache-pulsar-{{ site.current_version }}-bin.tar.gz.md5](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz.md5)
[SHA512 checksum](http://www.apache.org/dev/release-signing#sha-checksum) | [apache-pulsar-{{ site.current_version }}-bin.tar.gz.sha512](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz.md5)

#### Source release
Release | Link | Crypto files
:-------|:-----|:------------
Binary | [pulsar-{{ site.current_version }}-bin.tar.gz]({{ root_url }}-bin.tar.gz) | [asc]({{ root_url }}-bin.tar.gz.asc), [md5]({{ root_url }}-bin.tar.gz.md5), [sha512]({{ root_url }}-bin.tar.gz.sha512)
Source | [pulsar-{{ site.current_version }}-src.tar.gz]({{ root_url }}-src.tar.gz) | [asc]({{ root_url }}-src.tar.gz.asc), [md5]({{ root_url }}-src.tar.gz.md5), [sha512]({{ root_url }}-src.tar.gz.sha512)

File | Link
:----|:----
Tarball | [apache-pulsar-{{ site.current_version }}-src.tar.gz](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz)
[ASCII-armored detached signature](http://www.apache.org/dev/release-signing#ascii) | [apache-pulsar-{{ site.current_version }}-src.tar.gz.asc](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz.asc)
[MD5 checksum](http://www.apache.org/dev/release-signing#md5) | [apache-pulsar-{{ site.current_version }}-src.tar.gz.md5](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz.md5)
[SHA512 checksum](http://www.apache.org/dev/release-signing#sha-checksum) | [apache-pulsar-{{ site.current_version }}-src.tar.gz.sha512](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz.md5)

{% include admonition.html type="info" content='You can download the [KEYS](http://www.apache.org/dev/release-signing#keys-policy) file for Pulsar <a href="https://dist.apache.org/repos/dist/release/incubator/pulsar/KEYS" download>here</a>.' %}
{% include admonition.html type="info" content='You can download the [KEYS](http://www.apache.org/dev/release-signing#keys-policy) file for Pulsar <a href="http://www.apache.org/dist/incubator/pulsar/KEYS" download>here</a>.' %}

### Release notes for the {{ site.current_version }} release

Expand All @@ -66,13 +55,15 @@ Client guide | API docs


{% if site.archived_releases %}
{% capture archive_root_url %}http://archive.apache.org/dist/incubator/pulsar{% endcapture %}
{% capture release_notes_root_url %}https://github.com/apache/incubator-pulsar/releases/tag{% endcapture %}

### Other releases
### Older releases

| Release | Download | Release notes |
|:-------|:--------------------------------------------|--------------------------------------------|
Release | Download | Crypto files | Release notes
:-------|:---------|:-------------|:-------------
{% for version in site.archived_releases
%} {{version}} | [http://archive.apache.org/dist/incubator/pulsar/pulsar-{{version}}](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{version}}) | [Release notes v{{version}}](https://github.com/apache/incubator-pulsar/releases/tag/v{{ version }})|
%} {{ version }} binary | [pulsar-{{version}}-bin.tar.gz]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz) | [asc]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz.asc), [md5]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz.md5), [sha]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz.sha) | [Release notes v{{ version }}]({{ release_notes_root_url }}/v{{ version }})
{{ version }} source | [pulsar-{{ version }}-src.tar.gz]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz) | [asc]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz.asc), [md5]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz.md5), [sha]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz.sha)
{% endfor %}

{% endif %}
{% endif %}

0 comments on commit 558b0b9

Please sign in to comment.