Skip to content

Commit

Permalink
Import NetBSD ping6(8)
Browse files Browse the repository at this point in the history
Change-Id: Ife49f5fac0e50852c74a0f85b6129c204d172c68
  • Loading branch information
dcvmoole committed Mar 9, 2017
1 parent 04e82b7 commit 903ca1e
Show file tree
Hide file tree
Showing 10 changed files with 3,353 additions and 0 deletions.
1 change: 1 addition & 0 deletions distrib/sets/lists/minix-base/mi
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
./sbin/newfs_v7fs minix-base
./sbin/nologin minix-base
./sbin/ping minix-base
./sbin/ping6 minix-base use_inet6
./sbin/poweroff minix-base
./sbin/printconfig minix-base
./sbin/rcorder minix-base
Expand Down
1 change: 1 addition & 0 deletions distrib/sets/lists/minix-debug/mi
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
./usr/libdata/debug/sbin/newfs_udf.debug minix-debug debug
./usr/libdata/debug/sbin/newfs_v7fs.debug minix-debug debug
./usr/libdata/debug/sbin/ping.debug minix-debug debug
./usr/libdata/debug/sbin/ping6.debug minix-debug use_inet6,debug
./usr/libdata/debug/sbin/printconfig.debug minix-debug debug
./usr/libdata/debug/sbin/rcorder.debug minix-debug debug
./usr/libdata/debug/sbin/reboot.debug minix-debug debug
Expand Down
1 change: 1 addition & 0 deletions distrib/sets/lists/minix-man/mi
Original file line number Diff line number Diff line change
Expand Up @@ -3438,6 +3438,7 @@
./usr/man/man8/part.8 minix-man
./usr/man/man8/partition.8 minix-man
./usr/man/man8/ping.8 minix-man
./usr/man/man8/ping6.8 minix-man use_inet6
./usr/man/man8/postinstall.8 minix-man
./usr/man/man8/poweroff.8 minix-man
./usr/man/man8/pr_routes.8 minix-man obsolete
Expand Down
2 changes: 2 additions & 0 deletions sbin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ SUBDIR+= mount_v7fs
.if (${MKCRYPTO} != "no")
SUBDIR+= cgdconfig
.endif
.endif # !defined(__MINIX)

.if (${USE_INET6} != "no")
SUBDIR+= ping6
.endif

.if !defined(__MINIX)
.if (${MKISCSI} != "no")
SUBDIR+= iscsictl iscsid
.endif
Expand Down
32 changes: 32 additions & 0 deletions sbin/ping6/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.16 2015/09/09 10:06:05 ozaki-r Exp $

.include <bsd.own.mk>

USE_FORT?= yes # setuid
RUMPPRG= ping6
MAN= ping6.8

BINOWN= root
BINMODE= 4555

CPPFLAGS+= -DINET6
.if !defined(__MINIX)
CPPFLAGS+= -DIPSEC
.endif # !defined(__MINIX)

.if !defined(__MINIX)
LDADD+= -lipsec -lm
DPADD+= ${LIBIPSEC} ${LIBM}
.else
LDADD+= -lm
DPADD+= ${LIBM}
.endif # defined(__MINIX)

.PATH: ${.CURDIR}/../../lib/libc/net
RUMPSRCS= getaddrinfo.c getifaddrs.c getnameinfo.c
RUMPSRCS+= if_indextoname.c if_nametoindex.c
.if (${MKRUMP} != "no")
CPPFLAGS+= -DRUMP_ACTION
.endif

.include <bsd.prog.mk>
Loading

0 comments on commit 903ca1e

Please sign in to comment.