updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / n2n-svn / PKGBUILD
blobd9351473c9d3fab5303fae79c54dc3b7ce4423d9
1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=n2n-svn
3 pkgver=4591
4 pkgrel=3
5 pkgdesc='n2n is a layer-two peer-to-peer virtual private network (VPN) which allows users to exploit features typical of P2P applications at network instead of application level.'
6 arch=('i686' 'x86_64')
7 url="http://www.ntop.org/products/n2n/"
8 license=('GPL3')
9 depends=('uml_utilities')
10 makedepends=('subversion')
11 provides=('n2n')
12 conflicts=('n2n')
13 install="n2n.install"
15 _svntrunk=https://svn.ntop.org/svn/ntop/trunk/n2n
16 _svnmod=n2n
18 build() {
19   cd "$srcdir"
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_svnmod-build"
31   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32   cd "$srcdir/$_svnmod-build/n2n_v2"
34   #
35   # BUILD
36   #
38   make
41 package() {
42   cd "$srcdir/$_svnmod-build/n2n_v2"
43   make PREFIX="$pkgdir/usr/" install