pcp
[Top] [All Lists]

Re: [pcp] pmdabash makefile question

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] pmdabash makefile question
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 22 Jul 2013 23:32:03 -0400 (EDT)
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <51EDF768.2040607@xxxxxxxxxxxxxxxx>
References: <51EDF768.2040607@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: K90hNHt2RUyyfjUPlWHmi1Bk8x4z1g==
Thread-topic: pmdabash makefile question

----- Original Message -----
> Can someone please explain what this fragment from the GNUmakefile for
> the bash PMDA is trying to achieve?  I understand the gmake syntax, I'm
> asking about the intent!
> 
> ifeq "$(findstring $(PCP_TMP_DIR),/var/tmp /tmp)" ""
>          $(INSTALL) -m 1777 -d $(PCP_TMP_DIR)/pmdabash
> endif
> 

Its trying to say "if PCP_TMP_DIR points to somewhere other than /tmp
or /var/tmp, then we want to install this directory with that mode".

IIRC it was to fit in with a debian packaging guideline/rule that
meant for that platform, we couldn't have mode 777 dirs outside of
the usual places (lintian complains bitterly IIRC).

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>