Skip to content

Instantly share code, notes, and snippets.

@simos
Last active February 6, 2017 12:37
Show Gist options
  • Select an option

  • Save simos/3214bbd2f7d4a4647918bdb2afb926cd to your computer and use it in GitHub Desktop.

Select an option

Save simos/3214bbd2f7d4a4647918bdb2afb926cd to your computer and use it in GitHub Desktop.
snapcraft.yaml for httpstat
name: httpstat # you probably want to 'snapcraft register <name>'
version: '1.1.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: Curl statistics made simple # 79 char long summary
description: |
httpstat is a utility that analyses show fast is a website
when you are trying to connect to it.
This utility is particularly useful to Web administrators
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
apps:
httpstat:
command: bin/httpstat
plugs:
- network
parts:
httpstat:
plugin: python
source: https://github.com/reorx/httpstat.git
source-tag: v1.1.3
stage-packages:
- curl
@simos
Copy link
Author

simos commented Feb 6, 2017

The initial revision (revision 1) would freshly build curl from source, providing the opportunity to further strip down unneeded functionality.
The subsequent revision (revision 2) reuses the existing curl package that is found in the Ubuntu repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment