From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 77E1E1382C5 for ; Sat, 17 Feb 2018 12:50:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52573E095F; Sat, 17 Feb 2018 12:50:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 21ADBE095F for ; Sat, 17 Feb 2018 12:50:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 237F0335C2C for ; Sat, 17 Feb 2018 12:50:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5D13206 for ; Sat, 17 Feb 2018 12:50:22 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1518871813.0fa69f05d356971a2900b9f0b69d8eabdf6a1bfa.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/shadow/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/shadow/shadow-4.5-r1.ebuild X-VCS-Directories: sys-apps/shadow/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 0fa69f05d356971a2900b9f0b69d8eabdf6a1bfa X-VCS-Branch: master Date: Sat, 17 Feb 2018 12:50:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1545417b-0373-4933-8214-ecc4be1ce79e X-Archives-Hash: 4e4266fc3d5e429f3f041a7fc16fd845 commit: 0fa69f05d356971a2900b9f0b69d8eabdf6a1bfa Author: Lars Wendler gentoo org> AuthorDate: Sat Feb 17 12:49:54 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sat Feb 17 12:50:13 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fa69f05 sys-apps/shadow: EAPI-6 bump. Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-apps/shadow/shadow-4.5-r1.ebuild | 62 +++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/sys-apps/shadow/shadow-4.5-r1.ebuild b/sys-apps/shadow/shadow-4.5-r1.ebuild index f13b863620e..1e3d98f2593 100644 --- a/sys-apps/shadow/shadow-4.5-r1.ebuild +++ b/sys-apps/shadow/shadow-4.5-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="5" +EAPI=6 -inherit eutils libtool pam multilib +inherit libtool pam multilib DESCRIPTION="Utilities to deal with user accounts" HOMEPAGE="https://github.com/shadow-maint/shadow http://pkg-shadow.alioth.debian.org/" @@ -35,31 +35,33 @@ RDEPEND="${RDEPEND} PATCHES=( "${FILESDIR}/${PN}-4.1.3-dots-in-usernames.patch" - "${FILESDIR}/${P}-CVE-2018-7169.patch" + "${FILESDIR}/${P}-CVE-2018-7169.patch" #647790 ) src_prepare() { - epatch "${PATCHES[@]}" - epatch_user + default #eautoreconf elibtoolize } src_configure() { - econf \ - --without-group-name-max-length \ - --without-tcb \ - --enable-shared=no \ - --enable-static=yes \ - $(use_with acl) \ - $(use_with audit) \ - $(use_with cracklib libcrack) \ - $(use_with pam libpam) \ - $(use_with skey) \ - $(use_with selinux) \ - $(use_enable nls) \ - $(use_with elibc_glibc nscd) \ + local myeconfargs=( + --without-group-name-max-length + --without-tcb + --enable-shared=no + --enable-static=yes + $(use_with acl) + $(use_with audit) + $(use_with cracklib libcrack) + $(use_with pam libpam) + $(use_with skey) + $(use_with selinux) + $(use_enable nls) + $(use_with elibc_glibc nscd) $(use_with xattr attr) + ) + econf "${myeconfargs[@]}" + has_version 'sys-libs/uclibc[-rpc]' && sed -i '/RLOGIN/d' config.h #425052 if use nls ; then @@ -77,13 +79,13 @@ set_login_opt() { comment="#" sed -i \ -e "/^${opt}\>/s:^:#:" \ - "${ED}"/etc/login.defs || die + "${ED%/}"/etc/login.defs || die else sed -i -r \ -e "/^#?${opt}\>/s:.*:${opt} ${val}:" \ - "${ED}"/etc/login.defs + "${ED%/}"/etc/login.defs fi - local res=$(grep "^${comment}${opt}\>" "${ED}"/etc/login.defs) + local res=$(grep "^${comment}${opt}\>" "${ED%/}"/etc/login.defs) einfo "${res:-Unable to find ${opt} in /etc/login.defs}" } @@ -95,7 +97,7 @@ src_install() { # Currently, libshadow.a is for internal use only, so if you see # -lshadow in a Makefile of some other package, it is safe to # remove it. - rm -f "${ED}"/{,usr/}$(get_libdir)/lib{misc,shadow}.{a,la} + rm -f "${ED%/}"/{,usr/}$(get_libdir)/lib{misc,shadow}.{a,la} insinto /etc if ! use pam ; then @@ -109,10 +111,10 @@ src_install() { doins "${FILESDIR}"/default/useradd # move passwd to / to help recover broke systems #64441 - mv "${ED}"/usr/bin/passwd "${ED}"/bin/ || die + mv "${ED%/}"/usr/bin/passwd "${ED%/}"/bin/ || die dosym /bin/passwd /usr/bin/passwd - cd "${S}" + cd "${S}" || die insinto /etc insopts -m0644 newins etc/login.defs login.defs @@ -166,27 +168,27 @@ src_install() { -e 'b exit' \ -e ': pamnote; i# NOTE: This setting should be configured via /etc/pam.d/ and not in this file.' \ -e ': exit' \ - "${ED}"/etc/login.defs || die + "${ED%/}"/etc/login.defs || die # remove manpages that pam will install for us # and/or don't apply when using pam - find "${ED}"/usr/share/man \ + find "${ED%/}"/usr/share/man \ '(' -name 'limits.5*' -o -name 'suauth.5*' ')' \ -delete # Remove pam.d files provided by pambase. - rm "${ED}"/etc/pam.d/{login,passwd,su} || die + rm "${ED%/}"/etc/pam.d/{login,passwd,su} || die fi # Remove manpages that are handled by other packages - find "${ED}"/usr/share/man \ + find "${ED%/}"/usr/share/man \ '(' -name id.1 -o -name passwd.5 -o -name getspnam.3 ')' \ -delete - cd "${S}" + cd "${S}" || die dodoc ChangeLog NEWS TODO newdoc README README.download - cd doc + cd doc || die dodoc HOWTO README* WISHLIST *.txt }