[Buildroot] [git commit branch/2019.08.x] package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary
Peter Korsgaard
peter at korsgaard.com
Wed Sep 25 19:44:50 UTC 2019
commit: https://git.buildroot.net/buildroot/commit/?id=4c0f06c08be71effb89bbd66b611ecfd42d36cee
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.08.x
Useful for test purposes when we want to install util-linux with a
custom TARGET_DIR, e.g.
$ make util-linux-reinstall TARGET_DIR=/tmp/util-linux
Signed-off-by: Carlos Santos <unixmania at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 40af3a6661f8d85fef60b6de603e78700f4f86e6)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/util-linux/util-linux.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 99ec39467f..6daca6b5e6 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -236,9 +236,9 @@ endif
# Install PAM configuration files
ifeq ($(BR2_PACKAGE_UTIL_LINUX_SU)$(BR2_PACKAGE_LINUX_PAM),yy)
define UTIL_LINUX_INSTALL_PAMFILES
- $(INSTALL) -m 0644 package/util-linux/su.pam \
+ $(INSTALL) -D -m 0644 package/util-linux/su.pam \
$(TARGET_DIR)/etc/pam.d/su
- $(INSTALL) -m 0644 package/util-linux/su.pam \
+ $(INSTALL) -D -m 0644 package/util-linux/su.pam \
$(TARGET_DIR)/etc/pam.d/su-l
$(UTIL_LINUX_SELINUX_PAMFILES_TWEAK)
endef
More information about the buildroot
mailing list