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
|
#!/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)
|