summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05e20e8f846de85020b7e95c91877f9b9bd29303 (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
# Maintainer: D. Murphy (archerdm)

pkgname=netns-exec
pkgver=r4.aa346fd
pkgrel=1
pkgdesc="SetUID program which allows users to run applications in a network namespace."
arch=('x86_64')
url="https://github.com/pekman/netns-exec"
license=('GPL2')
depends=('glibc')
source=("git+https://github.com/pekman/netns-exec.git"
        "git+https://git.kernel.org/pub/scm/network/iproute2/iproute2.git")
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$pkgname"
  rmdir iproute2 && ln -s ../iproute2 ./
  make
}

package() {
  mkdir -p $pkgdir/usr/bin
  install -Dm4755 $srcdir/$pkgname/netns-exec $pkgdir/usr/bin/
  install -Dm755 $srcdir/$pkgname/netns-exec-dbus $pkgdir/usr/bin/
}