From patchwork Sat Sep 14 16:41:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1162362 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p7bzlftZ"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Vyvv4Bylz9sN1 for ; Sun, 15 Sep 2019 02:42:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5696688268; Sat, 14 Sep 2019 16:42:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25nFcz0aL6u6; Sat, 14 Sep 2019 16:41:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C6C778827F; Sat, 14 Sep 2019 16:41:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 7EF621BF37B for ; Sat, 14 Sep 2019 16:41:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6DD4120338 for ; Sat, 14 Sep 2019 16:41:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uKMnxWSZwVHc for ; Sat, 14 Sep 2019 16:41:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by silver.osuosl.org (Postfix) with ESMTPS id 944FF2012D for ; Sat, 14 Sep 2019 16:41:57 +0000 (UTC) Received: by mail-qt1-f173.google.com with SMTP id r15so37832842qtn.12 for ; Sat, 14 Sep 2019 09:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=en2MfYTJMJcgk3j+AquKakSTRbuROeKr7RU7/KPN1nI=; b=p7bzlftZi2BJeMDIbuuFM+VSP6wxF1P7SjeMLvVoxZscBFg1jXlv9xT8qJXKlIWoqI dmWCL0JeBAw1vcxQxkoeBRTY/SujDaMSs5iAzuiopd5oeKYNjG33ydKQvM6o4oWMmPpp PCPB/W2wkCILozNKiyFEZZ0dnLwUIiUS4jbEpjdkH0EadvXCezy4O+ykZL4cc+wH2d/k hlzIUBtwetQL2BNsATHidnAonqhYnMvBG3iYS98B40W0HCfYlsIygQ8zuktu1Wvh3MKk the5EjTqcWoQyi589REc/QunOyPEnnWWWnbUwTaxQ6tq4wM/qiovzs0arP/iI6WLPUIA hzng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=en2MfYTJMJcgk3j+AquKakSTRbuROeKr7RU7/KPN1nI=; b=jmwoR7SeVQ4oPd5lRoArYqZ7zCPvndVeEHb52kd2X7ux5RhAO6+fFEA7hTnq2pH86B cIInyZ+d8BgZQcQi5d2+BRg4HYuzmxRdeZCXFT7eKsNxvwgrO5zvwyKY3ydQh9wbecAr mt9hKG/GX6TBoTOUbo3UYCleVPLNDKG6rWs1f40YLdjfRfpGPu0Z+y19+vDiAFxRS3a0 CW7MCBw/ntuF13ey7JV+ixUbNHDkTDRJbl8j7h1WnPCsxshFrqHBKdzes8wKDTb7T4K9 ScacKTBzjPHuHlOAs2M9k3QZ+bdMcjMISGJQhb5FTe65yNckI8rysdUQYJQVq2Fn3C67 SGcQ== X-Gm-Message-State: APjAAAU9uBkyeoIAuR77wyPrNxKdCFngcy3u6EI4tKJw6WxJoAm1V2Ql YgjY/EWOQ0i4ibyEptwIvqIg4KdQ X-Google-Smtp-Source: APXvYqxM4uKi2/zp4/OVO+1N7Cj1p1poKvVtRc3K7U5Uap3+2hp0LAnMJ7NOXCZHSECBJy6z0RLFaw== X-Received: by 2002:ac8:46d0:: with SMTP id h16mr9393925qto.303.1568479316290; Sat, 14 Sep 2019 09:41:56 -0700 (PDT) Received: from casantos.remote.csb (201.22.211.83.dynamic.adsl.gvt.net.br. [201.22.211.83]) by smtp.gmail.com with ESMTPSA id k2sm9500957qti.24.2019.09.14.09.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2019 09:41:55 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sat, 14 Sep 2019 13:41:43 -0300 Message-Id: <20190914164143.4644-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH] package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos 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 --- package/util-linux/util-linux.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index 99ec39467f..cd69838046 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -236,7 +236,7 @@ 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 \ $(TARGET_DIR)/etc/pam.d/su-l