summaryrefslogtreecommitdiff
path: root/community/arpwatch/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/arpwatch/PKGBUILD')
-rw-r--r--community/arpwatch/PKGBUILD57
1 files changed, 38 insertions, 19 deletions
diff --git a/community/arpwatch/PKGBUILD b/community/arpwatch/PKGBUILD
index 1a81aae7d..79f4bd51d 100644
--- a/community/arpwatch/PKGBUILD
+++ b/community/arpwatch/PKGBUILD
@@ -1,29 +1,48 @@
-# $Id: PKGBUILD 65045 2012-02-20 02:17:24Z spupykin $
+# $Id: PKGBUILD 87787 2013-04-06 15:38:17Z seblu $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sébastien Luttringer
pkgname=arpwatch
pkgver=2.1a15
-pkgrel=8
-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
+pkgrel=10
+pkgdesc='Ethernet/FDDI station activity monitor'
+arch=('i686' 'x86_64')
+url='ftp://ftp.ee.lbl.gov/'
+license=('BSD')
+depends=('libpcap' 'smtp-forwarder')
+source=("ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz"
+ 'LICENSE'
+ "$pkgname.service")
+md5sums=('cebfeb99c4a7c2a6cee2564770415fe7'
+ '9359518c500562281e76cdb0b2fa9062'
+ '2324a202222303daa1a41d8abd7a7e4a')
+prepare() {
+ cd $pkgname-$pkgver
+ # move arp database in /var/lib/arpwatch
sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
+ # binary ownership to root
+ sed -i 's/-\(o\|g\) bin/-\1 root/g' Makefile.in
+}
- ./configure --prefix=/usr
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man
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
}
+
+package() {
+ cd $pkgname-$pkgver
+ install -d -m 0755 "$pkgdir"/usr/{sbin,share/man}
+ make DESTDIR="$pkgdir" install install-man
+ # install ether prefix database
+ install -Dm644 ethercodes.dat "$pkgdir/var/lib/$pkgname/ethercodes.dat"
+ cd "$srcdir"
+ # license
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ # systemd
+ install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname@.service"
+}
+
+# vim:set ts=2 sw=2 et: