1 # Maintainer: Emmanuel Gras <gras.emmanuel@gmail.com>
5 pkgdesc="A simple network-to-pcap capture file for Linux. Its goal is to be as simple as possible to be used in hostile environments"
7 url="https://github.com/nbareil/net2pcap"
14 _gitroot=https://github.com/nbareil/net2pcap
19 msg "Connecting to GIT server...."
21 if [[ -d "$_gitname" ]]; then
22 cd "$_gitname" && git pull origin
23 msg "The local files are updated."
25 git clone "$_gitroot" "$_gitname"
28 msg "GIT checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
40 install -D -m 755 net2pcap $pkgdir/usr/bin/net2pcap
43 # vim:set ts=2 sw=2 et: