summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVimsucks2018-11-03 14:19:47 +0800
committerVimsucks2018-11-03 14:19:47 +0800
commite499f6ce44005d4171ed4ca868df5bb51ac314fa (patch)
treeda3e26580df8d537c6705efb3f949c087b631ca5
parent5b3c5456973ce24a14566e6cfc2ec890a5221c8c (diff)
downloadaur-e499f6ce44005d4171ed4ca868df5bb51ac314fa.tar.gz
merge PKGBUILD from @raidenii
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD60
2 files changed, 46 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eccf7c3b309..ece3ce03ef9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,15 @@
pkgbase = frp
pkgdesc = A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
pkgver = 0.21.0
- pkgrel = 1
+ pkgrel = 3
url = https://github.com/fatedier/frp
install = frp.install
arch = x86_64
arch = i686
arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
license = Apache
backup = etc/frp/frpc.ini
backup = etc/frp/frps.ini
@@ -26,6 +29,12 @@ pkgbase = frp
md5sums_i686 = ecba717f8c73ef6f47dfc673f92fd08b
source_arm = https://github.com/fatedier/frp/releases/download/v0.21.0/frp_0.21.0_linux_arm.tar.gz
md5sums_arm = 0e64a76e753fb62ac08093a117c81c50
+ source_armv6h = https://github.com/fatedier/frp/releases/download/v0.21.0/frp_0.21.0_linux_arm.tar.gz
+ md5sums_armv6h = 0e64a76e753fb62ac08093a117c81c50
+ source_armv7h = https://github.com/fatedier/frp/releases/download/v0.21.0/frp_0.21.0_linux_arm.tar.gz
+ md5sums_armv7h = 0e64a76e753fb62ac08093a117c81c50
+ source_aarch64 = https://github.com/fatedier/frp/releases/download/v0.21.0/frp_0.21.0_linux_arm64.tar.gz
+ md5sums_aarch64 = 99b83bf190b9b35336f94fbaa954c8ad
pkgname = frp
diff --git a/PKGBUILD b/PKGBUILD
index 1b254c207f4..768c1caa51d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,18 @@
pkgname=frp
pkgver=0.21.0
-pkgrel=2
+pkgrel=3
pkgdesc="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet."
license=('Apache')
url="https://github.com/fatedier/frp"
-arch=('x86_64' 'i686' 'arm')
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
source=(frps.service frpc.service frps@.service frpc@.service)
source_x86_64=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
source_i686=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_386.tar.gz")
source_arm=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
+source_armv6h=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
+source_armv7h=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
+source_aarch64=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm64.tar.gz")
md5sums=('6f9c6681357f3f984983457151d7f0c5'
'e3bfa7c428433fa6cbb5aa64515d8899'
'346fabd46c12c039e39a26986629bc6d'
@@ -18,34 +21,43 @@ md5sums=('6f9c6681357f3f984983457151d7f0c5'
md5sums_x86_64=('396e4452e4550a74e9dff96942a8527f')
md5sums_i686=('ecba717f8c73ef6f47dfc673f92fd08b')
md5sums_arm=('0e64a76e753fb62ac08093a117c81c50')
+md5sums_armv6h=('0e64a76e753fb62ac08093a117c81c50')
+md5sums_armv7h=('0e64a76e753fb62ac08093a117c81c50')
+md5sums_aarch64=('99b83bf190b9b35336f94fbaa954c8ad')
install=$pkgname.install
backup=(etc/frp/{frpc.ini,frps.ini,frpc_full.ini,frps_full.ini})
package() {
- case $CARCH in
- x86_64)ARCH=amd64
- ;;
- i686)ARCH=386
- ;;
- arm)ARCH=arm
- ;;
- esac
- frpdir=$srcdir/frp_${pkgver}_linux_${ARCH}
+ case $CARCH in
+ x86_64)ARCH=amd64
+ ;;
+ i686)ARCH=386
+ ;;
+ arm)ARCH=arm
+ ;;
+ armv6h)ARCH=arm
+ ;;
+ armv7h)ARCH=arm
+ ;;
+ aarch64)ARCH=arm64
+ ;;
+ esac
+ frpdir=$srcdir/frp_${pkgver}_linux_${ARCH}
- mkdir -p $pkgdir/usr/bin
- install -m755 $frpdir/frpc $pkgdir/usr/bin/frpc
- install -m755 $frpdir/frps $pkgdir/usr/bin/frps
+ mkdir -p $pkgdir/usr/bin
+ install -m755 $frpdir/frpc $pkgdir/usr/bin/frpc
+ install -m755 $frpdir/frps $pkgdir/usr/bin/frps
- mkdir -p $pkgdir/etc/frp
- install -Dm644 $frpdir/frpc.ini $pkgdir/etc/frp/frpc.ini
- install -Dm644 $frpdir/frpc_full.ini $pkgdir/etc/frp/frpc_full.ini
- install -Dm644 $frpdir/frps.ini $pkgdir/etc/frp/frps.ini
- install -Dm644 $frpdir/frps_full.ini $pkgdir/etc/frp/frps_full.ini
+ mkdir -p $pkgdir/etc/frp
+ install -Dm644 $frpdir/frpc.ini $pkgdir/etc/frp/frpc.ini
+ install -Dm644 $frpdir/frpc_full.ini $pkgdir/etc/frp/frpc_full.ini
+ install -Dm644 $frpdir/frps.ini $pkgdir/etc/frp/frps.ini
+ install -Dm644 $frpdir/frps_full.ini $pkgdir/etc/frp/frps_full.ini
- install -Dm644 $frpdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 $frpdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
- install -Dm644 frps.service $pkgdir/usr/lib/systemd/system/frps.service
- install -Dm644 frpc.service $pkgdir/usr/lib/systemd/system/frpc.service
- install -Dm644 frps@.service $pkgdir/usr/lib/systemd/system/frps@.service
- install -Dm644 frpc@.service $pkgdir/usr/lib/systemd/system/frpc@.service
+ install -Dm644 frps.service $pkgdir/usr/lib/systemd/system/frps.service
+ install -Dm644 frpc.service $pkgdir/usr/lib/systemd/system/frpc.service
+ install -Dm644 frps@.service $pkgdir/usr/lib/systemd/system/frps@.service
+ install -Dm644 frpc@.service $pkgdir/usr/lib/systemd/system/frpc@.service
}