"Fossies" - the Fresh Open Source Software Archive

Member "pdns-auth-4.2.0/builder-support/debian/recursor/debian-buster/rules" (27 Aug 2019, 1663 Bytes) of package /linux/misc/dns/pdns-auth-4.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/make -f
    2 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
    3 
    4 # Enable hardening features for daemons
    5 # Note: blhc (build log hardening check) will find these false positivies: CPPFLAGS 2 missing, LDFLAGS 1 missing
    6 export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow,+pie
    7 DPKG_EXPORT_BUILDFLAGS = 1
    8 # Include buildflags.mk so we can append to the vars it sets.
    9 include /usr/share/dpkg/buildflags.mk
   10 
   11 # Disable systemd integration on non-linux archs
   12 ifeq ($(DEB_HOST_ARCH_OS),linux)
   13 CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
   14 DH_ARGS += --with systemd
   15 else
   16 CONFIGURE_ARGS += --disable-systemd
   17 endif
   18 
   19 
   20 # Use new build system
   21 %:
   22     dh $@ \
   23       --with autoreconf \
   24       $(DH_ARGS)
   25 
   26 override_dh_auto_configure:
   27     dh_auto_configure -- \
   28         --sysconfdir=/etc/powerdns \
   29         --enable-unit-tests \
   30         --with-lua=luajit \
   31         --with-libcap \
   32         --with-libsodium \
   33         --with-protobuf=yes \
   34         --without-net-snmp \
   35         --disable-silent-rules \
   36         $(CONFIGURE_ARGS)
   37 
   38 override_dh_auto_install:
   39     dh_auto_install
   40     rm -f debian/pdns-recursor/etc/powerdns/recursor.conf-dist
   41     ./pdns_recursor --no-config --config | sed \
   42         -e 's!# config-dir=.*!config-dir=/etc/powerdns!' \
   43         -e 's!# local-address=.*!local-address=127.0.0.1!' \
   44         -e 's!# quiet=.*!quiet=yes!' \
   45         -e 's!# setgid=.*!setgid=pdns!' \
   46         -e 's!# setuid=.*!setuid=pdns!' \
   47         -e 's!# hint-file=.*!&\nhint-file=/usr/share/dns/root.hints!' \
   48         > debian/pdns-recursor/etc/powerdns/recursor.conf
   49 
   50 override_dh_strip:
   51     dh_strip --ddeb-migration='pdns-recursor-dbg'
   52 
   53 override_dh_installinit:
   54     dh_installinit --error-handler=initscript_error
   55 
   56 override_dh_gencontrol:
   57     dh_gencontrol -- $(SUBSTVARS)