diff options
author | Jörg Thalheim | 2015-06-10 22:35:01 +0200 |
---|---|---|
committer | Jörg Thalheim | 2015-06-10 22:35:01 +0200 |
commit | a7cdc4941f5d68aa90f5c1bec6f668301cba6540 (patch) | |
tree | 74242e1b8838537edf92fa30a61d64a345145267 | |
download | aur-a7cdc4941f5d68aa90f5c1bec6f668301cba6540.tar.gz |
Initial Import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | openssh-ldap-helper.install | 7 |
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..53bfe1332f78 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = openssh-ldap-helper + pkgdesc = perform ssh pubkey validation through LDAP + pkgver = 20140927 + pkgrel = 2 + url = https://github.com/lesovsky/uber-scripts/tree/master/openssh-ldap-helper + install = openssh-ldap-helper.install + arch = any + license = MIT + makedepends = git + depends = openldap + source = git+https://github.com/lesovsky/uber-scripts.git + md5sums = SKIP + +pkgname = openssh-ldap-helper + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46eb63d0ba64 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +pkgname=openssh-ldap-helper +pkgver=20140927 +pkgrel=2 +pkgdesc="perform ssh pubkey validation through LDAP" +arch=('any') +url="https://github.com/lesovsky/uber-scripts/tree/master/openssh-ldap-helper" +license=('MIT') +depends=("openldap") +makedepends=("git") +source=("git+https://github.com/lesovsky/uber-scripts.git") +md5sums=('SKIP') +install=$pkgname.install + +pkgver() { + cd "$srcdir/$_pkgname" + git log -1 --format='%cd' --date=short | tr -d -- '-' +} + +package() { + cd "$srcdir"/uber-scripts + install -D -m755 "linux/openssh-ldap-helper/openssh-ldap-helper" "$pkgdir/usr/lib/openssh-ldap-helper/openssh-ldap-helper" + install -D -m644 "linux/openssh-ldap-helper/README.md" "$pkgdir/usr/share/doc/openssh-ldap-helper/README.md" +} diff --git a/openssh-ldap-helper.install b/openssh-ldap-helper.install new file mode 100644 index 000000000000..29bbb6fb36ad --- /dev/null +++ b/openssh-ldap-helper.install @@ -0,0 +1,7 @@ +post_install(){ + cat <<EOF + # Add the following lines to /etc/ssh/sshd_config + AuthorizedKeysCommand /usr/lib/openssh-ldap-helper/openssh-ldap-helper + AuthorizedKeysCommandUser root +EOF +} |