mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
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:
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user