summaryrefslogtreecommitdiff
path: root/community/arpwatch/PKGBUILD
blob: fd01fb64e0fd5a5497a7bd92ac7c4bc9adb2321d (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
29
# $Id: PKGBUILD 44377 2011-04-06 19:43:49Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=arpwatch
pkgver=2.1a15
pkgrel=7
pkgdesc="arpwatch and arpsnmp network monitoring tools"
arch=(i686 x86_64)
url="ftp://ftp.ee.lbl.gov/"
license=("GPL")
depends=(libpcap)
source=(ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz)
md5sums=('cebfeb99c4a7c2a6cee2564770415fe7')

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

  sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in

  ./configure --prefix=/usr
  make SENDMAIL=/usr/sbin/sendmail
  install -d -m 0755 $pkgdir/usr/sbin
  make DESTDIR=$pkgdir install
  install -D -m 0644 arpwatch.8 $pkgdir/usr/share/man/man8/arpwatch.8
  install -D -m 0644 arpsnmp.8 $pkgdir/usr/share/man/man8/arpsnmp.8
  install -d -m 0755 $pkgdir/var/lib/arpwatch
  touch $pkgdir/var/lib/arpwatch/arp.dat
}