diff --git a/ilot/authentik/APKBUILD b/ilot/authentik/APKBUILD index 42b271d..25d7447 100644 --- a/ilot/authentik/APKBUILD +++ b/ilot/authentik/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=authentik -pkgver=2024.10.5 +pkgver=2024.12.1 pkgrel=0 pkgdesc="An open-source Identity Provider focused on flexibility and versatility" url="https://github.com/goauthentik/authentik" @@ -59,7 +59,7 @@ depends=" py3-jsonpatch py3-jwt py3-jwcrypto - py3-kadmin + py3-kadmin-rs py3-kubernetes py3-ldap3 py3-lxml diff --git a/ilot/kadmin-rs/APKBUILD b/ilot/kadmin-rs/APKBUILD new file mode 100644 index 0000000..d05270b --- /dev/null +++ b/ilot/kadmin-rs/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=kadmin-rs +pkgver=0.5.2 +pkgrel=0 +pkgdesc="Rust and Python interfaces to the Kerberos administration interface (kadm5)" +url="https://github.com/authentik-community/kadmin-rs" +arch="all" +license="MIT" +checkdepends="py3-pytest py3-k5test" +makedepends=" + cargo + cargo-auditable + clang-libclang + py3-setuptools + py3-setuptools-rust + py3-gpep517 + py3-wheel + poetry + python3-dev + sccache + " +source="$pkgname-$pkgver.tar.gz::https://github.com/authentik-community/kadmin-rs/archive/refs/tags/kadmin/version/$pkgver.tar.gz" +builddir="$srcdir"/kadmin-rs-kadmin-version-$pkgver +subpackages="$pkgname-pyc" + +prepare() { + default_prepare + + cargo fetch --target="$CTARGET" --locked +} + + +build() { + cargo auditable build --release --locked + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { +# cargo test --locked + + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m unittest python/tests/test_*.py +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +c92ef8462e44893c9d334c42481ee40caeace2522b5527ced60b41cdda32bc70b98b747151cfffec8fc20033493b374075e216c93d2c126c8f903bfbb3d01ec0 kadmin-rs-0.5.2.tar.gz +" diff --git a/ilot/py3-kadmin/APKBUILD b/ilot/py3-kadmin/APKBUILD deleted file mode 100644 index 894a945..0000000 --- a/ilot/py3-kadmin/APKBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Contributor: Antoine Martin (ayakael) -# Maintainer: Antoine Martin (ayakael) -pkgname=py3-kadmin -#_pkgreal is used by apkbuild-pypi to find modules at PyPI -_pkgreal=kadmin -pkgver=0.2.0 -pkgrel=0 -pkgdesc="Python module for kerberos admin (kadm5)" -url="https://github.com/authentik-community/python-kadmin" -arch="all" -license="MIT" -checkdepends="py3-pytest py3-k5test" -makedepends="py3-setuptools py3-gpep517 py3-wheel poetry python3-dev" -source=" - $pkgname-$pkgver.tar.gz::https://github.com/authentik-community/python-kadmin/archive/refs/tags/v$pkgver.tar.gz - fix-int-conversion-error.patch" -builddir="$srcdir"/python-kadmin-$pkgver -subpackages="$pkgname-pyc" - -build() { - gpep517 build-wheel \ - --wheel-dir .dist \ - --output-fd 3 3>&1 >&2 -} - -check() { - python3 -m venv --clear --without-pip --system-site-packages .testenv - .testenv/bin/python3 -m installer .dist/*.whl - .testenv/bin/python3 test/tests.py -} - -package() { - python3 -m installer -d "$pkgdir" \ - .dist/*.whl -} - -sha512sums=" -b405e914cb296f2bfe4f78d2791329804a0db02816182517b59ed1452a21d51dafe303609fddafbbeea57128bba4bcdfcd9b363f193ae0402cc52cf1b3b9020e py3-kadmin-0.2.0.tar.gz -e17223f8597d51ea099f5d4483dd72545b7d64ad76895553a6b7112416536aae93a59a2fd7aea044420495ab8146db7290abd826b268b2d6e518442c3c85c506 fix-int-conversion-error.patch -" diff --git a/ilot/py3-kadmin/fix-int-conversion-error.patch b/ilot/py3-kadmin/fix-int-conversion-error.patch deleted file mode 100644 index 445b76b..0000000 --- a/ilot/py3-kadmin/fix-int-conversion-error.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/PyKAdminPolicyObject.c.orig b/src/PyKAdminPolicyObject.c -index 0bf3ee8..68387c4 100644 ---- a/src/PyKAdminPolicyObject.c.orig -+++ b/src/PyKAdminPolicyObject.c -@@ -120,7 +120,7 @@ PyTypeObject PyKAdminPolicyObject_Type = { - sizeof(PyKAdminPolicyObject), /*tp_basicsize*/ - 0, /*tp_itemsize*/ - (destructor)PyKAdminPolicyObject_dealloc, /*tp_dealloc*/ -- KAdminPolicyObject_print, /*tp_print*/ -+ 0, /*tp_print*/ - 0, /*tp_getattr*/ - 0, /*tp_setattr*/ - 0, /*tp_compare*/