Como compilar o netcat-openbsd para o debian etch?

0

Eu tentei:

apt-get install netcat-openbsd
apt-get source netcat-openbsd

Ele reclama:

E: Couldn't find package netcat-openbsd
E: Unable to find a source package for netcat-openbsd

Então, tentei:

wget ftp://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.105.orig.tar.gz
tar -xzf netcat-openbsd_1.105.orig.tar.gz
cd netcat-openbsd-1.105
make

Ele reclama:

Makefile:6: *** missing separator.  Stop.

Eu também tentei o seguinte em Jessie:

apt-get build-dep netcat-openbsd
apt-get source netcat-openbsd
tar -czf nc.tar.gz netcat-openbsd-1.105
cat nc.tar.gz | nc -l 80

E depois no Etch:

wget 192.168.1.101
tar -xzf index.html
cd netcat-openbsd-1.105
make

Ele reclama:

netcat.c:99:24: error: bsd/stdlib.h: No such file or directory
netcat.c:100:24: error: bsd/string.h: No such file or directory
make: *** [netcat.o] Error 1

Você não diz? Deixe-me te enganar:

cd /usr/include
mkdir bsd
for i in *; do ln -s ../$i bsd/$item; done
cd /root/netcat-openbsd-1.105
make

Agora diz:

socks.c:41:32: error: bsd/readpassphrase.h: No such file or directory
socks.c: In function 'getproxypass':
socks.c:120: error: 'RPP_REQUIRE_TTY' undeclared (first use in this  function)
socks.c:120: error: (Each undeclared identifier is reported only once
socks.c:120: error: for each function it appears in.)
socks.c:120: warning: comparison between pointer and integer
make: *** [socks.o] Error 1

Sim, eu preciso disso no Etch, e eu preciso da opção -d do BSD. Estou ficando sem ideias, qualquer sugestão é apreciada!

    
por Ulrik 05.08.2016 / 15:24

0 respostas