net/apinger: sync with upstream
Taken from: FreeBSD
This commit is contained in:
parent
eadb3490f3
commit
b2fe183f08
6 changed files with 55 additions and 12 deletions
|
|
@ -3,28 +3,24 @@
|
|||
|
||||
PORTNAME= apinger
|
||||
PORTVERSION= 0.6.1
|
||||
PORTREVISION= 9
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= http://freebsdcluster.org/~mich/software/ \
|
||||
http://www.bnet.pl/~jajcus/apinger/
|
||||
|
||||
MAINTAINER= franco@opnsense.org
|
||||
MAINTAINER= mich@FreeBSD.org
|
||||
COMMENT= IP device monitoring tool
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= opnsense
|
||||
GH_PROJECT= apinger
|
||||
GH_TAGNAME= 29464ce
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_RC_SUBR= apinger
|
||||
SUB_FILES= pkg-message
|
||||
PORTDOCS= AUTHORS NEWS README
|
||||
|
||||
MAKE_JOBS_UNSAFE=yes
|
||||
|
||||
OPTIONS_DEFINE= IPV6 DOCS
|
||||
|
||||
USES= autoreconf bison
|
||||
USES= bison
|
||||
|
||||
IPV6_CONFIGURE_ENABLE= ipv6
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (opnsense-apinger-0.6.1-29464ce_GH0.tar.gz) = 59b2b118705e7f5aa0f471383fbcf3b6a2231d93da7cf15af813d13ab41af760
|
||||
SIZE (opnsense-apinger-0.6.1-29464ce_GH0.tar.gz) = 25277
|
||||
SHA256 (apinger-0.6.1.tar.gz) = 0a30273d03e81e0ef2ecfa85916f5582b3f3773701f225960cfbfa71b4f2e2c4
|
||||
SIZE (apinger-0.6.1.tar.gz) = 134127
|
||||
|
|
|
|||
11
net/apinger/files/patch-src_apinger.h
Normal file
11
net/apinger/files/patch-src_apinger.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- src/apinger.h.orig 2002-12-20 09:19:57 UTC
|
||||
+++ src/apinger.h
|
||||
@@ -119,7 +119,7 @@ extern char *config_file;
|
||||
|
||||
extern int icmp_sock;
|
||||
extern int icmp6_sock;
|
||||
-extern int ident;
|
||||
+extern uint16_t ident;
|
||||
|
||||
extern struct timeval next_probe;
|
||||
|
||||
11
net/apinger/files/patch-src_icmp.c
Normal file
11
net/apinger/files/patch-src_icmp.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- src/icmp.c.orig 2002-12-19 08:24:33 UTC
|
||||
+++ src/icmp.c
|
||||
@@ -197,7 +197,7 @@ socklen_t sl;
|
||||
debug("checking CMSG...");
|
||||
for (c = CMSG_FIRSTHDR(&msg); c; c = CMSG_NXTHDR(&msg, c)) {
|
||||
debug("CMSG level: %i type: %i",c->cmsg_level,c->cmsg_type);
|
||||
- if (c->cmsg_level != SOL_SOCKET || c->cmsg_type != SO_TIMESTAMP)
|
||||
+ if (c->cmsg_level != SOL_SOCKET || c->cmsg_type != SCM_TIMESTAMP)
|
||||
continue;
|
||||
if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval)))
|
||||
continue;
|
||||
20
net/apinger/files/patch-src_main.c
Normal file
20
net/apinger/files/patch-src_main.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
--- src/main.c.orig 2003-03-26 11:27:47 UTC
|
||||
+++ src/main.c
|
||||
@@ -96,7 +96,7 @@ char *config_file=CONFIG;
|
||||
|
||||
int icmp_sock;
|
||||
int icmp6_sock;
|
||||
-int ident;
|
||||
+uint16_t ident;
|
||||
|
||||
struct timeval next_probe={0,0};
|
||||
|
||||
@@ -277,7 +277,7 @@ char *graph_location="/apinger/";
|
||||
return 1;
|
||||
}
|
||||
|
||||
- ident=getpid();
|
||||
+ ident=getpid() & 0xFFFF;
|
||||
signal(SIGTERM,signal_handler);
|
||||
signal(SIGINT,signal_handler);
|
||||
signal(SIGHUP,signal_handler);
|
||||
5
net/apinger/files/pkg-message.in
Normal file
5
net/apinger/files/pkg-message.in
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#########################################################################
|
||||
# Please copy: #
|
||||
# ${PREFIX}/etc/apinger.conf.sample to ${PREFIX}/etc/apinger.conf #
|
||||
# & edit to your needs. #
|
||||
#########################################################################
|
||||
Loading…
Add table
Reference in a new issue