From 9be609fad0d5612968a6c9805dd6ee79b7571c6b Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 1 Feb 2016 16:09:42 +0100 Subject: [PATCH] New package: arpwatch-2.1a15 close #2796 --- srcpkgs/arpwatch/files/LICENSE | 18 ++++++++++++++++++ srcpkgs/arpwatch/template | 29 +++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 srcpkgs/arpwatch/files/LICENSE create mode 100644 srcpkgs/arpwatch/template diff --git a/srcpkgs/arpwatch/files/LICENSE b/srcpkgs/arpwatch/files/LICENSE new file mode 100644 index 0000000000..be49954d95 --- /dev/null +++ b/srcpkgs/arpwatch/files/LICENSE @@ -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. diff --git a/srcpkgs/arpwatch/template b/srcpkgs/arpwatch/template new file mode 100644 index 0000000000..38a3e9208f --- /dev/null +++ b/srcpkgs/arpwatch/template @@ -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 " +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 +}