blob: 77f88604aadd4acca951f9fa37ee14b8e81cc689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ssh-ldap-pubkey
pkgver=1.1.1
pkgrel=0
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"
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"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare || return 1
sed -i 's|/etc/ldap.conf|/etc/ssh-ldap-pubkey.conf|g' bin/ssh-ldap-pubkey
}
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
install -m 644 -D etc/ldap.conf \
"$pkgdir"/etc/ssh-ldap-pubkey.conf || return 1
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
cp README.md etc/openssh-lpk.schema "$pkgdir"/usr/share/doc/$pkgname/
}
md5sums="49bd3ac6a952721b1ad51fbb76714ebc ssh-ldap-pubkey-1.1.1.tar.gz
c257d9efbd2254ca748b99a0436336da ldap.conf.patch"
sha256sums="30596887ffacc14bb2041cf420c88244d0a6caebbc23ae2c55e909a1cd35b092 ssh-ldap-pubkey-1.1.1.tar.gz
27dfb815c32eeaf2a63b54a6cf1744a613e66b9deab230ffbf737d690c5e130e ldap.conf.patch"
sha512sums="58ed6e2ffb8a5b24f88733139e794c4de7b44ffe2a15b1e1cfc7bedffe67f596d07db8035ee03f0fbf92e4d248173fbd377d39b696a1453c751bb03728a96de3 ssh-ldap-pubkey-1.1.1.tar.gz
5b96dd8b1150eb62db7d33d1eee5ed9b28ebaf487c6a8cab6ba1d66d14496c2fdb1c73c1c0959ccd99ea53359b8d82861b7416dc0351bfa22ccfe59b5f530564 ldap.conf.patch"
|