dlundquist / sniproxy

Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session.
BSD 2-Clause "Simplified" License
2.56k stars 397 forks source link

libudns not in current stable #81

Closed nielspeen closed 10 years ago

nielspeen commented 10 years ago

The README mentions you need a "recent" Debian distribution, which I think many will interpret as "current stable". However, "current stable" does not feature udns packages.

Grabbing udns from testing (jessie) and using them in stable works fine though. Maybe this is worth noting in the README.

dlundquist commented 10 years ago

Thanks for pointing this out, I've been working on Ubuntu recently for some work related projects and completely missed that. Since libudns is LGPL licensed, and sniproxy is BSD license I've taken advantage of the lesser part of the LGPL and made it an optional run time dependency, but I expect many users will want the DNS resolution functionality so I included it in the dependency list.

For reference libudns builds on a Debian 7 host from the Ubuntu sources:

mkdir udns
cd udns/
wget http://archive.ubuntu.com/ubuntu/pool/universe/u/udns/udns_0.4-1.dsc
wget http://archive.ubuntu.com/ubuntu/pool/universe/u/udns/udns_0.4.orig.tar.gz
wget http://archive.ubuntu.com/ubuntu/pool/universe/u/udns/udns_0.4-1.debian.tar.gz
tar xfz udns_0.4.orig.tar.gz
cd udns-0.4/
tar xfz ../udns_0.4-1.debian.tar.gz 
dpkg-buildpackage 
cd ..
sudo dpkg -i libudns-dev_0.4-1_amd64.deb libudns0_0.4-1_amd64.deb 
dlundquist commented 10 years ago

Updated README.md (05cb1ab).