add some backcompat in nc, don't install it

This commit is contained in:
Brent Cook 2015-09-12 09:50:44 -05:00
parent bcd3b2fde6
commit a64c42a09d
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,8 @@
include $(top_srcdir)/Makefile.am.common
bin_PROGRAMS = nc
if HAVE_POLL
noinst_PROGRAMS = nc
nc_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
nc_LDADD += $(top_builddir)/tls/libtls.la
@ -9,3 +11,9 @@ nc_SOURCES = atomicio.c
nc_SOURCES += netcat.c
nc_SOURCES += socks.c
noinst_HEADERS = atomicio.h
if !HAVE_STRTONUM
nc_SOURCES += compat/strtonum.c
endif
endif

View File

@ -213,6 +213,7 @@ sed -e "s/compat\///" crypto/Makefile.am.arc4random > \
# copy nc(1) source
echo "copying nc(1) source"
rm -f apps/nc/*.c apps/nc/*.h
$CP $libc_src/stdlib/strtonum.c apps/nc
for i in `awk '/SOURCES|HEADERS|MANS/ { print $3 }' apps/nc/Makefile.am` ; do
if [ -e $app_src/nc/$i ]; then
$CP $app_src/nc/$i apps/nc