Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 185413
Collapse All | Expand All

(-)pam-0.99.8.0-r2.ebuild.orig (-3 / +3 lines)
Lines 36-42 Link Here
36
check_old_modules() {
36
check_old_modules() {
37
	local retval="0"
37
	local retval="0"
38
38
39
	if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q pam_stack.so; then
39
	if find /etc/pam.d/ -mindepth 1 -maxdepth 1 -type f -print0 | xargs -0 -r sed -e 's:#.*::' | fgrep -q pam_stack.so; then
40
		eerror ""
40
		eerror ""
41
		eerror "Your current setup is using the pam_stack module."
41
		eerror "Your current setup is using the pam_stack module."
42
		eerror "This module is deprecated and no more supported, and since version"
42
		eerror "This module is deprecated and no more supported, and since version"
Lines 52-58 Link Here
52
		retval=1
52
		retval=1
53
	fi
53
	fi
54
54
55
	if sed -e 's:#.*::' /etc/pam.d/* | egrep -q 'pam_(pwdb|radius|timestamp)'; then
55
	if find /etc/pam.d/ -mindepth 1 -maxdepth 1 -type f -print0 | xargs -0 -r sed -e 's:#.*::' | egrep -q 'pam_(pwdb|radius|timestamp)'; then
56
		eerror ""
56
		eerror ""
57
		eerror "Your current setup is using one or more of the following modules,"
57
		eerror "Your current setup is using one or more of the following modules,"
58
		eerror "that are not built or supported anymore:"
58
		eerror "that are not built or supported anymore:"
Lines 71-77 Link Here
71
	# This works only for those modules that are moved to sys-auth/$module, or the
71
	# This works only for those modules that are moved to sys-auth/$module, or the
72
	# message will be wrong.
72
	# message will be wrong.
73
	for module in pam_chroot pam_console pam_userdb; do
73
	for module in pam_chroot pam_console pam_userdb; do
74
		if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q ${module}.so; then
74
		if find /etc/pam.d/ -mindepth 1 -maxdepth 1 -type f -print0 | xargs -0 -r sed -e 's:#.*::' | fgrep -q ${module}.so; then
75
			ewarn ""
75
			ewarn ""
76
			ewarn "Your current setup is using the ${module} module."
76
			ewarn "Your current setup is using the ${module} module."
77
			ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module"
77
			ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module"

Return to bug 185413