4 if [ ! -d .venv
]; then
5 if [ -z "$PYTHON" ]; then
6 if [ ! -z "$(python3 --version | egrep '^Python 3.[6789]' 2>/dev/null)" ]; then
7 # found python3.6 or better
10 # until we have better Linux distribution detection.
15 virtualenv
-p ${PYTHON} .venv
19 pip
install -r requirements.txt
20 protoc
-I=..
/pdns
/ --python_out=. ..
/pdns
/dnsmessage.proto
21 protoc
-I=..
/pdns
/ --python_out=. ..
/pdns
/dnstap.proto
25 if [ -z "${DNSDISTBIN}" ]; then
26 DNSDISTBIN
=$
(ls ..
/pdns
/dnsdistdist
/dnsdist-
*/dnsdist
)
31 if [ "${PDNS_DEBUG}" = "YES" ]; then
36 openssl req
-new -x509 -days 1 -extensions v3_ca
-keyout ca.key
-out ca.pem
-nodes -config configCA.conf
37 # Generate a new server certificate request
38 openssl req
-new -newkey rsa
:2048 -nodes -keyout server.key
-out server.csr
-config configServer.conf
39 # Sign the server cert
40 openssl x509
-req -days 1 -CA ca.pem
-CAkey ca.key
-CAcreateserial -in server.csr
-out server.pem
42 cat server.pem ca.pem
>> server.chain
44 if ! nosetests
--with-xunit $@
; then
45 for log
in configs
/*.log
; do
52 rm ca.key ca.pem ca.srl server.csr server.key server.pem server.chain