sys-auth/pam_u2f: Fix install-exec-hook to respect DESTDIR

Closes: https://bugs.gentoo.org/793797
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2021-06-02 12:33:33 +02:00
parent d06723c0f5
commit 5a91d497a2
2 changed files with 15 additions and 7 deletions
@@ -0,0 +1,13 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,8 +43,8 @@
# Release
install-exec-hook:
- rm -f $(PAMDIR)/pam_u2f.la
- chmod -f 644 $(PAMDIR)/pam_u2f.so || true
+ rm -f $(DESTDIR)/$(PAMDIR)/pam_u2f.la
+ chmod -f 644 $(DESTDIR)/$(PAMDIR)/pam_u2f.so || true
indent:
clang-format -i *.c *.h pamu2fcfg/*.c pamu2fcfg/*.h
+2 -7
View File
@@ -21,6 +21,8 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/${PN}-1.1.1-fix-Makefile.patch )
src_prepare() {
default
eautoreconf
@@ -30,10 +32,3 @@ src_configure() {
use debug || append-cppflags -UDEBUG_PAM -UPAM_DEBUG
econf --with-pam-dir=$(getpam_mod_dir)
}
src_install() {
default
# plugin only
find "${ED}" -name '*.la' -delete || die
}