Created
April 15, 2013 08:24
-
-
Save manveru/5386685 to your computer and use it in GitHub Desktop.
ssh-installkeys PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jaroslav Lichtblau <[email protected]> | |
# Contributor: Michael Fellinger <[email protected]> | |
pkgname=ssh-installkeys | |
pkgver=1.7 | |
pkgrel=1 | |
pkgdesc="Set up password-less SSH logins" | |
arch=('any') | |
url="http://www.catb.org/~esr/$pkgname" | |
license=('BSD') | |
depends=('python2' 'openssh') | |
makedepends=('xmlto') | |
source=(http://www.catb.org/~esr/$pkgname/$pkgname-$pkgver.tar.gz) | |
md5sums=('384af17101cac5bf2756b32354c4a309') | |
build() { | |
cd ${srcdir}/$pkgname-$pkgver | |
make ssh-installkeys.1 | |
} | |
package() { | |
cd ${srcdir}/$pkgname-$pkgver | |
# Python2 fix | |
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $pkgname | |
install -D -m755 $pkgname ${pkgdir}/usr/bin/$pkgname | |
install -D -m644 $pkgname.1 ${pkgdir}/usr/share/man/man1/$pkgname.1 | |
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/ssh-installkeys/COPYING | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment