sys-auth/pam_mktemp: port to EAPI=7
authorMikle Kolyada <zlogene@gentoo.org>
Tue, 25 Feb 2020 06:59:56 +0000 (09:59 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Tue, 25 Feb 2020 07:01:05 +0000 (10:01 +0300)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
sys-auth/pam_mktemp/files/pam_mktemp-1.1.1-e2fsprogs-libs.patch
sys-auth/pam_mktemp/pam_mktemp-1.1.1.ebuild

index 34e1a8591f77167201b20f3d29bb54bbbca3597c..17c038a832e24ff82b4a779593bfe4dce87a0955 100644 (file)
@@ -1,6 +1,6 @@
 Index: pam_mktemp-1.1.1/pam_mktemp.c
 ===================================================================
---- pam_mktemp-1.1.1.orig/pam_mktemp.c
+--- pam_mktemp-1.1.1/pam_mktemp.c
 +++ pam_mktemp-1.1.1/pam_mktemp.c
 @@ -55,7 +55,7 @@
   */
index ec6e6c77ed21a234658919820d7a164909498473..8c8d209cb314927527873c9f4327c63784bf0eb2 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 
-inherit toolchain-funcs pam eutils
+inherit toolchain-funcs pam
 
 DESCRIPTION="Create per-user private temporary directories during login"
 HOMEPAGE="http://www.openwall.com/pam/"
@@ -16,11 +16,13 @@ IUSE="selinux +prevent-removal"
 
 RDEPEND="sys-libs/pam
        selinux? ( sys-libs/libselinux )"
+
 DEPEND="${RDEPEND}
        prevent-removal? ( sys-kernel/linux-headers )"
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-e2fsprogs-libs.patch
+       default
+       eapply "${FILESDIR}"/${P}-e2fsprogs-libs.patch
 }
 
 src_compile() {
@@ -36,11 +38,3 @@ src_install() {
        dopammod pam_mktemp.so
        dodoc README
 }
-
-pkg_postinst() {
-       elog "To enable pam_mktemp put something like"
-       elog
-       elog "session    optional    pam_mktemp.so"
-       elog
-       elog "into /etc/pam.d/system-auth!"
-}