Name pam
Description
Version
Package Base
Homepage
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Steve Langasek <vorlon@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/pam/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/0003-pam_unix-obscure-checks.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/008_modules_pam_limits_chroot?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/022_pam_unix_group_time_miscfixes?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/026_pam_unix_passwd_unknown_user?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/027_pam_limits_better_init_allow_explicit_root?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/031_pam_include?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/032_pam_limits_EPERM_NOT_FATAL?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/036_pam_wheel_getlogin_considered_harmful?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/040_pam_limits_log_failure?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/045_pam_dispatch_jump_is_ignore?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/PAM-manpage-section?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/extrausers.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/fix-autoreconf.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/ftbfs-implicit-function-declaration?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/hurd_no_setfsuid?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/lib_security_multiarch_compat?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/make_documentation_reproducible.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/no_PATH_MAX_on_hurd?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/nullok_secure-compat.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam-limits-nofile-fd-setsize-cap?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam_env-remove-deprecation-notice-for-user_readenv.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam_mkhomedir_stat_before_opendir?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam_motd-legal-notice?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam_namespace_o_directory?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam_umask_usergroups_from_login.defs.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/pam_unix_dont_trust_chkpwd_caller.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/ubuntu-rlimit_nice_correction?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/update-motd-manpage-ref?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/patches/update-motd?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pam/plain/debian/watch?h=ubuntu/noble']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dh-exec', 'flex', 'libcrypt-dev', 'libdb-dev', 'libselinux1-dev [linux-any]', 'libsystemd-dev [linux-any] <!stage1>', 'po-debconf', 'autopoint', 'libaudit-dev [linux-any] <!stage1>', 'pkg-config', 'libfl-dev', 'libfl-dev', 'docbook-xsl-ns', 'docbook5-xml', 'xsltproc', 'libxml2-utils', 'w3m']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash
#!/usr/bin/make -f

DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs
DEB_CFLAGS_MAINT_APPEND  := $(shell getconf LFS_CFLAGS)
DEB_BUILD_MAINT_OPTIONS  := hardening=+bindnow
export DEB_LDFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND DEB_BUILD_MAINT_OPTIONS
ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH_OS),hurd)
DEB_LDFLAGS_MAINT_APPEND += -lpthread
endif

DEB_HOST_MULTIARCH	?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

LC_COLLATE=C
export LC_COLLATE


d = $(CURDIR)/debian
dl = $(d)/local

%:
	dh $@


# avoid libaudit-dev when bootstrapping
ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES)))
  CONFIGURE_OPTS += --disable-audit
endif

CONFIGURE_OPTS += --enable-logind

override_dh_auto_configure:
	# Explicitly set libdir, sbindir to avoid upstream's override logic.
	dh_auto_configure -- --enable-static --enable-shared \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--sbindir=/usr/sbin \
		--enable-isadir=/usr/lib/security \
		--with-systemdunitdir=/usr/lib/systemd/system \
		--disable-nis \
		--enable-usergroups \
		$(CONFIGURE_OPTS)
	chmod 775 modules/pam_faillock/tst-pam_faillock

# .install files don't have "except for" handling, so we need to exclude
# our module that doesn't match right here
override_dh_install:
	dh_install
	# Make sure the md5sums for the templates we ship are
	# recognized by pam-auth-update.
	for f in common-auth common-session common-session-noninteractive common-account common-password; do \
	if grep -q $$(perl debian/template-md5sum debian/local/$$f ) debian/local/pam-auth-update; then \
	    echo $$f okay; \
	else \
	    echo md5sum for $$f not registered in debian/local/pam-auth-update; \
	    echo use debian/template-md5sum to compute; \
	    exit 2; \
	fi; \
	done



# again, excluding files by hand; also, build our local manpage for pam_getenv
# from the XML
override_dh_installman:
	pod2man --section 8 --release="Debian GNU/Linux" $(dl)/pam_getenv >$(dl)/pam_getenv.8
	dh_installman
	rm -f $(d)/libpam-modules/usr/share/man/man5/pam.conf.5
	rm -f $(d)/libpam-modules/usr/share/man/man8/pam_timestamp_check.8
	rm -f $(d)/libpam-modules/usr/share/man/man8/pam_namespace_helper.8

# using perms that differ from upstream (sgid instead of suid) /and/ that
# dh_fixperms doesn't want
override_dh_fixperms:
	dh_fixperms
ifneq (,$(findstring libpam-modules, $(shell dh_listpackages)))
	chgrp shadow $(d)/libpam-modules-bin/usr/sbin/unix_chkpwd
	chmod 02755 $(d)/libpam-modules-bin/usr/sbin/unix_chkpwd
	chgrp shadow $(d)/libpam-modules-bin/usr/sbin/pam_extrausers_chkpwd
	chmod 02755 $(d)/libpam-modules-bin/usr/sbin/pam_extrausers_chkpwd
endif

override_dh_installchangelogs:
	dh_installchangelogs NEWS