diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2021-01-03 19:05:01 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2021-01-03 19:05:46 +0300 |
commit | fee11650d4ab5efa79e6064d15896a82752da6f2 (patch) | |
tree | 8edb652ba116dcc8d28aef5d617e9fba9bb7ed30 /eclass/pam.eclass | |
parent | net-im/neochat: New package (diff) | |
download | gentoo-fee11650d4ab5efa79e6064d15896a82752da6f2.tar.gz gentoo-fee11650d4ab5efa79e6064d15896a82752da6f2.tar.bz2 gentoo-fee11650d4ab5efa79e6064d15896a82752da6f2.zip |
eclass/pam.eclass: remove deprecated functionality
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'eclass/pam.eclass')
-rw-r--r-- | eclass/pam.eclass | 47 |
1 files changed, 2 insertions, 45 deletions
diff --git a/eclass/pam.eclass b/eclass/pam.eclass index 97fcb89d3f5b..c9de612469b1 100644 --- a/eclass/pam.eclass +++ b/eclass/pam.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: pam.eclass @@ -14,7 +14,7 @@ if [[ -z ${_PAM_ECLASS} ]]; then _PAM_ECLASS=1 -inherit flag-o-matic multilib +inherit flag-o-matic # @FUNCTION: dopamd # @USAGE: <file> [more files] @@ -210,47 +210,4 @@ cleanpamd() { done } -# @FUNCTION: pam_epam_expand -# @USAGE: <pamd file> -# @DESCRIPTION: -# Steer clear, deprecated, don't use, bad experiment -pam_epam_expand() { - sed -n -e 's|#%EPAM-\([[:alpha:]-]\+\):\([-+<>=/.![:alnum:]]\+\)%#.*|\1 \2|p' \ - "$@" | sort -u | while read condition parameter; do - - disable="yes" - - case "$condition" in - If-Has) - message="This can be used only if you have ${parameter} installed" - has_version "$parameter" && disable="no" - ;; - Use-Flag) - message="This can be used only if you enabled the ${parameter} USE flag" - use "$parameter" && disable="no" - ;; - *) - eerror "Unknown EPAM condition '${condition}' ('${parameter}')" - die "Unknown EPAM condition '${condition}' ('${parameter}')" - ;; - esac - - if [ "${disable}" = "yes" ]; then - sed -i -e "/#%EPAM-${condition}:${parameter/\//\\/}%#/d" "$@" - else - sed -i -e "s|#%EPAM-${condition}:${parameter}%#||" "$@" - fi - - done -} - -# Think about it before uncommenting this one, for now run it by hand -# pam_pkg_preinst() { -# eshopts_push -o noglob # so that bash doen't expand "*" -# -# pam_epam_expand "${D}"/etc/pam.d/* -# -# eshopts_pop # reset old shell opts -# } - fi |