updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lltdscan-git / PKGBUILD
blob91c0e0c4e097270a7c5a131c47b57467413f7d76
2 # <fedor@yu.wildpark.net>
4 pkgname=lltdscan-git
5 pkgver=20100124
6 pkgrel=1
7 pkgdesc="Scan for LLTD-enabled hosts on your network"
8 url="http://github.com/zed-0xff/lltdscan"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 depends=('pcap' 'libnet')
12 makedepends=('git')
13 provides=('lltdscan')
15 _gitroot="git://github.com/zed-0xff/lltdscan.git"
16 _gitname="lltdscan"
18 build() {
19     cd ${srcdir}
21     msg "Connecting to the git repository..."
22     if [ -d ${srcdir}/${_gitname} ]; then
23         cd ${_gitname}
24         git pull origin
25     else
26         git clone --depth 1 ${_gitroot}
27     fi
28     msg "GIT checkout done or server timeout"
30     rm -rf ${srcdir}/${_gitname}-build
31     cp -r  ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
32     cd ${srcdir}/${_gitname}-build
34     msg "Starting make..."
35     make || return 1
36     install -m 755 -D lltdscan $pkgdir/usr/sbin/lltdscan
37     gzip lltdscan.8
38     install -m 644 -D lltdscan.8.gz $pkgdir/usr/man/man8/lltdscan.8.gz