diff options
-rw-r--r-- | main/openssh/APKBUILD | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/main/openssh/APKBUILD b/main/openssh/APKBUILD index 106d1cf31a..1827764e6b 100644 --- a/main/openssh/APKBUILD +++ b/main/openssh/APKBUILD @@ -3,18 +3,23 @@ pkgname=openssh pkgver=7.4_p1 _myver=${pkgver%_*}${pkgver#*_} -pkgrel=0 +pkgrel=1 pkgdesc="Port of OpenBSD's free SSH release" url="http://www.openssh.org/portable.html" arch="all" license="as-is" options="suid" -depends="openssh-client openssh-sftp-server" +depends="openssh-client openssh-sftp-server openssh-server" makedepends_build="" makedepends_host="libressl-dev zlib-dev linux-headers" makedepends="$makedepends_build $makedepends_host" -subpackages="$pkgname-doc $pkgname-client $pkgname-keysign - $pkgname-sftp-server:sftp" +subpackages="$pkgname-doc + $pkgname-keygen + $pkgname-client + $pkgname-keysign + $pkgname-sftp-server:sftp + $pkgname-server + " source="http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$_myver.tar.gz openssh6.5-peaktput.diff openssh7.1-dynwindows.diff @@ -81,10 +86,17 @@ package() { sed -i 's/#UseDNS yes/UseDNS no/' "$pkgdir"/etc/ssh/sshd_config } +keygen() { + pkgdesc="ssh helper program for generating keys" + depends= + install -d "$subpkgdir"/usr/bin || return 1 + mv "$pkgdir"/usr/bin/ssh-keygen \ + "$subpkgdir"/usr/bin/ || return 1 +} + client() { pkgdesc="OpenBSD's SSH client" - replaces="openssh" - depends= + depends="openssh-keygen" install -d "$subpkgdir"/usr/bin \ "$subpkgdir"/usr/lib/ssh \ "$subpkgdir"/etc/ssh \ @@ -117,6 +129,23 @@ sftp() { "$subpkgdir"/usr/lib/ssh/ || return 1 } +server() { + pkgdesc="OpenSSH server" + depends="openssh-keygen" + + for i in etc/ssh/sshd_config \ + etc/init.d/sshd \ + etc/conf.d/sshd \ + usr/sbin/sshd \ + usr/lib/ssh/ssh-pkcs11-helper; do + + install -d "$subpkgdir"/${i%/*} || return 1 + mv "$pkgdir"/$i \ + "$subpkgdir"/${i%/*}/ || return 1 + done +} + + md5sums="b2db2a83caf66a208bb78d6d287cdaa3 openssh-7.4p1.tar.gz cd52fe99cb4b7d0d847bf5d710d93564 openssh6.5-peaktput.diff 6337ad8a38783c8f1285cf4f97fc451f openssh7.1-dynwindows.diff |