Advertisement
muhviehstarr

PKGBUILD

Jan 31st, 2018
484
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
  2. # Please report issues at https://github.com/jojosch/pkgbuilds
  3.  
  4. pkgname='testssl.sh-git'
  5. pkgver=v2.4.r2097.g7585ab6
  6. pkgrel=2
  7. pkgdesc="Testing TLS/SSL encryption (git version)"
  8. arch=('any')
  9. url="https://github.com/drwetter/testssl.sh"
  10. license=("GPL")
  11. depends=('bash' 'coreutils' 'util-linux' 'openssl')
  12. makedepends=('git')
  13. conflicts=('testssl.sh')
  14. provides=('testssl.sh')
  15. source=("${pkgname}::git+https://github.com/drwetter/${pkgname/-git/}.git"
  16. "bashrc.sh")
  17. install=testssl.sh-git.install
  18. sha256sums=('SKIP'
  19. '4c546c59f782524c13095b6c9beac2f8176e9fbb76cecb3cd1b6f47d46ca3d4e')
  20.  
  21. pkgver () {
  22. cd "${srcdir}/${pkgname}"
  23. git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  24. }
  25.  
  26. package() {
  27. cd "${srcdir}/${pkgname}"
  28.  
  29. install -D -m755 "testssl.sh" "${pkgdir}/usr/bin/testssl.sh"
  30. install -d -m755 "etc" "${pkgdir}/etc/testssl.sh"
  31. install -D -m755 "etc/Apple.pem" "${pkgdir}/etc/testssl.sh/Apple.pem"
  32. install -D -m755 "etc/ca_hashes.txt" "${pkgdir}/etc/testssl.sh/ca_hashes.txt"
  33. install -D -m755 "etc/cipher-mapping.txt" "${pkgdir}/etc/testssl.sh/cipher-mapping.txt"
  34. install -D -m755 "etc/client_simulation.txt" "${pkgdir}/etc/testssl.sh/client_simulation.txt"
  35. install -D -m755 "etc/common-primes.txt" "${pkgdir}/etc/testssl.sh/common-primes.txt"
  36. install -D -m755 "etc/curves.txt" "${pkgdir}/etc/testssl.sh/curves.txt"
  37. install -D -m755 "etc/Linux.pem" "${pkgdir}/etc/testssl.sh/Linux.pem"
  38. install -D -m755 "etc/Microsoft.pem" "${pkgdir}/etc/testssl.sh/Microsoft.pem"
  39. install -D -m755 "etc/Mozilla.pem" "${pkgdir}/etc/testssl.sh/Mozilla.pem"
  40. install -D -m755 "etc/tls_data.txt" "${pkgdir}/etc/testssl.sh/tls_data.txt"
  41. install -D -m755 "${srcdir}/bashrc.sh" "${pkgdir}/etc/testssl.sh/bashrc.sh"
  42. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement