aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2017-01-03 05:07:34 +0800
committerhrs <hrs@FreeBSD.org>2017-01-03 05:07:34 +0800
commit82fe43df039ae6cdabafa2f8be013d79aaf762ea (patch)
tree49d43bc54fbe1d4acf98914bd9ca93f2e1ad8493 /net-mgmt
parente918a084f18d083610c24d5c44d3c020c1682bde (diff)
downloadfreebsd-ports-gnome-82fe43df039ae6cdabafa2f8be013d79aaf762ea.tar.gz
freebsd-ports-gnome-82fe43df039ae6cdabafa2f8be013d79aaf762ea.tar.zst
freebsd-ports-gnome-82fe43df039ae6cdabafa2f8be013d79aaf762ea.zip
- Add LICENSE.
- Strip binaries. - Regenerate patch files by make makepatch.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/arpalert/Makefile5
-rw-r--r--net-mgmt/arpalert/files/patch-arpalert.c10
-rw-r--r--net-mgmt/arpalert/files/patch-install.sh.in23
-rw-r--r--net-mgmt/arpalert/files/patch-macname.h4
-rw-r--r--net-mgmt/arpalert/files/patch-module_example__Makefile4
5 files changed, 35 insertions, 11 deletions
diff --git a/net-mgmt/arpalert/Makefile b/net-mgmt/arpalert/Makefile
index eec0fc49aba5..61095307dbe3 100644
--- a/net-mgmt/arpalert/Makefile
+++ b/net-mgmt/arpalert/Makefile
@@ -3,12 +3,15 @@
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}
diff --git a/net-mgmt/arpalert/files/patch-arpalert.c b/net-mgmt/arpalert/files/patch-arpalert.c
index 352cee82b495..e85562af464b 100644
--- a/net-mgmt/arpalert/files/patch-arpalert.c
+++ b/net-mgmt/arpalert/files/patch-arpalert.c
@@ -1,6 +1,6 @@
---- 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, &current_t, &timeout);
@@ -13,7 +13,7 @@
// 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;
@@ -26,5 +26,3 @@
// if no timeout
} else {
tmout = NULL;
-
-
diff --git a/net-mgmt/arpalert/files/patch-install.sh.in b/net-mgmt/arpalert/files/patch-install.sh.in
new file mode 100644
index 000000000000..b99a5e076832
--- /dev/null
+++ b/net-mgmt/arpalert/files/patch-install.sh.in
@@ -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
diff --git a/net-mgmt/arpalert/files/patch-macname.h b/net-mgmt/arpalert/files/patch-macname.h
index 0f6f768a108e..e173775be45a 100644
--- a/net-mgmt/arpalert/files/patch-macname.h
+++ b/net-mgmt/arpalert/files/patch-macname.h
@@ -1,5 +1,5 @@
---- 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__
diff --git a/net-mgmt/arpalert/files/patch-module_example__Makefile b/net-mgmt/arpalert/files/patch-module_example__Makefile
index d3d648ebccda..86a741968e1d 100644
--- a/net-mgmt/arpalert/files/patch-module_example__Makefile
+++ b/net-mgmt/arpalert/files/patch-module_example__Makefile
@@ -1,5 +1,5 @@
---- 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 $