From owner-freebsd-ports@FreeBSD.ORG Tue Jul 1 14:50:35 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B66D6FD3; Tue, 1 Jul 2014 14:50:35 +0000 (UTC) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E2E328EE; Tue, 1 Jul 2014 14:50:34 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id 10so7094836lbg.9 for ; Tue, 01 Jul 2014 07:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UQOa82hpPvpFmDVabSSR5WfMqX0FDh0M/Mak0n5WO3o=; b=Gp+jrZc+GN9QfjdEoBkUcbAmKYMwtjCjqAciXiKMw+zYkbnyRbifFOSY+C2B4SDxTK M4oIPOIQhllxn5PhONN7nDGiGB9k0uGti0Yz76oXZglUAXRf6vwkyq3zlLAinD1804nR 2Xz9fMwTLaM1DGqgkHOss4a4DbYdzURX3ZlsDvTs0/SAqu2h6YwV1Kw87iTFgfDRIeOm IldB7z5jBDfKz9ZYhRLec+H+j9a+18HNq8Vcj/idYwi4pleByA5LXNDlKQHVHS/8EZiL DU1P9vn3yqEHKoebTsW2EZ9xs06UyBf96MFnTzOuGUCJSrPO0Ueb1vB7GYnUPQgob9yG OnUA== X-Received: by 10.152.5.194 with SMTP id u2mr35895567lau.1.1404226232937; Tue, 01 Jul 2014 07:50:32 -0700 (PDT) Received: from ?IPv6:2a02:6b8::408:5423:2eb0:fd9f:6310? ([2a02:6b8:0:408:5423:2eb0:fd9f:6310]) by mx.google.com with ESMTPSA id tj1sm23089425lbb.40.2014.07.01.07.50.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 07:50:31 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: problem with @exec in pkg-plist From: Dmitry Sivachenko In-Reply-To: <20140701164038.293a0819@kalimero.tijl.coosemans.org> Date: Tue, 1 Jul 2014 18:50:29 +0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5BB0CB32-A70C-4B8F-B10B-BD410DB326A8@gmail.com> <20140701164038.293a0819@kalimero.tijl.coosemans.org> To: Tijl Coosemans X-Mailer: Apple Mail (2.1878.2) Cc: "ports@freebsd.org Ports" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2014 14:50:35 -0000 On 01 =D0=B8=D1=8E=D0=BB=D1=8F 2014 =D0=B3., at 18:40, Tijl Coosemans = 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!=