diff options
author | David Seifert <soap@gentoo.org> | 2021-06-02 12:33:33 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-02 12:33:33 +0200 |
commit | 5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570 (patch) | |
tree | b1ad3b2351d66678a928d49a1e540165f6a9d1c6 /sys-auth/pam_u2f | |
parent | dev-ada/gnatmem: bump to 2021 (diff) | |
download | gentoo-5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570.tar.gz gentoo-5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570.tar.bz2 gentoo-5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570.zip |
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>
Diffstat (limited to 'sys-auth/pam_u2f')
-rw-r--r-- | sys-auth/pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch | 13 | ||||
-rw-r--r-- | sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild | 9 |
2 files changed, 15 insertions, 7 deletions
diff --git a/sys-auth/pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch b/sys-auth/pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch new file mode 100644 index 000000000000..5ce95aa3b91b --- /dev/null +++ b/sys-auth/pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch @@ -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 diff --git a/sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild b/sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild index 5d50caedc754..a8dd23c88d43 100644 --- a/sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild +++ b/sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild @@ -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 -} |