All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] Provide PAM default configuration files when building linux-pam package
Date: Thu, 23 Aug 2012 23:22:02 +0200	[thread overview]
Message-ID: <50369EFA.5010708@mind.be> (raw)
In-Reply-To: <1345001603-16774-2-git-send-email-golubovsky@gmail.com>

On 08/15/12 05:33, Dmitry wrote:
> +define LINUX_PAM_CONFFILES
> +	mkdir -p $(TARGET_DIR)/etc/pam.d
> +	cp $($(PKG)_DIR_PREFIX)/$(RAWNAME)/default $(TARGET_DIR)/etc/pam.d
> +	cp $($(PKG)_DIR_PREFIX)/$(RAWNAME)/login $(TARGET_DIR)/etc/pam.d
> +endef

  We normally hard-code the directory name: the build is always executed from
the buildroot directory, and the package directory normally doesn't change.
So:
	cp package/linux-pam/default $(TARGET_DIR)/etc/pam.d
This will also allow you to do it in the post-install hook.

  Also, I would use $(INSTALL) instead of cp (but that's personal preference,
cp is used in other places as well):
	$(INSTALL) -D -m 0644 package/linux-pam/default $(TARGET_DIR)/etc/pam.d/default
(since it uses -D, the mkdir can be removed).

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2012-08-23 21:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-15  3:33 [Buildroot] [PATCH 1/2] PAM support in Busybox if linux-pam is built Dmitry
2012-08-15  3:33 ` [Buildroot] [PATCH 2/2] Provide PAM default configuration files when building linux-pam package Dmitry
2012-08-23 21:22   ` Arnout Vandecappelle [this message]
2012-08-23 22:33     ` Dmitry Golubovsky
  -- strict thread matches above, loose matches on Subject: below --
2012-09-04  3:28 [Buildroot] [PATCH 1/2] PAM support in Busybox if linux-pam is built Dmitry
2012-09-04  3:28 ` [Buildroot] [PATCH 2/2] Provide PAM default configuration files when building linux-pam package Dmitry
2012-09-04 17:02   ` Yann E. MORIN
2012-09-04 17:33     ` Dmitry Golubovsky
2012-09-04 17:52       ` Yann E. MORIN
2012-09-04 18:03         ` Dmitry Golubovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50369EFA.5010708@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.