From 130e4ef12c14eabbe7a0253dd392aa081bcde2cf Mon Sep 17 00:00:00 2001 From: Noel Kuntze Date: Sat, 24 Jul 2021 03:34:35 +0200 Subject: [PATCH] testing/py3-vici: new aport Native Python interface for strongSwan's VICI protocol --- testing/py3-vici/APKBUILD | 41 +++++++++++++++++++++++++ testing/py3-vici/use-sitepackages.patch | 9 ++++++ 2 files changed, 50 insertions(+) create mode 100644 testing/py3-vici/APKBUILD create mode 100644 testing/py3-vici/use-sitepackages.patch diff --git a/testing/py3-vici/APKBUILD b/testing/py3-vici/APKBUILD new file mode 100644 index 00000000000..675654a9025 --- /dev/null +++ b/testing/py3-vici/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Noel Kuntze +pkgname=py3-vici +pkgver=5.9.3 +pkgrel=0 +pkgdesc="Native Python interface for strongSwan's VICI protocol" +url="https://strongswan.org" +arch="noarch" +license="MIT" +depends="python3" +makedepends="automake autoconf py3-setuptools" +checkdepends="py3-pytest py3-tox" +source="https://github.com/strongswan/strongswan/releases/download/$pkgver/strongswan-$pkgver.tar.bz2 + use-sitepackages.patch + " +builddir="$srcdir/strongswan-$pkgver" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --disable-defaults \ + --enable-python-eggs + + cd src/libcharon/plugins/vici/python + make all + python3 setup.py build +} + +check() { + make -C src/libcharon/plugins/vici/python check +} + +package() { + cd src/libcharon/plugins/vici/python/ + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums=" +09bd78225415422c8f55c9f0dea2ca70111f42f0deacfaaac30c422109ff64180f6a6a47c6bc54238e8403f0b2f8520122c1eabbeda3f915427fadb838a5df51 strongswan-5.9.3.tar.bz2 +4c53fb194339598c2d4226c152b2624550eac052498f52294202468c3dbf5108590f31326e2ca87ce833839ec2daf1ad991d83088e5388c0bcc5503507f7dae5 use-sitepackages.patch +" diff --git a/testing/py3-vici/use-sitepackages.patch b/testing/py3-vici/use-sitepackages.patch new file mode 100644 index 00000000000..9e029a5322a --- /dev/null +++ b/testing/py3-vici/use-sitepackages.patch @@ -0,0 +1,9 @@ +diff --git a/src/libcharon/plugins/vici/python/tox.sh b/src/libcharon/plugins/vici/python/tox.sh +index 1a4f786..d52b626 100755 +--- a/src/libcharon/plugins/vici/python/tox.sh ++++ b/src/libcharon/plugins/vici/python/tox.sh +@@ -1,3 +1,3 @@ + #!/bin/sh + +-${TOX} -c ${srcdir} --skip-missing-interpreters ++${TOX} -c ${srcdir} --skip-missing-interpreters --sitepackages