diff --git a/debian/HOME_MODE.xml b/debian/HOME_MODE.xml new file mode 100644 index 00000000..21aa55f7 --- /dev/null +++ b/debian/HOME_MODE.xml @@ -0,0 +1,43 @@ + + + (number) + + + The mode for new home directories. If not specified, + the is used to create the mode. + + + useradd and newusers use this + to set the mode of the home directory they create. + + + diff --git a/debian/rules b/debian/rules index 69837656..93ac7ba7 100755 --- a/debian/rules +++ b/debian/rules @@ -37,6 +37,7 @@ 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: @@ -81,3 +82,6 @@ override_dh_builddeb-arch: 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