PKGBUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer: Juanjo Gutiérrez <juanjo@gutierrezdequevedo.com>
  2. pkgname=oldssh
  3. _sshpkgname=openssh
  4. _sshpkgver=7.5p1
  5. _sslpkgname=openssl
  6. _sslpkgver=1.0.2u
  7. pkgver=1.0
  8. pkgrel=1
  9. pkgdesc="openssh's SSH client version 7.5p1, last one to support SSH v1"
  10. arch=('x86_64' 'aarch64')
  11. url="http://www.openssh.com"
  12. license=('BSD')
  13. groups=()
  14. depends=('openssl' 'openssh')
  15. source=("https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz"
  16. "https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz")
  17. md5sums=('652fdc7d8392f112bef11cacf7e69e23'
  18. 'cdc2638f789ecc2db2c91488265686c1')
  19. build() {
  20. # build openssl
  21. cd "$srcdir/${_sslpkgname}-${_sslpkgver}"
  22. ./config --prefix=/usr
  23. make build_libcrypto
  24. cd "$srcdir/${_sshpkgname}-${_sshpkgver}"
  25. ./configure --prefix=/usr --with-ssh1 --with-ssl-dir="$srcdir/${_sslpkgname}-${_sslpkgver}/"
  26. # make link to libcrypto static
  27. sed -i -e "s#-lcrypto#$srcdir/${_sslpkgname}-${_sslpkgver}/libcrypto.a#g" Makefile
  28. # make the ssh client use a different directory than openssh
  29. sed -i -e "s#\".ssh\"#\".oldssh\"#g" pathnames.h
  30. make ssh sftp scp
  31. }
  32. package() {
  33. cd "${_sshpkgname}-${_sshpkgver}"
  34. install -m 755 -d "$pkgdir"/usr/bin
  35. install -m 755 ssh "$pkgdir"/usr/bin/oldssh
  36. install -m 755 sftp "$pkgdir"/usr/bin/oldsftp
  37. install -m 755 scp "$pkgdir"/usr/bin/oldscp
  38. }