mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ssh-ldap-pubkey
|
|
pkgver=1.4.0
|
|
pkgrel=1
|
|
pkgdesc="Utility to manage SSH public keys stored in LDAP"
|
|
url="https://github.com/jirutka/ssh-ldap-pubkey"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-pyldap py3-docopt"
|
|
makedepends="python3-dev py3-setuptools"
|
|
install="$pkgname.post-install"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz
|
|
ldap.conf.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -i 's|/etc/ldap.conf|/etc/ssh-ldap-pubkey.conf|g' bin/ssh-ldap-pubkey
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
install -m 644 -D etc/ldap.conf \
|
|
"$pkgdir"/etc/ssh-ldap-pubkey.conf
|
|
|
|
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
|
|
cp README.md etc/openssh-lpk.schema "$pkgdir"/usr/share/doc/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
a62929b47f46f18936fcc7c233afaee43f0cef5f7a8de15304986205f98c2644a18f9c0dcabb35598f1cc485b8c4dbeb8b2f07cb2c3dcbb6b271a276aebf88e7 ssh-ldap-pubkey-1.4.0.tar.gz
|
|
5b96dd8b1150eb62db7d33d1eee5ed9b28ebaf487c6a8cab6ba1d66d14496c2fdb1c73c1c0959ccd99ea53359b8d82861b7416dc0351bfa22ccfe59b5f530564 ldap.conf.patch
|
|
"
|