Merge pull request #3506 from thypon/arpwatch

New package: arpwatch-2.1a15
This commit is contained in:
Juan RP 2016-02-01 16:36:56 +01:00
commit eafccc441e
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,18 @@
Copyright (c) 1992, 1993, 1994, 1995, 1996, 1998, 2000
The Regents of the University of California. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that: (1) source code distributions
retain the above copyright notice and this paragraph in its entirety, (2)
distributions including binary code include the above copyright notice and
this paragraph in its entirety in the documentation or other materials
provided with the distribution, and (3) all advertising materials mentioning
features or use of this software display the following acknowledgement:
``This product includes software developed by the University of California,
Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
the University nor the names of its contributors may be used to endorse
or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

29
srcpkgs/arpwatch/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'arpwatch'
pkgname=arpwatch
version=2.1a15
revision=1
build_style=gnu-configure
makedepends="libpcap-devel"
short_desc="Ethernet/FDDI station activity monitor"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="BSD"
homepage="ftp://ftp.ee.lbl.gov"
distfiles="ftp://ftp.ee.lbl.gov/$pkgname-$version.tar.gz"
checksum=c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898
make_install_target="install install-man"
pre_configure() {
# move arp database in /var/lib/arpwatch
# /var is used because arpwatch write its learned mac into this folder
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
# Do not spam root user
sed -i 's|root|arpwatch|' addresses.h.in
}
pre_install() {
install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
vlicense $FILESDIR/LICENSE
}