mirror of
https://github.com/darlinghq/darling-network_cmds.git
synced 2024-11-23 03:39:55 +00:00
Darling build of network_cmds-596
This commit is contained in:
parent
a1daec454c
commit
1210f5b338
107
CMakeLists.txt
107
CMakeLists.txt
@ -5,86 +5,39 @@ cmake_minimum_required(VERSION 2.4.0)
|
||||
# Automatically escape macros
|
||||
cmake_policy(SET CMP0005 NEW)
|
||||
|
||||
include(darling_exe)
|
||||
add_compile_definitions(
|
||||
USE_RFC2292BIS=1
|
||||
__APPLE_USE_RFC_3542=1
|
||||
__APPLE_API_OBSOLETE=1
|
||||
|
||||
add_definitions(
|
||||
-DUSE_RFC2292BIS=1
|
||||
-D__APPLE_USE_RFC_3542=1
|
||||
-D__APPLE_API_OBSOLETE=1
|
||||
-DPRIVATE
|
||||
-DKERNEL_PRIVATE
|
||||
)
|
||||
|
||||
# Hide warnings
|
||||
add_definitions(
|
||||
-Wno-visibility
|
||||
-Wno-incompatible-pointer-types
|
||||
PRIVATE
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -fwrapv -fPIC -ggdb")
|
||||
|
||||
add_darling_library(alias SHARED
|
||||
alias/alias.c
|
||||
# alias/alias_db.c
|
||||
alias/alias_pptp.c
|
||||
alias/alias_smedia.c
|
||||
alias/alias_cuseeme.c
|
||||
alias/alias_ftp.c
|
||||
alias/alias_irc.c
|
||||
alias/alias_nbt.c
|
||||
alias/alias_proxy.c
|
||||
alias/alias_util.c
|
||||
)
|
||||
# the calls that are commented out are because their targets are apparently not present on a real macOS install
|
||||
|
||||
#install(TARGETS alias DESTINATION ${CMAKE_INSTALL_LIBDIR}/darling)
|
||||
#add_darling_executable(arp arp.tproj/arp.c)
|
||||
#set_target_properties(arp PROPERTIES COMPILE_FLAGS "-include net/route.h -include sys/socket.h")
|
||||
#install(TARGETS arp DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
# Manpages
|
||||
install(FILES
|
||||
cfilutil/cfilutil.1
|
||||
ecnprobe/ecnprobe.1
|
||||
mnc.tproj/mnc.1
|
||||
mptcp_client/mptcp_client.1
|
||||
netstat.tproj/netstat.1
|
||||
|
||||
DESTINATION libexec/darling/usr/share/man/man1
|
||||
)
|
||||
|
||||
install(FILES alias/libalias.3 DESTINATION libexec/darling/usr/share/man/man3)
|
||||
|
||||
install(FILES arp.tproj/arp4.4 DESTINATION libexec/darling/usr/share/man/man3)
|
||||
|
||||
install(FILES
|
||||
rtadvd.tproj/rtadvd.conf.5
|
||||
unbound/doc/unbound.conf.5
|
||||
|
||||
DESTINATION libexec/darling/usr/share/man/man5
|
||||
)
|
||||
|
||||
install(FILES
|
||||
arp.tproj/arp.8
|
||||
dnctl/dnctl.8
|
||||
ifconfig.tproj/ifconfig.8
|
||||
ip6addrctl.tproj/ip6addrctl.8
|
||||
ip6fw.tproj/ip6fw.8
|
||||
ipfw.tproj/ipfw.8
|
||||
kdumpd.tproj/kdumpd.8
|
||||
mtest.tproj/mtest.8
|
||||
natd.tproj/natd.8
|
||||
ndp.tproj/ndp.8
|
||||
ping.tproj/ping.8
|
||||
ping6.tproj/ping6.8
|
||||
pktapctl/pktapctl.8
|
||||
rarpd.tproj/rarpd.8
|
||||
route.tproj/route.8
|
||||
rtadvd.tproj/rtadvd.8
|
||||
rtsol.tproj/rtsol.8
|
||||
spray.tproj/spray.8
|
||||
traceroute.tproj/traceroute.8
|
||||
traceroute6.tproj/traceroute6.8
|
||||
unbound/doc/unbound.8
|
||||
|
||||
DESTINATION libexec/darling/usr/share/man/man8
|
||||
)
|
||||
add_subdirectory(arp.tproj)
|
||||
#add_subdirectory(cfilutil)
|
||||
add_subdirectory(dnctl)
|
||||
#add_subdirectory(ecnprobe) # missing libpcap; also not present on standard macOS install
|
||||
#add_subdirectory(frame_delay)
|
||||
add_subdirectory(ifconfig.tproj)
|
||||
#add_subdirectory(ip6addrctl.tproj)
|
||||
add_subdirectory(kdumpd.tproj)
|
||||
#add_subdirectory(mnc.tprojc)
|
||||
#add_subdirectory(mptcp_client)
|
||||
add_subdirectory(ndp.tproj)
|
||||
add_subdirectory(netstat.tproj)
|
||||
add_subdirectory(ping.tproj)
|
||||
#add_subdirectory(ping6.tproj) # missing libipsec; *IS* present on standard macOS install
|
||||
#add_subdirectory(pktapctl)
|
||||
#add_subdirectory(pktmnglr)
|
||||
add_subdirectory(rarpd.tproj)
|
||||
add_subdirectory(route.tproj)
|
||||
add_subdirectory(rtadvd.tproj)
|
||||
add_subdirectory(rtsol.tproj)
|
||||
#add_subdirectory(spray.tproj) # missing some RPC stuff in libinfo
|
||||
add_subdirectory(traceroute.tproj)
|
||||
#add_subdirectory(traceroute6.tproj) # missing libipse; *IS* present on standard macOS install
|
||||
add_subdirectory(unbound)
|
||||
|
10
arp.tproj/CMakeLists.txt
Normal file
10
arp.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
project(network_cmds-arp)
|
||||
|
||||
add_darling_executable(arp
|
||||
arp.c
|
||||
)
|
||||
|
||||
install(TARGETS arp DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES arp.8 DESTINATION libexec/darling/usr/share/man/man8)
|
||||
#install(FILES arp4.4 DESTINATION libexec/darling/usr/share/man/man4 RENAME arp.4) # apparently not installed by this project?
|
10
cfilutil/CMakeLists.txt
Normal file
10
cfilutil/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
project(network_cmds-cfilutil)
|
||||
|
||||
add_darling_executable(cfilutil
|
||||
cfilstat.c
|
||||
cfilutil.c
|
||||
)
|
||||
|
||||
install(TARGETS cfilutil DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES cfilutil.1 DESTINATION libexec/darling/usr/share/man/man1)
|
9
dnctl/CMakeLists.txt
Normal file
9
dnctl/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
project(network_cmds-dnctl)
|
||||
|
||||
add_darling_executable(dnctl
|
||||
dnctl.c
|
||||
)
|
||||
|
||||
install(TARGETS dnctl DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES dnctl.8 DESTINATION libexec/darling/usr/share/man/man8)
|
20
ecnprobe/CMakeLists.txt
Normal file
20
ecnprobe/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
project(network_cmds-ecnprobe)
|
||||
|
||||
add_darling_executable(ecnprobe
|
||||
capture.c
|
||||
ecn_probe.c
|
||||
ecn.c
|
||||
gmt2local.c
|
||||
history.c
|
||||
inet.c
|
||||
session.c
|
||||
support.c
|
||||
)
|
||||
|
||||
target_link_libraries(ecnprobe
|
||||
pcap
|
||||
)
|
||||
|
||||
install(TARGETS ecnprobe DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES ecnprobe.1 DESTINATION libexec/darling/usr/share/man/man1)
|
9
frame_delay/CMakeLists.txt
Normal file
9
frame_delay/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
project(network_cmds-frame_delay)
|
||||
|
||||
add_darling_executable(frame_delay
|
||||
frame_delay.c
|
||||
)
|
||||
|
||||
install(TARGETS frame_delay DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES frame_delay.8 DESTINATION libexec/darling/usr/share/man/man8)
|
99
gen/spray.tproj/spray.h
Normal file
99
gen/spray.tproj/spray.h
Normal file
@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
||||
#ifndef _SPRAY_H_RPCGEN
|
||||
#define _SPRAY_H_RPCGEN
|
||||
|
||||
#define RPCGEN_VERSION 199506
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
#ifndef _RPCSVC_SPRAY_H_
|
||||
#define _RPCSVC_SPRAY_H_
|
||||
|
||||
#define SPRAYOVERHEAD 86
|
||||
#define SPRAYMAX 8845
|
||||
|
||||
struct spraytimeval {
|
||||
u_int sec;
|
||||
u_int usec;
|
||||
};
|
||||
typedef struct spraytimeval spraytimeval;
|
||||
#ifdef __cplusplus
|
||||
extern "C" bool_t xdr_spraytimeval(XDR *, spraytimeval*);
|
||||
#elif __STDC__
|
||||
extern bool_t xdr_spraytimeval(XDR *, spraytimeval*);
|
||||
#else /* Old Style C */
|
||||
bool_t xdr_spraytimeval();
|
||||
#endif /* Old Style C */
|
||||
|
||||
|
||||
struct spraycumul {
|
||||
u_int counter;
|
||||
spraytimeval clock;
|
||||
};
|
||||
typedef struct spraycumul spraycumul;
|
||||
#ifdef __cplusplus
|
||||
extern "C" bool_t xdr_spraycumul(XDR *, spraycumul*);
|
||||
#elif __STDC__
|
||||
extern bool_t xdr_spraycumul(XDR *, spraycumul*);
|
||||
#else /* Old Style C */
|
||||
bool_t xdr_spraycumul();
|
||||
#endif /* Old Style C */
|
||||
|
||||
|
||||
typedef struct {
|
||||
u_int sprayarr_len;
|
||||
char *sprayarr_val;
|
||||
} sprayarr;
|
||||
#ifdef __cplusplus
|
||||
extern "C" bool_t xdr_sprayarr(XDR *, sprayarr*);
|
||||
#elif __STDC__
|
||||
extern bool_t xdr_sprayarr(XDR *, sprayarr*);
|
||||
#else /* Old Style C */
|
||||
bool_t xdr_sprayarr();
|
||||
#endif /* Old Style C */
|
||||
|
||||
|
||||
#endif /* _RPCSVC_SPRAY_H_ */
|
||||
|
||||
#define SPRAYPROG ((rpc_uint)100012)
|
||||
#define SPRAYVERS ((rpc_uint)1)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define SPRAYPROC_SPRAY ((rpc_uint)1)
|
||||
extern "C" void * sprayproc_spray_1(sprayarr *, CLIENT *);
|
||||
extern "C" void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
|
||||
#define SPRAYPROC_GET ((rpc_uint)2)
|
||||
extern "C" spraycumul * sprayproc_get_1(void *, CLIENT *);
|
||||
extern "C" spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
|
||||
#define SPRAYPROC_CLEAR ((rpc_uint)3)
|
||||
extern "C" void * sprayproc_clear_1(void *, CLIENT *);
|
||||
extern "C" void * sprayproc_clear_1_svc(void *, struct svc_req *);
|
||||
|
||||
#elif __STDC__
|
||||
#define SPRAYPROC_SPRAY ((rpc_uint)1)
|
||||
extern void * sprayproc_spray_1(sprayarr *, CLIENT *);
|
||||
extern void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *);
|
||||
#define SPRAYPROC_GET ((rpc_uint)2)
|
||||
extern spraycumul * sprayproc_get_1(void *, CLIENT *);
|
||||
extern spraycumul * sprayproc_get_1_svc(void *, struct svc_req *);
|
||||
#define SPRAYPROC_CLEAR ((rpc_uint)3)
|
||||
extern void * sprayproc_clear_1(void *, CLIENT *);
|
||||
extern void * sprayproc_clear_1_svc(void *, struct svc_req *);
|
||||
|
||||
#else /* Old Style C */
|
||||
#define SPRAYPROC_SPRAY ((rpc_uint)1)
|
||||
extern void * sprayproc_spray_1();
|
||||
extern void * sprayproc_spray_1_svc();
|
||||
#define SPRAYPROC_GET ((rpc_uint)2)
|
||||
extern spraycumul * sprayproc_get_1();
|
||||
extern spraycumul * sprayproc_get_1_svc();
|
||||
#define SPRAYPROC_CLEAR ((rpc_uint)3)
|
||||
extern void * sprayproc_clear_1();
|
||||
extern void * sprayproc_clear_1_svc();
|
||||
#endif /* Old Style C */
|
||||
|
||||
#endif /* !_SPRAY_H_RPCGEN */
|
49
gen/spray.tproj/spray_xdr.c
Normal file
49
gen/spray.tproj/spray_xdr.c
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
||||
#include "spray.h"
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)spray.x 1.2 87/09/18 Copyr 1987 Sun Micro";*/
|
||||
/*static char sccsid[] = "from: @(#)spray.x 2.1 88/08/01 4.0 RPCSRC";*/
|
||||
#endif /* not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$FreeBSD: src/include/rpcsvc/spray.x,v 1.7 2003/05/04 02:51:42 obrien Exp $");
|
||||
|
||||
bool_t
|
||||
xdr_spraytimeval(xdrs, objp)
|
||||
XDR *xdrs;
|
||||
spraytimeval *objp;
|
||||
{
|
||||
|
||||
if (!xdr_u_int(xdrs, &objp->sec))
|
||||
return (FALSE);
|
||||
if (!xdr_u_int(xdrs, &objp->usec))
|
||||
return (FALSE);
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
bool_t
|
||||
xdr_spraycumul(xdrs, objp)
|
||||
XDR *xdrs;
|
||||
spraycumul *objp;
|
||||
{
|
||||
|
||||
if (!xdr_u_int(xdrs, &objp->counter))
|
||||
return (FALSE);
|
||||
if (!xdr_spraytimeval(xdrs, &objp->clock))
|
||||
return (FALSE);
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
bool_t
|
||||
xdr_sprayarr(xdrs, objp)
|
||||
XDR *xdrs;
|
||||
sprayarr *objp;
|
||||
{
|
||||
|
||||
if (!xdr_bytes(xdrs, (char **)&objp->sprayarr_val, (u_int *)&objp->sprayarr_len, SPRAYMAX))
|
||||
return (FALSE);
|
||||
return (TRUE);
|
||||
}
|
29
ifconfig.tproj/CMakeLists.txt
Normal file
29
ifconfig.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
||||
project(network_cmds-ifconfig)
|
||||
|
||||
add_compile_definitions(
|
||||
USE_IF_MEDIA
|
||||
NO_IPX
|
||||
INET6
|
||||
|
||||
USE_VLANS
|
||||
USE_BONDS
|
||||
)
|
||||
|
||||
add_darling_executable(ifconfig
|
||||
af_inet.c
|
||||
af_inet6.c
|
||||
af_link.c
|
||||
if6lowpan.c
|
||||
ifbond.c
|
||||
ifbridge.c
|
||||
ifclone.c
|
||||
ifconfig.c
|
||||
iffake.c
|
||||
ifmedia.c
|
||||
ifvlan.c
|
||||
nexus.c
|
||||
)
|
||||
|
||||
install(TARGETS ifconfig DESTINATION libexec/darling/sbin)
|
||||
|
||||
install(FILES ifconfig.8 DESTINATION libexec/darling/usr/share/man/man8)
|
9
ip6addrctl.tproj/CMakeLists.txt
Normal file
9
ip6addrctl.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
project(network_cmds-ip6addrctl)
|
||||
|
||||
add_darling_executable(ip6addrctl
|
||||
ip6addrctl.c
|
||||
)
|
||||
|
||||
install(TARGETS ip6addrctl DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES ip6addrctl.8 DESTINATION libexec/darling/usr/share/man/man8)
|
10
kdumpd.tproj/CMakeLists.txt
Normal file
10
kdumpd.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
project(network_cmds-kdumpd)
|
||||
|
||||
add_darling_executable(kdumpd
|
||||
kdumpd.c
|
||||
kdumpsubs.c
|
||||
)
|
||||
|
||||
install(TARGETS kdumpd DESTINATION libexec/darling/usr/libexec)
|
||||
|
||||
install(FILES kdumpd.8 DESTINATION libexec/darling/usr/share/man/man8)
|
12
mnc.tproj/CMakeLists.txt
Normal file
12
mnc.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
project(network_cmds-mnc)
|
||||
|
||||
add_darling_executable(mnc
|
||||
mnc_error.c
|
||||
mnc_main.c
|
||||
mnc_multicast.c
|
||||
mnc_opts.c
|
||||
)
|
||||
|
||||
install(TARGETS mnc DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES mnc.1 DESTINATION libexec/darling/usr/share/man/man1)
|
10
mptcp_client/CMakeLists.txt
Normal file
10
mptcp_client/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
project(network_cmds-mptcp_client)
|
||||
|
||||
add_darling_executable(mptcp_client
|
||||
conn_lib.c
|
||||
mptcp_client.c
|
||||
)
|
||||
|
||||
install(TARGETS mptcp_client DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES mptcp_client.1 DESTINATION libexec/darling/usr/share/man/man1)
|
9
mtest.tproj/CMakeLists.txt
Normal file
9
mtest.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
project(network_cmds-mtest)
|
||||
|
||||
add_darling_executable(mtest
|
||||
mtest.c
|
||||
)
|
||||
|
||||
install(TARGETS mtest DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES mtest.8 DESTINATION libexec/darling/usr/share/man/man8)
|
15
ndp.tproj/CMakeLists.txt
Normal file
15
ndp.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
project(network_cmds-ndp)
|
||||
|
||||
add_compile_definitions(
|
||||
INET6
|
||||
IPSEC_DEBUG
|
||||
KAME_SCOPEID
|
||||
)
|
||||
|
||||
add_darling_executable(ndp
|
||||
ndp.c
|
||||
)
|
||||
|
||||
install(TARGETS ndp DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES ndp.8 DESTINATION libexec/darling/usr/share/man/man8)
|
27
netstat.tproj/CMakeLists.txt
Normal file
27
netstat.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,27 @@
|
||||
project(network_cmds-netstat)
|
||||
|
||||
add_compile_definitions(
|
||||
INET6
|
||||
IPSEC
|
||||
)
|
||||
|
||||
add_darling_executable(netstat
|
||||
data.c
|
||||
if.c
|
||||
inet.c
|
||||
inet6.c
|
||||
ipsec.c
|
||||
main.c
|
||||
mbuf.c
|
||||
mcast.c
|
||||
misc.c
|
||||
mptcp.c
|
||||
route.c
|
||||
systm.c
|
||||
tp_astring.c
|
||||
unix.c
|
||||
)
|
||||
|
||||
install(TARGETS netstat DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES netstat.1 DESTINATION libexec/darling/usr/share/man/man1)
|
10
ping.tproj/CMakeLists.txt
Normal file
10
ping.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
project(network_cmds-ping)
|
||||
|
||||
add_darling_executable(ping
|
||||
ping.c
|
||||
../ecnprobe/gmt2local.c
|
||||
)
|
||||
|
||||
install(TARGETS netstat DESTINATION libexec/darling/sbin)
|
||||
|
||||
install(FILES ping.8 DESTINATION libexec/darling/usr/share/man/man8)
|
15
ping6.tproj/CMakeLists.txt
Normal file
15
ping6.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
project(network_cmds-ping6)
|
||||
|
||||
add_darling_executable(ping6
|
||||
ping6.c
|
||||
md5.c
|
||||
../ecnprobe/gmt2local.c
|
||||
)
|
||||
|
||||
target_link_libraries(ping6
|
||||
ipsec
|
||||
)
|
||||
|
||||
install(TARGETS ping6 DESTINATION libexec/darling/sbin)
|
||||
|
||||
install(FILES ping6.8 DESTINATION libexec/darling/usr/share/man/man8)
|
10
pktapctl/CMakeLists.txt
Normal file
10
pktapctl/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
project(network_cmds-pktapctl)
|
||||
|
||||
add_darling_executable(pktapctl
|
||||
pktapctl.c
|
||||
)
|
||||
|
||||
install(TARGETS pktapctl DESTINATION libexec/darling/usr/bin)
|
||||
|
||||
install(FILES pktapctl.8 DESTINATION libexec/darling/usr/share/man/man8)
|
||||
|
7
pktmnglr/CMakeLists.txt
Normal file
7
pktmnglr/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
project(network_cmds-pktmnglr)
|
||||
|
||||
add_darling_executable(pktmnglr
|
||||
packet_mangler.c
|
||||
)
|
||||
|
||||
install(TARGETS pktmnglr DESTINATION libexec/darling/usr/bin)
|
13
rarpd.tproj/CMakeLists.txt
Normal file
13
rarpd.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
project(network_cmds-rarpd)
|
||||
|
||||
add_compile_definitions(
|
||||
TFTP_DIR="/tftpboot"
|
||||
)
|
||||
|
||||
add_darling_executable(rarpd
|
||||
rarpd.c
|
||||
)
|
||||
|
||||
install(TARGETS rarpd DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES rarpd.8 DESTINATION libexec/darling/usr/share/man/man8)
|
14
route.tproj/CMakeLists.txt
Normal file
14
route.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
project(network_cmds-route)
|
||||
|
||||
add_compile_definitions(
|
||||
INET6
|
||||
IPSEC
|
||||
)
|
||||
|
||||
add_darling_executable(route
|
||||
route.c
|
||||
)
|
||||
|
||||
install(TARGETS route DESTINATION libexec/darling/sbin)
|
||||
|
||||
install(FILES route.8 DESTINATION libexec/darling/usr/share/man/man8)
|
29
rtadvd.tproj/CMakeLists.txt
Normal file
29
rtadvd.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
||||
project(network_cmds-rtadvd)
|
||||
|
||||
add_compile_definitions(
|
||||
INET6
|
||||
HAVE_GETIFADDRS
|
||||
)
|
||||
|
||||
add_darling_executable(rtadvd
|
||||
advcap.c
|
||||
config.c
|
||||
dump.c
|
||||
if.c
|
||||
rrenum.c
|
||||
rtadvd_logging.c
|
||||
rtadvd.c
|
||||
timer.c
|
||||
)
|
||||
|
||||
target_link_libraries(rtadvd
|
||||
util
|
||||
)
|
||||
|
||||
install(TARGETS rtadvd DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES rtadvd.8 DESTINATION libexec/darling/usr/share/man/man8)
|
||||
|
||||
install(FILES rtadvd.conf.5 DESTINATION libexec/darling/usr/share/man/man5)
|
||||
|
||||
install(FILES rtadvd.conf DESTINATION libexec/darling/private/etc)
|
9
rtadvd.tproj/files.txt
Normal file
9
rtadvd.tproj/files.txt
Normal file
@ -0,0 +1,9 @@
|
||||
rtadvd_logging.c
|
||||
advcap.c
|
||||
config.c
|
||||
dump.c
|
||||
if.c
|
||||
rrenum.c
|
||||
rtadvd.c
|
||||
timer.c
|
||||
|
8
rtadvd.tproj/list.txt
Normal file
8
rtadvd.tproj/list.txt
Normal file
@ -0,0 +1,8 @@
|
||||
rtadvd_logging.c in Sources */,
|
||||
advcap.c in Sources */,
|
||||
config.c in Sources */,
|
||||
dump.c in Sources */,
|
||||
if.c in Sources */,
|
||||
rrenum.c in Sources */,
|
||||
rtadvd.c in Sources */,
|
||||
timer.c in Sources */,
|
19
rtsol.tproj/CMakeLists.txt
Normal file
19
rtsol.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
project(network_cmds-rtsol)
|
||||
|
||||
add_compile_definitions(
|
||||
INET6
|
||||
HAVE_GETIFADDRS
|
||||
)
|
||||
|
||||
add_darling_executable(rtsol
|
||||
dump.c
|
||||
if.c
|
||||
probe.c
|
||||
rtsock.c
|
||||
rtsol.c
|
||||
rtsold.c
|
||||
)
|
||||
|
||||
install(TARGETS rtsol DESTINATION libexec/darling/sbin)
|
||||
|
||||
install(FILES rtsol.8 DESTINATION libexec/darling/usr/share/man/man8)
|
14
spray.tproj/CMakeLists.txt
Normal file
14
spray.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
project(network_cmds-spray)
|
||||
|
||||
include_directories(
|
||||
../gen/spray.tproj
|
||||
)
|
||||
|
||||
add_darling_executable(spray
|
||||
spray.c
|
||||
../gen/spray.tproj/spray_xdr.c
|
||||
)
|
||||
|
||||
install(TARGETS spray DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES spray.8 DESTINATION libexec/darling/usr/share/man/man8)
|
18
traceroute.tproj/CMakeLists.txt
Normal file
18
traceroute.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
project(network_cmds-traceroute)
|
||||
|
||||
add_compile_definitions(
|
||||
HAVE_SOCKADDR_SA_LEN
|
||||
)
|
||||
|
||||
add_darling_executable(traceroute
|
||||
as.c
|
||||
findsaddr-socket.c
|
||||
ifaddrlist.c
|
||||
traceroute.c
|
||||
version.c
|
||||
)
|
||||
|
||||
install(TARGETS traceroute DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES traceroute.8 DESTINATION libexec/darling/usr/share/man/man8)
|
||||
|
19
traceroute6.tproj/CMakeLists.txt
Normal file
19
traceroute6.tproj/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
project(network_cmds-traceroute6)
|
||||
|
||||
add_compile_definitions(
|
||||
INET6
|
||||
IPSEC
|
||||
)
|
||||
|
||||
add_darling_executable(traceroute6
|
||||
traceroute6.c
|
||||
)
|
||||
|
||||
target_link_libraries(traceroute6
|
||||
ipsec
|
||||
)
|
||||
|
||||
install(TARGETS traceroute6 DESTINATION libexec/darling/usr/sbin)
|
||||
|
||||
install(FILES traceroute6.8 DESTINATION libexec/darling/usr/share/man/man8)
|
||||
|
99
unbound/CMakeLists.txt
Normal file
99
unbound/CMakeLists.txt
Normal file
@ -0,0 +1,99 @@
|
||||
project(network_cmds-unbound)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
add_darling_executable(unbound
|
||||
daemon/acl_list.c
|
||||
daemon/cachedump.c
|
||||
daemon/daemon.c
|
||||
daemon/remote.c
|
||||
daemon/stats.c
|
||||
daemon/unbound.c
|
||||
daemon/worker.c
|
||||
|
||||
dns64/dns64.c
|
||||
|
||||
iterator/iter_delegpt.c
|
||||
iterator/iter_donotq.c
|
||||
iterator/iter_fwd.c
|
||||
iterator/iter_hints.c
|
||||
iterator/iter_priv.c
|
||||
iterator/iter_resptype.c
|
||||
iterator/iter_scrub.c
|
||||
iterator/iter_utils.c
|
||||
iterator/iterator.c
|
||||
|
||||
ldns/keyraw.c
|
||||
ldns/parse.c
|
||||
ldns/parseutil.c
|
||||
ldns/rrdef.c
|
||||
ldns/sbuffer.c
|
||||
ldns/str2wire.c
|
||||
ldns/wire2str.c
|
||||
|
||||
services/listen_dnsport.c
|
||||
services/localzone.c
|
||||
services/mesh.c
|
||||
services/modstack.c
|
||||
services/outbound_list.c
|
||||
services/outside_network.c
|
||||
|
||||
services/cache/dns.c
|
||||
services/cache/infra.c
|
||||
services/cache/rrset.c
|
||||
|
||||
util/alloc.c
|
||||
util/config_file.c
|
||||
util/configlexer.c
|
||||
util/configparser.c
|
||||
util/fptr_wlist.c
|
||||
util/locks.c
|
||||
util/log.c
|
||||
util/mini_event.c
|
||||
util/module.c
|
||||
util/net_help.c
|
||||
util/netevent.c
|
||||
util/random.c
|
||||
util/rbtree.c
|
||||
util/regional.c
|
||||
util/rtt.c
|
||||
util/timehist.c
|
||||
util/tube.c
|
||||
|
||||
util/data/dname.c
|
||||
util/data/msgencode.c
|
||||
util/data/msgparse.c
|
||||
util/data/msgreply.c
|
||||
util/data/packed_rrset.c
|
||||
|
||||
util/storage/dnstree.c
|
||||
util/storage/lookup3.c
|
||||
util/storage/lruhash.c
|
||||
util/storage/slabhash.c
|
||||
|
||||
validator/autotrust.c
|
||||
validator/val_anchor.c
|
||||
validator/val_kcache.c
|
||||
validator/val_kentry.c
|
||||
validator/val_neg.c
|
||||
validator/val_nsec.c
|
||||
validator/val_nsec3.c
|
||||
validator/val_secalgo.c
|
||||
validator/val_sigcrypt.c
|
||||
validator/val_utils.c
|
||||
validator/validator.c
|
||||
)
|
||||
|
||||
target_link_libraries(unbound
|
||||
crypto35
|
||||
ssl35
|
||||
)
|
||||
|
||||
install(TARGETS unbound DESTINATION libexec/darling/usr/libexec)
|
||||
|
||||
install(FILES doc/unbound.8 DESTINATION libexec/darling/usr/share/man/man8)
|
||||
install(FILES doc/unbound.conf.5 DESTINATION libexec/darling/usr/share/man/man5)
|
||||
|
||||
install(FILES doc/unbound.conf DESTINATION libexec/darling/usr/local/etc/unbound)
|
Loading…
Reference in New Issue
Block a user