updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / dhcdrop-svn / PKGBUILD
blob0a8972782ec701ede4f0b47e17fc33e07eae1332
1 # Contributor: Lex Rivera <x-demon@x-demon.org>
2 pkgname=dhcdrop-svn
3 pkgver=116
4 pkgrel=1
5 pkgdesc="Remove illegal dhcp servers with IP-pool underflow. SVN version."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/madwimax/"
8 license=('GPL2')
9 depends=('libpcap')
10 makedepends=('subversion')
11 provides=('dhcdrop')
12    
13  _svnmod="dhcdrop"
14  _svntrunk="https://svn.codenet.ru/netpatch/dhcdrop/trunk"
16  build() {
17   cd ${srcdir}
18   
19   if [ -d $_svnmod/.svn ]; then
20     (cd $_svnmod && svn up -r $pkgver)
21   else
22     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23   fi
24   
25   
26   msg "SVN checkout done or server timeout"
27   msg "Starting make..."
28   
29   cp -r ./$_svnmod ./$_svnmod-build
30   cd ./$_svnmod-build
32   autoreconf --install
33   ./configure --prefix=/usr
34   make || return 1
35   make DESTDIR=$pkgdir install || return 1
38 # vim:syntax=sh