summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3c5c809dbc5b0627a4b1e2ff5e2ba6f519091f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Vimsucks <dev@vimsucks.com>

pkgname=frp
pkgver=0.16.1
pkgrel=1
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"
source=(frps.service frpc.service frps@.service frpc@.service "https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
arch=('x86_64')
md5sums=('6f9c6681357f3f984983457151d7f0c5'
         'd704eacd9f769de32c8ab2c875d9f34a'
         '50364b050ca08f47b7afe305f528eaa2'
         'aa40573c08f791bfd73900f95bc136ce'
         '2715de9dac4a2da4817de9dd285ca600')
install=$pkgname.install

package() {
    frpdir=$srcdir/frp_${pkgver}_linux_amd64
    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

    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
}