# Contributor: wener # Maintainer: wener pkgname=frp pkgver=0.50.0 pkgrel=2 pkgdesc="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet." url="https://github.com/fatedier/frp" arch="all" license="Apache-2.0" makedepends="go" subpackages="$pkgname-openrc" source="https://github.com/fatedier/frp/archive/v$pkgver/frp-$pkgver.tar.gz frpc.initd frpc.confd frps.initd frps.confd " export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make build } check() { make test } package() { install -Dm755 bin/frpc "$pkgdir"/usr/bin/frpc install -Dm755 bin/frps "$pkgdir"/usr/bin/frps install -Dm644 conf/frpc.ini "$pkgdir"/etc/frp/frpc.ini install -Dm644 conf/frps.ini "$pkgdir"/etc/frp/frps.ini install -m755 -D "$srcdir"/frpc.initd "$pkgdir"/etc/init.d/frpc install -m644 -D "$srcdir"/frpc.confd "$pkgdir"/etc/conf.d/frpc install -m755 -D "$srcdir"/frps.initd "$pkgdir"/etc/init.d/frps install -m644 -D "$srcdir"/frps.confd "$pkgdir"/etc/conf.d/frps } sha512sums=" 1fded8f8c0420c0bd20141fb24ebf720bb48ef23b81a8e1137f749995fa0dbf0e9d062791d038d09173a8415b408d964721a5cbbde45c39ecd7382bd68e429a3 frp-0.50.0.tar.gz 63468c7a644764f7733c3626636ff60494c65314660afdbbf2db70ee02e75ab3c4ad27e683053d783464cf85d7c85eb15d35e0c7b846be3dba994918e1ae9498 frpc.initd ec6298b39a3804deee2e97b879f00c65f6cc6891e969fec7f8440decbba75451e97b54a8f8325b36ea2e5cff9a5d43f2cbdd994dcff5df91e45e13269133d4de frpc.confd afd7c823050fb423a92d0e2ef4ffce489ccd8bf59d775d9b94d66cf5109a37f5aee251f65b44bc1da6fee5b3006dfe86ab5408df02037f635905cf0bdebd118c frps.initd ec6298b39a3804deee2e97b879f00c65f6cc6891e969fec7f8440decbba75451e97b54a8f8325b36ea2e5cff9a5d43f2cbdd994dcff5df91e45e13269133d4de frps.confd "