diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/debian/rules b/debian/rules index 6256182..7d20ba6 100755 --- a/debian/rules +++ b/debian/rules @@ -5,26 +5,36 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +include /usr/share/debhelper/dh_package_notes/package-notes.mk # Adds extra options when calling the configure script: -DEB_CONFIGURE_EXTRA_FLAGS := --without-libcrack \ +DEB_CONFIGURE_EXTRA_FLAGS := \ --mandir=/usr/share/man \ --with-libpam \ --with-yescrypt \ --enable-shadowgrp \ + --enable-subordinate-ids \ + --enable-lastlog=no \ --enable-man \ --disable-account-tools-setuid \ --with-group-name-max-length=32 \ - --without-acl \ - --without-attr \ + --with-acl \ + --with-attr \ --without-su \ --without-tcb \ - SHELL=/bin/sh + + +ifneq ($(DEB_HOST_ARCH_OS),linux) +DEB_CONFIGURE_EXTRA_FLAGS += --enable-logind +DEB_CONFIGURE_EXTRA_FLAGS += --with-audit +endif ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) DEB_CONFIGURE_EXTRA_FLAGS += --disable-man endif +DEB_CONFIGURE_EXTRA_FLAGS += SHELL=/bin/sh + # Set the default editor for vipw/vigr CFLAGS += -DDEFAULT_EDITOR="\"sensible-editor\"" @@ -32,7 +42,6 @@ CFLAGS += -DDEFAULT_EDITOR="\"sensible-editor\"" dh $@ override_dh_auto_configure: - cp debian/HOME_MODE.xml man/login.defs.d/HOME_MODE.xml dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS) override_dh_install-arch: @@ -58,6 +67,3 @@ override_dh_installpam: override_dh_auto_clean: sed -i 's/# Linux only # //' debian/login.pam dh_auto_clean - -override_dh_clean: - dh_clean ./man/login.defs.d/HOME_MODE.xml |