summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9be01cfc53447bf96559e53c976362f3cf97a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pkgname=natbypassd
pkgver=1.1
pkgrel=1
pkgdesc="NAT bypass by reverse SSH tunnel"
arch=("any")
url="https://gitlab.com/scpketer/natbypassd"
license=("GPL3")
depends=("bash" "autossh" "systemd")
makedepends=("git")
source=("git+https://gitlab.com/scpketer/natbypassd.git#tag=v1.1")
backup=("etc/natbypassd.d/relays.conf" "etc/natbypassd.d/routes.conf")
sha256sums=("SKIP")

package() {
    cd "${pkgname}"
    install -Dm755 "${pkgname}" -t "${pkgdir}/usr/bin"
    install -Dm644 "conf/"{relays.conf,routes.conf} -t "${pkgdir}/etc/natbypassd.d"
    install -Dm644 "systemd/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system"
}