summaryrefslogtreecommitdiffstats
path: root/main/openssh/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-04 13:26:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-04 13:26:46 +0000
commit348d6f59ea67d4662a290c19bcd3eba93966b58e (patch)
treef6159fa4ac5306bcf7825618c79d6b266d9dff29 /main/openssh/APKBUILD
parent08a7c5f6f1d30e93ad3e07631d08b3b9df43b074 (diff)
downloadaports-348d6f59ea67d4662a290c19bcd3eba93966b58e.tar.bz2
aports-348d6f59ea67d4662a290c19bcd3eba93966b58e.tar.xz
main/openssh: separate client package
Diffstat (limited to 'main/openssh/APKBUILD')
-rw-r--r--main/openssh/APKBUILD26
1 files changed, 21 insertions, 5 deletions
diff --git a/main/openssh/APKBUILD b/main/openssh/APKBUILD
index b81ae46ef..0282e9693 100644
--- a/main/openssh/APKBUILD
+++ b/main/openssh/APKBUILD
@@ -2,20 +2,20 @@
pkgname=openssh
pkgver=5.2_p1
_myver=5.2p1
-pkgrel=1
+pkgrel=2
pkgdesc="Port of OpenBSD's free SSH release"
url="http://www.openssh.org/portable.html"
license="as-is"
-depends="openssl zlib"
+depends="openssh-client"
makedepends="openssl-dev zlib-dev"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-client"
source="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$_myver.tar.gz
sshd.initd
sshd.confd
"
-build ()
-{
+build ()
+{
cd $startdir/src/$pkgname-$_myver
sed -i -e '/_PATH_XAUTH/s:/usr/X11R6/bin/xauth:/usr/bin/xauth:' \
pathnames.h || return 1
@@ -42,6 +42,22 @@ build ()
install -D -m755 "$srcdir"/sshd.initd "$pkgdir"/etc/init.d/sshd
install -D -m644 "$srcdir"/sshd.confd "$pkgdir"/etc/conf.d/sshd
}
+
+client() {
+ pkgdesc="OpenBSD's SSH client"
+ replaces="openssh"
+ install -d "$subpkgdir"/usr/bin \
+ "$subpkgdir"/usr/lib/ssh \
+ "$subpkgdir"/etc/ssh \
+ "$subpkgdir"/var/run \
+ "$subpkgdir"/var/empty
+
+ mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/lib/ssh/ssh-keysign "$subpkgdir"/usr/lib/ssh/
+ mv "$pkgdir"/etc/ssh/ssh_config "$pkgdir"/etc/ssh/moduli \
+ "$subpkgdir"/etc/ssh/
+}
+
md5sums="ada79c7328a8551bdf55c95e631e7dad openssh-5.2p1.tar.gz
f71564ffab359faead63717920c3086b sshd.initd
b35e9f3829f4cfca07168fcba98749c7 sshd.confd"