summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6beba0a779dc4200c177be5e50da3976400368cf (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
# Maintainer: ookami <mail@ookami.one>
pkgname=proxy-ns
pkgver=1.0.7
pkgrel=5
pkgdesc="Run programs in a network namespace where all traffic go through proxy"
arch=('x86_64')
url="https://git.ookami.one/cgit/proxy-ns"
license=('GPL')
depends=('bash' 'glibc' 'libcap' 'iproute2' 'badvpn-git')
makedepends=('make')
source=("git+$url")
sha512sums=('SKIP')
backup=(
    etc/proxy-nsd.conf
)

build() {
    cd "$srcdir/$pkgname"
    make
}

package() {
    cd "$srcdir/$pkgname"
    make DESTDIR="$pkgdir" PREFIX=/usr install
    setcap cap_sys_admin=ep $pkgdir/usr/bin/proxy-ns
}