Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 2014 18:50:29 +0400
From:      Dmitry Sivachenko <trtrmitya@gmail.com>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        "ports@freebsd.org Ports" <ports@freebsd.org>
Subject:   Re: problem with @exec in pkg-plist
Message-ID:  <FD9F8E3D-1A9E-4003-863B-B2DE0125C35F@gmail.com>
In-Reply-To: <20140701164038.293a0819@kalimero.tijl.coosemans.org>
References:  <5BB0CB32-A70C-4B8F-B10B-BD410DB326A8@gmail.com> <20140701164038.293a0819@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01 =D0=B8=D1=8E=D0=BB=D1=8F 2014 =D0=B3., at 18:40, Tijl Coosemans =
<tijl@FreeBSD.org> wrote:

> On Tue, 1 Jul 2014 17:42:07 +0400 Dmitry Sivachenko wrote:
>> Hello!
>>=20
>> I have the following line in my pkg-plist:
>>=20
>> @exec install -d -o root -g %%HADOOP_GROUP%% -m 0775 =
%%HADOOP_LOGDIR%%
>>=20
>> After installation, directory is created without write access for =
group:
>>=20
>> # ls -la /var/log/hadoop/
>> total 4
>> drwxr-xr-x  2 root  hadoop   512  1 =D0=B8=D1=8E=D0=BB 17:39 .
>>=20
>>=20
>> What am I missing?
>=20
> Replace "rmdir" with "rm -d" on this line:
>=20
> @unexec rmdir %%HADOOP_LOGDIR%% 2>/dev/null || true
>=20
> The new pkg treats @dirrm and @dirrmtry as directory entries that, =
like
> file entries, can have their own owner, group and mode.  But, to =
support
> the old pkg_install @dirrmtry is implemented as @unexec rmdir, so pkg
> treats @unexec rmdir as a regular directory entry too.


Oh, dear...  Thanks, that works!=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD9F8E3D-1A9E-4003-863B-B2DE0125C35F>