Advertisement
Guest User

Untitled

a guest
Oct 31st, 2018
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. # Maintainer: Vimsucks <dev@vimsucks.com>
  2.  
  3. pkgname=frp
  4. pkgver=0.21.0
  5. pkgrel=3
  6. pkgdesc="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet."
  7. license=('Apache')
  8. url="https://github.com/fatedier/frp"
  9. arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
  10. source=(frps.service frpc.service frps@.service frpc@.service)
  11. source_x86_64=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
  12. source_i686=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_386.tar.gz")
  13. source_arm=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
  14. source_armv6h=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
  15. source_armv7h=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
  16. source_aarch64=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm64.tar.gz")
  17. md5sums=('6f9c6681357f3f984983457151d7f0c5'
  18. 'e3bfa7c428433fa6cbb5aa64515d8899'
  19. '346fabd46c12c039e39a26986629bc6d'
  20. 'dd170d972b1ea8c681bde054dbebf888')
  21. md5sums_x86_64=('396e4452e4550a74e9dff96942a8527f')
  22. md5sums_i686=('ecba717f8c73ef6f47dfc673f92fd08b')
  23. md5sums_arm=('0e64a76e753fb62ac08093a117c81c50')
  24. md5sums_armv6h=('0e64a76e753fb62ac08093a117c81c50')
  25. md5sums_armv7h=('0e64a76e753fb62ac08093a117c81c50')
  26. md5sums_aarch64=('99b83bf190b9b35336f94fbaa954c8ad')
  27. install=$pkgname.install
  28. backup=(etc/frp/{frpc.ini,frps.ini,frpc_full.ini,frps_full.ini})
  29.  
  30. package() {
  31. case $CARCH in
  32. x86_64)ARCH=amd64
  33. ;;
  34. i686)ARCH=386
  35. ;;
  36. arm)ARCH=arm
  37. ;;
  38. armv6h)ARCH=arm
  39. ;;
  40. armv7h)ARCH=arm
  41. ;;
  42. aarch64)ARCH=arm64
  43. ;;
  44. esac
  45. frpdir=$srcdir/frp_${pkgver}_linux_${ARCH}
  46.  
  47. mkdir -p $pkgdir/usr/bin
  48. install -m755 $frpdir/frpc $pkgdir/usr/bin/frpc
  49. install -m755 $frpdir/frps $pkgdir/usr/bin/frps
  50.  
  51. mkdir -p $pkgdir/etc/frp
  52. install -Dm644 $frpdir/frpc.ini $pkgdir/etc/frp/frpc.ini
  53. install -Dm644 $frpdir/frpc_full.ini $pkgdir/etc/frp/frpc_full.ini
  54. install -Dm644 $frpdir/frps.ini $pkgdir/etc/frp/frps.ini
  55. install -Dm644 $frpdir/frps_full.ini $pkgdir/etc/frp/frps_full.ini
  56.  
  57. install -Dm644 $frpdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  58.  
  59. install -Dm644 frps.service $pkgdir/usr/lib/systemd/system/frps.service
  60. install -Dm644 frpc.service $pkgdir/usr/lib/systemd/system/frpc.service
  61. install -Dm644 frps@.service $pkgdir/usr/lib/systemd/system/frps@.service
  62. install -Dm644 frpc@.service $pkgdir/usr/lib/systemd/system/frpc@.service
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement