pantry/projects/github.com/thinkst/opencanary/package.yml
Jacob Torrey e3ea4ee44e
+(opencanaryd) (#3898)
* +(opencanaryd)

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Improve packaging and documentation for opencanary

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Move to a more idiomatic, version-agnostic packaging

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Trying to diagnose aarch64 build issue

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Add libffi to the build deps

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Bump to python 3.8

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Bump to python 3.9

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

* Reverting to the previously building version

Signed-off-by: Jacob Torrey <jacob@thinkst.com>

---------

Signed-off-by: Jacob Torrey <jacob@thinkst.com>
2023-10-31 19:13:31 -04:00

37 lines
947 B
YAML

distributable:
url: https://github.com/thinkst/opencanary/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: thinkst/opencanary
dependencies:
python.org: ^3.10
tcpdump.org: '*'
openssl.org: '*'
runtime:
env:
PYTHONPATH: "$PYTHONPATH:{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages"
build:
dependencies:
pip.pypa.io: '*'
script:
- run: |
pip install setuptools
cat setup.py | sed -e 's/requirements = \[/requirements = \["scapy","pcapy-ng",/' > setup.py.mod
mv setup.py.mod setup.py
python setup.py sdist
python -m pip install --prefix={{prefix}} dist/opencanary-{{version}}.tar.gz
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: ${{prefix}}/lib/
provides:
- bin/opencanaryd
test:
script: test "$(opencanaryd --version)" = "{{version}}"