summaryrefslogtreecommitdiff
path: root/community/ipguard/PKGBUILD
blob: d7c7998169306f1f76f3b98b3ab6a9df5b1d6e88 (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
# $Id: PKGBUILD 65572 2012-02-21 09:01:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=ipguard
pkgver=1.04
pkgrel=2
pkgdesc="ipguard - arp<->ip relation checking tool"
arch=(i686 x86_64 'mips64el')
url="http://ipguard.deep.perm.ru/"
license=("GPL")
depends=(libpcap libnet)
source=(http://ipguard.deep.perm.ru/files/$pkgname-$pkgver.tar.gz
	build-fix-le.patch)
md5sums=('7f44f7c31876f0d68792f02047e25409'
         'b27cfc9e8ad4ef9459d7274a2e624831')

build() {
  cd $srcdir/$pkgname-$pkgver

  patch -Np1 <../build-fix-le.patch

  CFLAGS="-DLIBNET_LIL_ENDIAN" make
  make PREFIX=$pkgdir/usr install

  mkdir -p $pkgdir/usr/share
  mv $pkgdir/usr/man $pkgdir/usr/share/
}