2006-11-20 07:26:53 +10:00
|
|
|
# Description: Monitors MAC Adresses on your network.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://ee.lbl.gov/
|
2008-03-05 23:38:56 +01:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2007-01-20 12:21:06 +10:00
|
|
|
# Packager: James Mills, prologic at shortcircuit dot net dot au
|
2006-11-20 07:26:53 +10:00
|
|
|
# Depends on: libpcap
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
name=arpwatch
|
2020-07-01 13:40:50 +00:00
|
|
|
version=3.1
|
2006-11-14 09:01:22 +10:00
|
|
|
release=1
|
2020-07-01 13:40:50 +00:00
|
|
|
source=(https://ee.lbl.gov/downloads/$name/$name-$version.tar.gz)
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
build() {
|
2020-05-25 15:39:11 +00:00
|
|
|
cd $name-$version
|
2017-08-21 00:09:39 +02:00
|
|
|
|
2020-05-25 15:39:11 +00:00
|
|
|
# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/arpwatch
|
|
|
|
sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
|
|
|
|
sed -i 's/-\(o\|g\) bin/-\1 root/g' Makefile.in
|
2017-08-21 00:09:39 +02:00
|
|
|
|
2020-05-25 15:39:11 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--mandir=/usr/share/man
|
2017-08-21 00:09:39 +02:00
|
|
|
|
2020-07-01 13:40:50 +00:00
|
|
|
install -d $PKG/usr/{bin,share/man/man8,sbin,etc/rc.d}
|
2020-05-25 15:39:11 +00:00
|
|
|
|
|
|
|
# prepend DESTDIR to some paths
|
|
|
|
#sed -i '123,126{s/\$(/$(DESTDIR)$(/2}' Makefile
|
|
|
|
make SENDMAIL=/usr/bin/sendmail
|
|
|
|
make DESTDIR=$PKG install
|
2020-07-01 13:40:50 +00:00
|
|
|
rm -r $PKG/usr/etc
|
2006-11-14 09:01:22 +10:00
|
|
|
}
|