mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
update to fping-5.5
This commit is contained in:
+1
-2
@@ -1,6 +1,6 @@
|
||||
COMMENT= quickly ping N hosts w/o flooding the network
|
||||
|
||||
DISTNAME= fping-5.4
|
||||
DISTNAME= fping-5.5
|
||||
|
||||
CATEGORIES= net
|
||||
|
||||
@@ -17,7 +17,6 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
||||
SITES= https://fping.org/dist/
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
SEPARATE_BUILD= Yes
|
||||
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin
|
||||
|
||||
# some dependent programs want fping/fping6 separation e.g. net/zabbix,
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
SHA256 (fping-5.4.tar.gz) = vjIHcfB15H3X5XBLSF6b3H3REQeIQ0XA98GHSTV/Zo0=
|
||||
SIZE (fping-5.4.tar.gz) = 195770
|
||||
SHA256 (fping-5.5.tar.gz) = FcTjK2xV/xBbr+A+jJHHyhsu2jG/mnEnMmu4eIfuGP4=
|
||||
SIZE (fping-5.5.tar.gz) = 215522
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
Index: doc/Makefile.in
|
||||
--- doc/Makefile.in.orig
|
||||
+++ doc/Makefile.in
|
||||
@@ -492,7 +492,7 @@ uninstall-man: uninstall-man8
|
||||
|
||||
|
||||
fping.8: fping.pod
|
||||
- pod2man -c "" -s 8 -r "fping" $< >$@
|
||||
+ pod2man -c "" -s 8 -r "fping" $> >$@
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
@@ -1,17 +1,7 @@
|
||||
Index: src/fping.c
|
||||
--- src/fping.c.orig
|
||||
+++ src/fping.c
|
||||
@@ -483,6 +483,9 @@ int main(int argc, char **argv)
|
||||
struct sigaction act;
|
||||
#endif
|
||||
|
||||
+ if (pledge("stdio inet rpath dns id", NULL) == -1)
|
||||
+ perror("pledge");
|
||||
+
|
||||
/* pre-parse -h/--help, so that we also can output help information
|
||||
* without trying to open the socket, which might fail */
|
||||
prog = argv[0];
|
||||
@@ -519,6 +522,10 @@ int main(int argc, char **argv)
|
||||
@@ -623,6 +623,10 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
optparse_init(&optparse_state, argv);
|
||||
@@ -22,7 +12,21 @@ Index: src/fping.c
|
||||
ident4 = ident6 = htons(getpid() & 0xFFFF);
|
||||
verbose_flag = 1;
|
||||
backoff_flag = 1;
|
||||
@@ -938,6 +945,11 @@ int main(int argc, char **argv)
|
||||
@@ -712,11 +716,13 @@ int main(int argc, char **argv)
|
||||
ping_data_size = ICMP_TIMESTAMP_DATA_SIZE;
|
||||
} else if (strstr(optparse_state.optlongname, "print-tos") != NULL) {
|
||||
print_tos_flag = 1;
|
||||
+#if defined(IP_RECVTTOS)
|
||||
if (socket4 >= 0 && (socktype4 == SOCK_DGRAM)) {
|
||||
if (setsockopt(socket4, IPPROTO_IP, IP_RECVTOS, &sock_opt_on, sizeof(sock_opt_on))) {
|
||||
perror("setsockopt IP_RECVTOS");
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
#if defined(IPV6) && defined(IPV6_RECVTCLASS)
|
||||
if (socket6 >= 0) {
|
||||
if (setsockopt(socket6, IPPROTO_IPV6, IPV6_RECVTCLASS, &sock_opt_on, sizeof(sock_opt_on))) {
|
||||
@@ -1060,6 +1066,11 @@ int main(int argc, char **argv)
|
||||
exit(4);
|
||||
}
|
||||
|
||||
@@ -34,7 +38,7 @@ Index: src/fping.c
|
||||
/* validate various option settings */
|
||||
|
||||
#ifndef IPV6
|
||||
@@ -1212,6 +1224,10 @@ int main(int argc, char **argv)
|
||||
@@ -1402,6 +1413,10 @@ int main(int argc, char **argv)
|
||||
if (!num_hosts) {
|
||||
exit(num_noaddress ? 2 : 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user