summaryrefslogtreecommitdiff
path: root/community/ipguard/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/ipguard/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/ipguard/PKGBUILD')
-rw-r--r--community/ipguard/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/ipguard/PKGBUILD b/community/ipguard/PKGBUILD
new file mode 100644
index 000000000..691be3d32
--- /dev/null
+++ b/community/ipguard/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 91832 2013-05-28 17:04:05Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=ipguard
+pkgver=1.04
+pkgrel=3
+pkgdesc="ipguard - arp<->ip relation checking tool"
+arch=(i686 x86_64)
+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')
+
+prepare() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np1 <../build-fix-le.patch
+ sed -i 's|$(PREFIX)/sbin|$(PREFIX)/bin|g' Makefile
+}
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ CFLAGS="-DLIBNET_LIL_ENDIAN" make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make PREFIX=$pkgdir/usr install
+ mkdir -p $pkgdir/usr/share
+ mv $pkgdir/usr/man $pkgdir/usr/share/
+}