1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723
|
JSON11_LIBS = $(top_builddir)/ext/json11/libjson11.la
PROBDS_LIBS = $(top_builddir)/ext/probds/libprobds.la
ARC4RANDOM_LIBS = $(top_builddir)/ext/arc4random/libarc4random.la
RUST_LIBS = $(top_builddir)/rec-rust-lib/rust/librecrust.a $(LIBDL)
AM_CPPFLAGS = $(LUA_CFLAGS) $(YAHTTP_CFLAGS) $(BOOST_CPPFLAGS) $(LIBSODIUM_CFLAGS) $(NET_SNMP_CFLAGS) $(LIBCAP_CFLAGS) $(SANITIZER_FLAGS) -O3 -Wall -pthread -DSYSCONFDIR=\"${sysconfdir}\" $(SYSTEMD_CFLAGS)
AM_CPPFLAGS += \
-I$(top_srcdir)/ext/json11 \
-I$(top_srcdir)/ext/protozero/include \
-I$(top_srcdir)/rec-rust-lib \
-I$(top_builddir)/rec-rust-lib \
-I$(top_srcdir)/rec-rust-lib/rust/src \
$(YAHTTP_CFLAGS) \
$(LIBCRYPTO_INCLUDES) \
-DBOOST_CONTAINER_USE_STD_EXCEPTIONS
AM_CXXFLAGS = \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DPKGLIBDIR=\"$(pkglibdir)\" \
-DLOCALSTATEDIR=\"$(socketdir)\"
AM_CXXFLAGS += \
-DNODCACHEDIRNOD=\"$(nodcachedir)/nod\" -DNODCACHEDIRUDR=\"$(nodcachedir)/udr\"
if FSTRM
AM_CPPFLAGS += \
$(FSTRM_CFLAGS)
endif
AM_LDFLAGS = \
$(PROGRAM_LDFLAGS) \
$(THREADFLAGS)
ACLOCAL_AMFLAGS = -I m4
BUILT_SOURCES=htmlfiles.h \
dnslabeltext.cc \
rec-metrics-gen.h \
rec-prometheus-gen.h \
rec-snmp-gen.h \
rec-oids-gen.h \
RECURSOR-MIB.txt
CLEANFILES = htmlfiles.h \
recursor.yml-dist
htmlfiles.h: incfiles ${srcdir}/html/* ${srcdir}/html/js/*
$(AM_V_GEN)$(srcdir)/incfiles > $@.tmp
@mv $@.tmp $@
# Use patterns to avoid having two instances of generate run simultaneously, a well-known hack for GNU make
rec-metrics-gen%h rec-prometheus-gen%h rec-snmp-gen%h rec-oids-gen%h RECURSOR-MIB%txt: metrics.py metrics_table.py RECURSOR-MIB.in
$(PYTHON) metrics.py
# We explicitly build rec-rust-lib in two steps, as it modifies files in the rec-rust-lib/rust subdir
SUBDIRS=ext rec-rust-lib rec-rust-lib/rust
if LUA
AM_CPPFLAGS +=$(LUA_CFLAGS)
endif
EXTRA_DIST = \
contrib/* \
COPYING \
devpollmplexer.cc \
dnslabeltext.cc \
dnslabeltext.rl \
dnsmessage.proto \
epollmplexer.cc \
kqueuemplexer.cc \
lua_hpp.mk \
malloctrace.cc malloctrace.hh \
mkpubsuffixcc \
NOTICE \
opensslsigners.hh opensslsigners.cc \
portsmplexer.cc \
dnstap.proto dnstap.cc dnstap.hh fstrm_logger.cc fstrm_logger.hh \
ext/protozero/include/* \
rrd/* \
html incfiles \
test_libcrypto \
pdns-recursor.service.in \
RECURSOR-MIB.txt \
metrics.py \
metrics_table.py \
RECURSOR-MIB.in \
rec-metrics-gen.h \
rec-prometheus-gen.h \
rec-snmp-gen.h \
rec-oids-gen.h \
builder-support/gen-version
dist-hook:
for file in $$(find $(distdir)/docs -type l); do \
t=`stat -c%N $$file | awk '{print $$NF}' | sed "s/'//g"` ; \
ln -fs ../$$t $$file; \
done
sbin_PROGRAMS = pdns_recursor
bin_PROGRAMS = rec_control
TESTS=test_libcrypto
if UNIT_TESTS
noinst_PROGRAMS = testrunner
TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=test_suite BOOST_TEST_REPORT_LEVEL=detailed SRCDIR='$(srcdir)'
TESTS += testrunner
else
check-local:
@echo "Unit tests are not enabled"
@echo "Run ./configure --enable-unit-tests"
endif
pdns_recursor_SOURCES = \
aggressive_nsec.cc aggressive_nsec.hh \
arguments.cc \
auth-catalogzone.hh \
axfr-retriever.hh axfr-retriever.cc \
base32.cc base32.hh \
base64.cc base64.hh \
burtle.hh \
cachecleaner.hh \
capabilities.cc capabilities.hh \
channel.cc channel.hh \
circular_buffer.hh \
comment.hh \
coverage.cc coverage.hh \
credentials.cc credentials.hh \
dns.hh dns.cc \
dns_random.hh \
dnsbackend.hh \
dnslabeltext.cc \
dnsname.cc dnsname.hh \
dnspacket.hh \
dnsparser.hh dnsparser.cc \
dnsrecords.cc dnsrecords.hh \
dnssecinfra.hh dnssecinfra.cc \
dnsseckeeper.hh \
dnswriter.cc dnswriter.hh \
dolog.hh \
ednscookies.cc ednscookies.hh \
ednsextendederror.cc ednsextendederror.hh \
ednsoptions.cc ednsoptions.hh \
ednspadding.cc ednspadding.hh \
ednssubnet.cc ednssubnet.hh \
filterpo.cc filterpo.hh \
fstrm_logger.cc fstrm_logger.hh \
gettime.cc gettime.hh \
gss_context.cc gss_context.hh \
histogram.hh \
iputils.hh iputils.cc \
ixfr.cc ixfr.hh \
json.cc json.hh \
lazy_allocator.hh \
libssl.cc libssl.hh \
lock.hh \
logger.hh logger.cc \
logging.hh logging.cc logr.hh \
lua-base4.cc lua-base4.hh \
lua-recursor4-ffi.hh \
lua-recursor4.cc lua-recursor4.hh \
lwres.cc lwres.hh \
misc.hh misc.cc \
mplexer.hh \
mtasker.hh \
mtasker_context.cc mtasker_context.hh \
namespaces.hh \
negcache.hh negcache.cc \
noinitvector.hh \
nsecrecords.cc \
opensslsigners.cc opensslsigners.hh \
packetcache.hh \
pdns_recursor.cc \
pdnsexception.hh \
pollmplexer.cc \
protozero-helpers.hh \
protozero-trace.cc protozero-trace.hh \
protozero.cc protozero.hh \
proxy-protocol.cc proxy-protocol.hh \
pubsuffix.hh pubsuffix.cc \
pubsuffixloader.cc \
qtype.hh qtype.cc \
query-local-address.hh query-local-address.cc \
ratelimitedlog.hh \
rcpgenerator.cc rcpgenerator.hh \
rec-carbon.cc \
rec-eventtrace.cc rec-eventtrace.hh \
rec-lua-conf.hh rec-lua-conf.cc \
rec-main.hh rec-main.cc \
rec-nsspeeds.cc rec-nsspeeds.hh \
rec-protozero.cc rec-protozero.hh \
rec-responsestats.hh rec-responsestats.cc \
rec-rust-lib/cxxsupport.cc \
rec-snmp.hh rec-snmp.cc \
rec-system-resolve.hh rec-system-resolve.cc \
rec-taskqueue.cc rec-taskqueue.hh \
rec-tcounters.cc rec-tcounters.hh \
rec-tcp.cc \
rec-tcpout.cc rec-tcpout.hh \
rec-xfr.cc rec-xfr.hh \
rec-xfrtracker.cc \
rec-zonetocache.cc rec-zonetocache.hh \
rec_channel.cc rec_channel.hh rec_metrics.hh \
rec_channel_rec.cc \
recpacketcache.cc recpacketcache.hh \
recursor_cache.cc recursor_cache.hh \
reczones-helpers.cc reczones-helpers.hh \
reczones.cc \
remote_logger.cc remote_logger.hh \
resolve-context.hh \
resolver.hh resolver.cc \
root-addresses.hh \
root-dnssec.hh \
rpzloader.cc rpzloader.hh \
secpoll-recursor.cc secpoll-recursor.hh \
secpoll.cc secpoll.hh \
sha.hh \
sholder.hh \
shuffle.cc shuffle.hh \
sillyrecords.cc \
snmp-agent.hh snmp-agent.cc \
sortlist.cc sortlist.hh \
sstuff.hh \
stable-bloom.hh \
stat_t.hh \
svc-records.cc svc-records.hh \
syncres.cc syncres.hh \
taskqueue.cc taskqueue.hh \
tcounters.hh \
tcpiohandler.cc tcpiohandler.hh \
threadname.hh threadname.cc \
tsigverifier.cc tsigverifier.hh \
ueberbackend.hh \
unix_utility.cc \
utility.hh \
uuid-utils.hh uuid-utils.cc \
validate.cc validate.hh validate-recursor.cc validate-recursor.hh \
version.cc version.hh \
views.hh \
webserver.cc webserver.hh \
ws-api.cc ws-api.hh \
ws-recursor.cc ws-recursor.hh \
zonemd.cc zonemd.hh \
zoneparser-tng.cc zoneparser-tng.hh
nodist_pdns_recursor_SOURCES = \
rec-rust-lib/cxxsettings-generated.cc
if !HAVE_LUA_HPP
BUILT_SOURCES += lua.hpp
nodist_pdns_recursor_SOURCES += lua.hpp
endif
CLEANFILES += lua.hpp
pdns_recursor_LDADD = \
$(JSON11_LIBS) \
$(LIBCRYPTO_LIBS) \
$(BOOST_CONTEXT_LIBS) \
$(NET_SNMP_LIBS) \
$(SYSTEMD_LIBS) \
$(RT_LIBS) \
$(BOOST_SYSTEM_LIBS) \
$(PROBDS_LIBS) \
$(LIBCAP_LIBS) \
$(ARC4RANDOM_LIBS) \
$(RUST_LIBS)
pdns_recursor_LDFLAGS = $(AM_LDFLAGS) \
$(LIBCRYPTO_LDFLAGS) $(BOOST_CONTEXT_LDFLAGS) \
$(BOOST_SYSTEM_LDFLAGS)
if NOD_ENABLED
pdns_recursor_SOURCES += nod.hh nod.cc
pdns_recursor_LDADD += \
$(BOOST_FILESYSTEM_LIBS)
pdns_recursor_LDFLAGS += \
$(BOOST_FILESYSTEM_LDFLAGS)
endif
rec_control_LDADD = $(LIBCRYPTO_LIBS) $(ARC4RANDOM_LIBS) $(RUST_LIBS)
rec_control_LDFLAGS = $(AM_LDFLAGS) \
$(LIBCRYPTO_LDFLAGS)
testrunner_SOURCES = \
aggressive_nsec.cc aggressive_nsec.hh \
arguments.cc \
axfr-retriever.hh axfr-retriever.cc \
base32.cc \
base64.cc base64.hh \
circular_buffer.hh \
credentials.cc credentials.hh \
dns.cc dns.hh \
dns_random.hh \
dnslabeltext.cc \
dnsname.cc dnsname.hh \
dnsparser.hh dnsparser.cc \
dnsrecords.cc \
dnssecinfra.cc \
dnsseckeeper.hh \
dnswriter.cc dnswriter.hh \
ednscookies.cc ednscookies.hh \
ednsextendederror.cc ednsextendederror.hh \
ednsoptions.cc ednsoptions.hh \
ednspadding.cc ednspadding.hh \
ednssubnet.cc ednssubnet.hh \
filterpo.cc filterpo.hh \
gettime.cc gettime.hh \
gss_context.cc gss_context.hh \
iputils.cc iputils.hh \
ixfr.cc ixfr.hh \
logger.cc logger.hh \
logging.hh logging.cc logr.hh \
misc.cc misc.hh \
mtasker_context.cc \
namespaces.hh \
negcache.hh negcache.cc \
nsecrecords.cc \
opensslsigners.cc opensslsigners.hh \
pdnsexception.hh \
pollmplexer.cc \
qtype.cc qtype.hh \
query-local-address.hh query-local-address.cc \
ratelimitedlog.hh \
rcpgenerator.cc \
rec-eventtrace.cc rec-eventtrace.hh \
rec-nsspeeds.cc rec-nsspeeds.hh \
rec-responsestats.hh rec-responsestats.cc \
rec-rust-lib/cxxsupport.cc \
rec-system-resolve.hh rec-system-resolve.cc \
rec-taskqueue.cc rec-taskqueue.hh \
rec-tcounters.cc rec-tcounters.hh \
rec-web-stubs.hh \
rec-xfrtracker.cc \
rec-zonetocache.cc rec-zonetocache.hh \
recpacketcache.cc recpacketcache.hh \
recursor_cache.cc recursor_cache.hh \
reczones-helpers.cc reczones-helpers.hh \
resolver.hh resolver.cc \
root-dnssec.hh \
rpzloader.cc rpzloader.hh \
secpoll.cc \
sholder.hh \
shuffle.cc shuffle.hh \
sillyrecords.cc \
sortlist.cc sortlist.hh \
sstuff.hh \
stable-bloom.hh \
svc-records.cc svc-records.hh \
syncres.cc syncres.hh \
taskqueue.cc taskqueue.hh \
test-aggressive_nsec_cc.cc \
test-arguments_cc.cc \
test-base32_cc.cc \
test-base64_cc.cc \
test-common.hh \
test-credentials_cc.cc \
test-dns_random_hh.cc \
test-dnsname_cc.cc \
test-dnsparser_hh.cc \
test-dnsrecordcontent.cc \
test-dnsrecords_cc.cc \
test-ednscookie_cc.cc \
test-ednsoptions_cc.cc \
test-filterpo_cc.cc \
test-histogram_hh.cc \
test-iputils_hh.cc \
test-ixfr_cc.cc \
test-luawrapper.cc \
test-misc_hh.cc \
test-mplexer.cc \
test-mtasker.cc \
test-negcache_cc.cc \
test-packetcache_hh.cc \
test-rcpgenerator_cc.cc \
test-rec-system-resolve.cc \
test-rec-taskqueue.cc \
test-rec-tcounters_cc.cc \
test-rec-zonetocache.cc \
test-recpacketcache_cc.cc \
test-recursorcache_cc.cc \
test-reczones-helpers.cc \
test-rpzloader_cc.cc \
test-secpoll_cc.cc \
test-settings.cc \
test-sholder_hh.cc \
test-shuffle_cc.cc \
test-signers.cc \
test-syncres_cc.cc \
test-syncres_cc.hh \
test-syncres_cc1.cc \
test-syncres_cc10.cc \
test-syncres_cc2.cc \
test-syncres_cc3.cc \
test-syncres_cc4.cc \
test-syncres_cc5.cc \
test-syncres_cc6.cc \
test-syncres_cc7.cc \
test-syncres_cc8.cc \
test-syncres_cc9.cc \
test-tsig.cc \
testrunner.cc \
threadname.hh threadname.cc \
tsigverifier.cc tsigverifier.hh \
unix_utility.cc \
validate-recursor.cc validate-recursor.hh \
validate.cc validate.hh \
version.cc version.hh \
zonemd.cc zonemd.hh \
zoneparser-tng.cc zoneparser-tng.hh
nodist_testrunner_SOURCES = \
rec-rust-lib/cxxsettings-generated.cc
testrunner_LDFLAGS = \
$(AM_LDFLAGS) \
$(BOOST_CONTEXT_LDFLAGS) \
$(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) \
$(LIBCRYPTO_LDFLAGS) \
$(BOOST_SYSTEM_LDFLAGS)
testrunner_LDADD = \
$(BOOST_CONTEXT_LIBS) \
$(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \
$(LIBCRYPTO_LIBS) \
$(RT_LIBS) \
$(BOOST_SYSTEM_LIBS) \
$(PROBDS_LIBS) \
$(LIBCAP_LIBS) \
$(ARC4RANDOM_LIBS) \
$(RUST_LIBS)
if NOD_ENABLED
testrunner_SOURCES += nod.hh nod.cc \
test-nod_cc.cc
testrunner_LDADD += \
$(BOOST_FILESYSTEM_LIBS)
testrunner_LDFLAGS += \
$(BOOST_FILESYSTEM_LDFLAGS)
endif
if LIBSODIUM
pdns_recursor_SOURCES += \
sodiumsigners.cc
pdns_recursor_LDADD += $(LIBSODIUM_LIBS)
rec_control_LDADD += $(LIBSODIUM_LIBS)
testrunner_SOURCES += \
sodiumsigners.cc
testrunner_LDADD += $(LIBSODIUM_LIBS)
endif
if MALLOC_TRACE
pdns_recursor_SOURCES += \
malloctrace.cc \
malloctrace.hh
pdns_recursor_LDFLAGS += -rdynamic
endif
if LUA
pdns_recursor_LDADD += $(LUA_LIBS)
rec_control_LDADD += $(LUA_LIBS)
testrunner_LDADD += $(LUA_LIBS)
endif
if HAVE_FREEBSD
pdns_recursor_SOURCES += kqueuemplexer.cc
testrunner_SOURCES += kqueuemplexer.cc
endif
if HAVE_OPENBSD
pdns_recursor_SOURCES += kqueuemplexer.cc
testrunner_SOURCES += kqueuemplexer.cc
endif
if HAVE_DARWIN
pdns_recursor_SOURCES += kqueuemplexer.cc
testrunner_SOURCES += kqueuemplexer.cc
endif
if HAVE_LINUX
pdns_recursor_SOURCES += epollmplexer.cc
testrunner_SOURCES += epollmplexer.cc
endif
if HAVE_SOLARIS
pdns_recursor_SOURCES += \
devpollmplexer.cc \
portsmplexer.cc
testrunner_SOURCES += \
devpollmplexer.cc \
portsmplexer.cc
endif
if FSTRM
pdns_recursor_SOURCES += \
dnstap.cc dnstap.hh
pdns_recursor_LDADD += \
$(FSTRM_LIBS)
endif
if HAVE_DNS_OVER_TLS
if HAVE_LIBSSL
AM_CPPFLAGS += $(LIBSSL_CFLAGS)
pdns_recursor_LDADD += $(LIBSSL_LIBS)
endif
#if HAVE_GNUTLS
#AM_CPPFLAGS += $(GNUTLS_CFLAGS)
#pdns_recursor_LDADD += $(GNUTLS_LIBS)
#endif
endif
if HAVE_LIBCURL
pdns_recursor_SOURCES += minicurl.cc minicurl.hh
pdns_recursor_LDADD += $(LIBCURL)
testrunner_SOURCES += minicurl.cc minicurl.hh
testrunner_LDADD += $(LIBCURL)
endif
rec_control_SOURCES = \
arguments.cc arguments.hh \
base32.cc base32.hh \
base64.cc base64.hh \
credentials.cc credentials.hh \
dnslabeltext.cc \
dnsname.hh dnsname.cc \
dnsparser.cc dnsparser.hh \
dnsrecords.cc dnsrecords.hh \
dnswriter.cc dnswriter.hh \
filterpo.cc filterpo.hh \
iputils.cc iputils.hh \
logger.cc \
logging.cc \
lua-base4.cc lua-base4.hh \
misc.cc \
nsecrecords.cc \
qtype.cc \
rcpgenerator.cc rcpgenerator.hh \
rec-lua-conf.cc rec-lua-conf.hh \
rec-rust-lib/cxxsupport.cc \
rec-system-resolve.cc rec-system-resolve.hh \
rec-web-stubs.hh \
rec_channel.cc rec_channel.hh \
rec_control.cc \
sillyrecords.cc \
sortlist.cc sortlist.hh \
svc-records.cc svc-records.hh \
threadname.cc threadname.hh \
unix_utility.cc
nodist_rec_control_SOURCES = \
rec-rust-lib/cxxsettings-generated.cc
dnslabeltext.cc: dnslabeltext.rl
$(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
pubsuffix.cc:
$(srcdir)/mkpubsuffixcc $@
## Config file
sysconf_DATA = recursor.yml-dist
recursor.yml-dist: pdns_recursor
./pdns_recursor --config=default 2> /dev/null > $@
## Manpages
MANPAGES=pdns_recursor.1 \
rec_control.1
dist_man_MANS=$(MANPAGES)
if HAVE_VENV
if !HAVE_MANPAGES
$(MANPAGES): %: docs/manpages/%.rst .venv
$(builddir)/.venv/bin/python -msphinx -b man "$(srcdir)/docs" "$(builddir)" $<
endif # if !HAVE_MANPAGES
.venv: docs/requirements.txt
$(PYTHON) -m venv .venv
.venv/bin/pip install -U pip setuptools
.venv/bin/pip install -r ${top_srcdir}/docs/requirements.txt
html-docs: docs/** .venv
.venv/bin/python -msphinx -b html docs html-docs
latex/PowerDNS-Recursor.pdf: docs/** .venv
.venv/bin/python -msphinx -M latexpdf docs .
PowerDNS-Recursor.pdf: latex/PowerDNS-Recursor.pdf
mv $< $@
html-docs.tar.bz2: html-docs
tar cjf $@ $<
all-docs: PowerDNS-Recursor.pdf html-docs html-docs.tar.bz2
upload-docs: all-docs
rsync -crv --delete --no-p --chmod=g=rwX --exclude '*~' ./html-docs/ web1.powerdns.com:/srv/www/doc.powerdns.com/recursor/
rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./html-docs.tar.bz2 web1.powerdns.com:/srv/www/doc.powerdns.com/recursor/
rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./PowerDNS-Recursor.pdf web1.powerdns.com:/srv/www/doc.powerdns.com/recursor/
else # if HAVE_VENV
$(MANPAGES):
@echo "You need Python 3 and the 'venv' module to generate the manpages"
exit 1
PowerDNS-Recursor.pdf:
@echo "You need Python 3 and the 'venv' module to generate the PDF"
exit 1
html-docs:
@echo "You need Python 3 and the 'venv' module to generate the HTML docs"
exit 1
endif
if HAVE_SYSTEMD
pdns-recursor.service: pdns-recursor.service.in
$(AM_V_GEN)sed -e 's![@]bindir[@]!$(bindir)!' -e 's![@]sbindir[@]!$(sbindir)!' -e 's![@]service_user[@]!$(service_user)!' -e 's![@]service_group[@]!$(service_group)!' < $< > $@
if !HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV
if HAVE_SYSTEMD_PERCENT_T
$(AM_V_GEN)sed -e 's!/pdns_recursor!& --socket-dir=%t/pdns-recursor!' -i $@
endif
endif
if !HAVE_SYSTEMD_LOCK_PERSONALITY
$(AM_V_GEN)perl -ni -e 'print unless /^LockPersonality/' $@
endif
if !HAVE_SYSTEMD_PRIVATE_DEVICES
$(AM_V_GEN)perl -ni -e 'print unless /^PrivateDevices/' $@
endif
if !HAVE_SYSTEMD_PRIVATE_TMP
$(AM_V_GEN)perl -ni -e 'print unless /^PrivateTmp/' $@
endif
if !HAVE_SYSTEMD_PRIVATE_USERS
$(AM_V_GEN)perl -ni -e 'print unless /^PrivateUsers/' $@
endif
if !HAVE_SYSTEMD_PROTECT_CLOCK
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectClock/' $@
endif
if !HAVE_SYSTEMD_PROTECT_CONTROL_GROUPS
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectControlGroups/' $@
endif
if !HAVE_SYSTEMD_PROTECT_HOME
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectHome/' $@
endif
if !HAVE_SYSTEMD_PROTECT_HOSTNAME
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectHostname/' $@
endif
if !HAVE_SYSTEMD_PROTECT_KERNEL_LOGS
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelLogs/' $@
endif
if !HAVE_SYSTEMD_PROTECT_KERNEL_MODULES
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelModules/' $@
endif
if !HAVE_SYSTEMD_PROTECT_KERNEL_TUNABLES
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectKernelTunables/' $@
endif
if !HAVE_SYSTEMD_PROTECT_SYSTEM
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectSystem/' $@
endif
if !HAVE_SYSTEMD_RESTRICT_ADDRESS_FAMILIES
$(AM_V_GEN)perl -ni -e 'print unless /^RestrictAddressFamilies/' $@
endif
if !HAVE_SYSTEMD_RESTRICT_NAMESPACES
$(AM_V_GEN)perl -ni -e 'print unless /^RestrictNamespaces/' $@
endif
if !HAVE_SYSTEMD_RESTRICT_REALTIME
$(AM_V_GEN)perl -ni -e 'print unless /^RestrictRealtime/' $@
endif
if !HAVE_SYSTEMD_RESTRICT_SUIDSGID
$(AM_V_GEN)perl -ni -e 'print unless /^RestrictSUIDSGID/' $@
endif
if !HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES
$(AM_V_GEN)perl -ni -e 'print unless /^SystemCallArchitectures/' $@
endif
if !HAVE_SYSTEMD_SYSTEM_CALL_FILTER
$(AM_V_GEN)perl -ni -e 'print unless /^SystemCallFilter/' $@
endif
if !HAVE_SYSTEMD_PROTECT_PROC
$(AM_V_GEN)perl -ni -e 'print unless /^ProtectProc/' $@
endif
if !HAVE_SYSTEMD_PRIVATE_IPC
$(AM_V_GEN)perl -ni -e 'print unless /^PrivateIPC/' $@
endif
if !HAVE_SYSTEMD_REMOVE_IPC
$(AM_V_GEN)perl -ni -e 'print unless /^RemoveIPC/' $@
endif
pdns-recursor@.service: pdns-recursor.service
$(AM_V_GEN)sed -e 's!/pdns_recursor!& --config-name=%i!' \
-e 's!Recursor!& %i!' \
-e 's!SyslogIdentifier=.*!&-%i!' \
< $< > $@
if HAVE_SYSTEMD_PERCENT_T
$(AM_V_GEN)sed -e 's!RuntimeDirectory=.*!&-%i!' \
-e 's!--socket-dir=%t/pdns-recursor!--config-name=%i --socket-dir=%t/pdns-recursor-%i!' -i $@
if !HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV
$(AM_V_GEN)sed -e 's!--socket-dir=[^ ]\+!&-%i !' -i $@
endif
endif
systemdsystemunitdir = $(SYSTEMD_DIR)
systemdsystemunit_DATA = \
pdns-recursor.service \
pdns-recursor@.service
CLEANFILES += \
pdns-recursor.service \
pdns-recursor@.service
endif
if !HAVE_LUA_HPP
include lua_hpp.mk
endif
|