From owner-freebsd-ports@FreeBSD.ORG Fri Nov 1 22:47:54 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 20377A06 for ; Fri, 1 Nov 2013 22:47:54 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C7F612DCB for ; Fri, 1 Nov 2013 22:47:53 +0000 (UTC) Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mx.arcor.de (Postfix) with ESMTP id E6E9B30123 for ; Fri, 1 Nov 2013 23:14:31 +0100 (CET) Received: from mail-in-18.arcor-online.net (mail-in-18.arcor-online.net [151.189.21.58]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id E448E563058 for ; Fri, 1 Nov 2013 23:14:31 +0100 (CET) X-Greylist: Passed host: 92.75.222.25 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-18.arcor-online.net CF3CD3DC340 Received: from lorvorc.mips.inka.de (dslb-092-075-222-025.pools.arcor-ip.net [92.75.222.25]) by mail-in-18.arcor-online.net (Postfix) with ESMTPS id CF3CD3DC340 for ; Fri, 1 Nov 2013 23:14:31 +0100 (CET) Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.7/8.14.7) with ESMTP id rA1MEV21082260 for ; Fri, 1 Nov 2013 23:14:31 +0100 (CET) (envelope-from mailnull@lorvorc.mips.inka.de) Received: (from mailnull@localhost) by lorvorc.mips.inka.de (8.14.7/8.14.7/Submit) id rA1MEVkX082259 for freebsd-ports@freebsd.org; Fri, 1 Nov 2013 23:14:31 +0100 (CET) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: How to reference /var/foo in pkg-plist? Date: Fri, 1 Nov 2013 22:14:31 +0000 (UTC) Message-ID: References: Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org 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: Fri, 01 Nov 2013 22:47:54 -0000 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. -- Christian "naddy" Weisgerber naddy@mips.inka.de