#!/usr/bin/make -f BUILDDIR := DEB-BUILD DH_AUTO_OPTIONS := -v -Sautoconf -B$(BUILDDIR) --parallel DESTDIR := $(CURDIR)/debian/$(shell dh_listpackages) DEB_BUILD_MAINT_OPTIONS := hardening=+all # The build system doesn't use CPPFLAGS, pass them to CFLAGS to enable the # missing (hardening) flags. DEB_CFLAGS_MAINT_APPEND := $(shell getconf LFS_CFLAGS) \ $(shell dpkg-buildflags --get CPPFLAGS) \ -DDEBIAN -Wall DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs DPKG_EXPORT_BUILDFLAGS := 1 include /usr/share/dpkg/buildflags.mk include /usr/share/dpkg/architecture.mk ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CC := $(DEB_HOST_GNU_TYPE)-gcc else CC := gcc endif %: dh "$@" override_dh_auto_configure: CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ dh_auto_configure $(DH_AUTO_OPTIONS) -- \ --localstatedir=/var/lib/solid-pop3d \ --program-transform-name="s/^spop3d$$/solid-pop3d/" \ --enable-pam \ --enable-apop \ --enable-mailbox \ --enable-maildir \ --enable-configfile \ --enable-expire \ --enable-userconfig \ --enable-bulletins \ --enable-last \ --enable-mapping \ --enable-nonip \ --enable-createmail \ --enable-ipv6 \ --enable-resolve \ --enable-connect \ --enable-logextend \ --enable-statistics \ --enable-standalone \ # --enable-allowroot override_dh_auto_build: dh_auto_build $(DH_AUTO_OPTIONS) override_dh_auto_clean: dh_auto_clean $(DH_AUTO_OPTIONS) override_dh_auto_install: dh_auto_install $(DH_AUTO_OPTIONS) --destdir="$(DESTDIR)" dh_install debian/spop3d.conf etc sh debian/fix_manpages.sh $(DESTDIR)