From owner-freebsd-ports@FreeBSD.ORG Sat Nov 2 11:40:10 2013 Return-Path: Delivered-To: freebsd-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 ESMTP id 58E80E63 for ; Sat, 2 Nov 2013 11:40:10 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E8FEB205D for ; Sat, 2 Nov 2013 11:40:09 +0000 (UTC) Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MgpmG-1VGWSm0PrM-00M1xS for ; Sat, 02 Nov 2013 12:40:08 +0100 Message-ID: <5274E4A0.3010504@gmx.de> Date: Sat, 02 Nov 2013 12:40:16 +0100 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: How to reference /var/foo in pkg-plist? References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:cQicEq9f9WHCrM7SAYmaxT6CRwQXsj4FKqxzYnPte+h6uXKD7/F 0eh97oxadB/tT0U/9N7mTJyfvODahpAr2BS/btKoLmy1zU77lm2ase4/SwIUkxBdsazarbv NkjpmYdB95rUVvXAyKfPDuSB8egHrTQa7hledtJ54yCXfYcJt760FyxKRcBRfbGmW8dFAhQ aTc1x1+QC0k3rEytGaXHA== Cc: Christian Weisgerber X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2013 11:40:10 -0000 On 2013-11-01 23:14, Christian Weisgerber wrote: > Scot Hetzel wrote: > >>> @exec mkdir -pm 770 /var/spool/bsmtp; chown uucp:uucp /var/spool/bsmtp >>> @dirrmtry /var/spool/bsmtp >>> >> The correct way to handle this is to have the port create >> ${STAGEDIR}/var/spool/bsmtp. This could be created in the >> post-install target or in the ${WRKSRC}/Makefile > > Okay, but how do I package this directory then? What entry would > I put in pkg-plist? > > Hmm, actually, this > > @owner uucp > @group uucp > @mode 770 > @dirrmtry /var/spool/bsmtp > @mode > @group > @owner > > produces the desired entry in the package's tar archive > > drwxrwx--- 0 uucp uucp 0 Nov 1 23:07 /var/spool/bsmtp/ > > However, I'm not sure if I'm using this as intended or if it just > happens to work out. > With staging you can use instead mkdir and chown the following in pkg-plist. @exec install -o uucp -g uucp -m 700 -d /var/spool/bsmtp This will work with the finished package and during staging. -- olli