Index: head/net-mgmt/arpalert/Makefile =================================================================== --- head/net-mgmt/arpalert/Makefile (revision 430409) +++ head/net-mgmt/arpalert/Makefile (revision 430410) @@ -1,16 +1,19 @@ # Created by: Yen-Ming Lee # $FreeBSD$ PORTNAME= arpalert PORTVERSION= 2.0.12 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://www.arpalert.org/src/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= hrs@FreeBSD.org COMMENT= ARP traffic monitoring + +LICENSE= GPLv2 GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var ALL_TARGET= ${PORTNAME} .include Index: head/net-mgmt/arpalert/files/patch-arpalert.c =================================================================== --- head/net-mgmt/arpalert/files/patch-arpalert.c (revision 430409) +++ head/net-mgmt/arpalert/files/patch-arpalert.c (revision 430410) @@ -1,30 +1,28 @@ ---- arpalert.c.orig 2008-04-01 03:36:42.000000000 +0900 -+++ arpalert.c 2009-10-21 19:45:53.000000000 +0900 -@@ -179,6 +179,12 @@ +--- arpalert.c.orig 2011-11-08 19:36:51 UTC ++++ arpalert.c +@@ -179,6 +179,12 @@ int main(int argc, char **argv){ if(cur_timeout.tv_sec != -1){ time_sous(&cur_timeout, ¤t_t, &timeout); + if (0 > timeout.tv_usec) { + /* avoid EINVAL (paranoid) */ + timeout.tv_sec -= (timeout.tv_usec / 1000000) + 1; + timeout.tv_usec = (timeout.tv_usec % 1000000) + 1000000; + } + // prevent negative timeout if(timeout.tv_sec < 0){ timeout.tv_usec = 0; -@@ -188,6 +194,12 @@ +@@ -188,6 +194,12 @@ int main(int argc, char **argv){ timeout.tv_usec += 10000; tmout = &timeout; + if (1000000 <= timeout.tv_usec) { + /* avoid EINVAL */ + timeout.tv_sec += timeout.tv_usec / 1000000; + timeout.tv_usec %= 1000000; + } + // if no timeout } else { tmout = NULL; - - Index: head/net-mgmt/arpalert/files/patch-install.sh.in =================================================================== --- head/net-mgmt/arpalert/files/patch-install.sh.in (nonexistent) +++ head/net-mgmt/arpalert/files/patch-install.sh.in (revision 430410) @@ -0,0 +1,23 @@ +--- install.sh.in.orig 2011-11-08 19:36:51 UTC ++++ install.sh.in +@@ -33,16 +33,16 @@ mkdir -p ${DESTDIR}${includedir} + mkdir -p ${DESTDIR}${mandir}/man8 + + # install man +-cp -f doc/arpalert.8 ${DESTDIR}${mandir}/man8 ++install -m 0444 doc/arpalert.8 ${DESTDIR}${mandir}/man8 + + # copy oui list +-cp -f etc/oui.txt ${DESTDIR}${config_dir} ++install -m 0444 etc/oui.txt ${DESTDIR}${config_dir} + + # copy API +-cp -f api/arpalert.h ${DESTDIR}${includedir} ++install -m 0444 api/arpalert.h ${DESTDIR}${includedir} + + # insall binary +-cp -f arpalert ${DESTDIR}${sbindir} ++install -s -m 0555 arpalert ${DESTDIR}${sbindir} + + # if doesn't exist conf + if [ ! -f ${DESTDIR}${config_dir}/arpalert.conf ]; then Property changes on: head/net-mgmt/arpalert/files/patch-install.sh.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/arpalert/files/patch-macname.h =================================================================== --- head/net-mgmt/arpalert/files/patch-macname.h (revision 430409) +++ head/net-mgmt/arpalert/files/patch-macname.h (revision 430410) @@ -1,10 +1,10 @@ ---- macname.h.orig Sun Dec 10 22:52:45 2006 -+++ macname.h Sun Dec 10 22:53:04 2006 +--- macname.h.orig 2011-11-08 19:36:51 UTC ++++ macname.h @@ -7,6 +7,7 @@ #ifndef __MACNAME_H__ #define __MACNAME_H__ +#include #include #include #include Index: head/net-mgmt/arpalert/files/patch-module_example__Makefile =================================================================== --- head/net-mgmt/arpalert/files/patch-module_example__Makefile (revision 430409) +++ head/net-mgmt/arpalert/files/patch-module_example__Makefile (revision 430410) @@ -1,13 +1,13 @@ ---- module_example/Makefile.orig 2008-04-01 02:36:42.000000000 +0800 -+++ module_example/Makefile 2011-09-05 16:49:33.000000000 +0800 +--- module_example/Makefile.orig 2011-11-08 19:36:51 UTC ++++ module_example/Makefile @@ -1,8 +1,8 @@ # Copyright (c) 2005-2010 Thierry FOURNIER # $Id: Makefile 690 2008-03-31 18:36:43Z $ -CC = gcc -CFLAGS = -Wall -g +#CC = gcc +CFLAGS = -Wall -g -fPIC all: example.so