parent
53bd53ad20
commit
f89fa127ea
@ -1,18 +0,0 @@
|
|||||||
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.
|
|
11
srcpkgs/arpwatch/patches/missing-time_h.patch
Normal file
11
srcpkgs/arpwatch/patches/missing-time_h.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/report.c
|
||||||
|
+++ b/report.c
|
||||||
|
@@ -33,7 +33,7 @@
|
||||||
|
/*
|
||||||
|
* report - arpwatch report generating routines
|
||||||
|
*/
|
||||||
|
-
|
||||||
|
+#include <time.h>
|
||||||
|
#include <sys/param.h>
|
||||||
|
#include <sys/types.h> /* concession to AIX */
|
||||||
|
#include <sys/socket.h>
|
15
srcpkgs/arpwatch/patches/no_getshort.patch
Normal file
15
srcpkgs/arpwatch/patches/no_getshort.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- a/dns.c
|
||||||
|
+++ b/dns.c
|
||||||
|
@@ -115,10 +115,10 @@ gethinfo(char *hostname, char *cpu, int cpulen, char *os, int oslen)
|
||||||
|
(u_char *)cp, (char *)bp, buflen)) < 0)
|
||||||
|
break;
|
||||||
|
cp += n;
|
||||||
|
- type = _getshort(cp);
|
||||||
|
+ type = ns_get16(cp);
|
||||||
|
cp += sizeof(u_short); /* class */
|
||||||
|
cp += sizeof(u_short) + sizeof(u_int32_t);
|
||||||
|
- n = _getshort(cp);
|
||||||
|
+ n = ns_get16(cp);
|
||||||
|
cp += sizeof(u_short);
|
||||||
|
if (type == T_HINFO) {
|
||||||
|
/* Unpack */
|
@ -1,32 +1,22 @@
|
|||||||
# Template file for 'arpwatch'
|
# Template file for 'arpwatch'
|
||||||
pkgname=arpwatch
|
pkgname=arpwatch
|
||||||
version=2.1a15
|
version=3.6
|
||||||
revision=3
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
configure_args="--with-sendmail=/usr/bin/sendmail"
|
||||||
makedepends="libpcap-devel"
|
makedepends="libpcap-devel"
|
||||||
short_desc="Ethernet/FDDI station activity monitor"
|
short_desc="Ethernet/FDDI station activity monitor"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="BSD-3-Clause-LBNL"
|
license="BSD-3-Clause-LBNL"
|
||||||
homepage="ftp://ftp.ee.lbl.gov"
|
homepage="https://ee.lbl.gov/"
|
||||||
distfiles="ftp://ftp.ee.lbl.gov/$pkgname-$version.tar.gz"
|
distfiles="https://ee.lbl.gov/downloads/arpwatch/arpwatch-${version}.tar.gz"
|
||||||
distfiles="${DEBIAN_SITE}/main/a/arpwatch/arpwatch_${version}.orig.tar.gz>$pkgname-$version.tar.gz"
|
checksum=f86529fe57fdb5a2ff5413bc13c245063f99b3bf742421fd3133272175be8156
|
||||||
checksum=c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898
|
|
||||||
|
|
||||||
make_install_target="install install-man"
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# PIE support
|
vsed -i '/@HAVE_FREEBSD_TRUE@/d' Makefile.in
|
||||||
export CFLAGS="$CFLAGS $LDFLAGS"
|
|
||||||
# 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() {
|
pre_install() {
|
||||||
install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
|
install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
|
||||||
vlicense $FILESDIR/LICENSE
|
sed -n '1,27p' arpwatch.c > LICENSE && vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user