From owner-freebsd-ports@FreeBSD.ORG Sat Nov 2 10:18:51 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 98D05DA2 for ; Sat, 2 Nov 2013 10:18:51 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2864E2CA8 for ; Sat, 2 Nov 2013 10:18:51 +0000 (UTC) Received: from [10.121.24.15] ([46.115.117.24]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M1nOg-1Vwhm12obS-00tmcT for ; Sat, 02 Nov 2013 11:18:49 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: How to reference /var/foo in pkg-plist? From: Matthias Andree Date: Sat, 02 Nov 2013 11:18:42 +0100 To: naddy@mips.inka.de,freebsd-ports@freebsd.org Message-ID: <5552c29e-5265-45ef-8d06-a44ba3eecb2a@email.android.com> X-Provags-ID: V03:K0:sEAs5Co2HTL+bD7wKc008Yx3RSpX4dXHWtAgsVlL5H61Mocle3C EaFzosvPUSy/VLFhaoaWQRAJL7P52NOG3INywQ7Fe7puAyNVDDMf71OiGNG6mH1nYTV5/oF TnZC/SN01FLiYqdUHOUmetUe+pUUXUvk/nlV5vryGkLY0ccbuuA+IZIvPBtP19mejAtUy2P i0dIgDVBkzghhLHXGUpSQ== Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 10:18:51 -0000 naddy@mips=2Einka=2Ede schrieb: >Scot Hetzel wrote= : > >> > @exec mkdir -pm 770 /var/spool/bsmtp; chown uucp:uucp >/var/spoo= l/bsmtp >> > @dirrmtry /var/spool/bsmtp >> > >> The correct way to handle= this is to have the port create >> ${STAGEDIR}/var/spool/bsmtp=2E This co= uld 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 > @mo= de 770 > @dirrmtry /var/spool/bsmtp > @mode > @group > @owner > >produc= es the desired entry in the package's tar archive > >drwxrwx--- 0 uucp u= ucp 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=2E > >-- >Chris= tian "naddy" Weisgerber >naddy@mips=2Einka=2Ede > = >_______________________________________________ >freebsd-ports@freebsd=2Eo= rg mailing list >http://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-port= s >To unsubscribe, send any mail to >"freebsd-ports-unsubscribe@freebsd=2Eo= rg" It works only for pkgNG, traditional packages do not package the direc= tory=2E From owner-freebsd-ports@FreeBSD.ORG Sat Nov 2 10:19:57 2013 Return-Path: Delivered-To: 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 198DFE51 for ; Sat, 2 Nov 2013 10:19:57 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E5DC2CBE for ; Sat, 2 Nov 2013 10:19:56 +0000 (UTC) Received: from [10.121.24.15] ([46.115.117.24]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LmrZY-1W8J9y3q7o-00h2so for ; Sat, 02 Nov 2013 11:19:55 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <20131101161253.GC55318@graf.pompo.net> References: <20131031142025.GA10968@graf.pompo.net> <20131101101150.3560bd31@kalimero.tijl.coosemans.org> <20131101161253.GC55318@graf.pompo.net> MIME-Version: 1.0 Subject: Re: Stage and /var ? From: Matthias Andree Date: Sat, 02 Nov 2013 11:19:51 +0100 To: Thierry Thomas ,ports@FreeBSD.org Message-ID: X-Provags-ID: V03:K0:hMkSDsvYCQyC/vjbhifgjsOudJUlDC59KcPbM02w/plQ8KZ9c4u nAj7Jx7vdl4pNYxhxM3lqcMlSorgLhcHKgdzm1Y9wnihOvN8cfuIuANjO82+ypJXg/NlrGW b5Ab1YMgxaamzoyHR6f3+frH3lIhmeL91uo47sLeNE3hpPtILgn8zTlr43T5OXgnl8ic8rq cSgXmZKl7nVCoP4KiASaw== Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 10:19:57 -0000 Thierry Thomas schrieb: >Le ven 1 nov 13 =C3=A0 = 10:11:50 +0100, Tijl Coosemans > =C3=A9crivait=C2=A0: = > >> Something like this should work: >> >> >> In post-install do: ${MKDI= R} /var/foo >> >> In pkg-plist add: >> >> @unexec rmdir /var/foo 2>/dev/n= ull || true >> @exec mkdir -p /var/foo > >Thanks for this, it could be usef= ul for some other ports=2E > >About net/neubot (just committed), I removed = the creation of the >directory from the Makefile, and it still works: it's = created anyway >when the application creates its database=2E > >Regards, >-= - >Th=2E Thomas=2E This only works with pkgNG, not traditional pkg_=2E=2E= =2E tools=2E From owner-freebsd-ports@FreeBSD.ORG Sat Nov 2 11:33:17 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 01A5BBE2 for ; Sat, 2 Nov 2013 11:33:17 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay008.isp.belgacom.be (mailrelay008.isp.belgacom.be [195.238.6.174]) by mx1.freebsd.org (Postfix) with ESMTP id 90F2D2FEB for ; Sat, 2 Nov 2013 11:33:16 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQGANrhdFJR8nUw/2dsb2JhbABZgwfBB4EhF3SCJQEBBTocHgUQCxgJJQ8SGB4Zh28DEwGzKw2Ja4xogSWBSweELgOWH4FqjFOFN4MnO4Es Received: from 48.117-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.117.48]) by relay.skynet.be with ESMTP; 02 Nov 2013 12:33:09 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id rA2BX70I002912; Sat, 2 Nov 2013 12:33:08 +0100 (CET) (envelope-from tijl@coosemans.org) Date: Sat, 2 Nov 2013 12:33:06 +0100 From: Tijl Coosemans To: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: How to reference /var/foo in pkg-plist? Message-ID: <20131102123306.6dc56e4f@kalimero.tijl.coosemans.org> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: 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: Sat, 02 Nov 2013 11:33:17 -0000 On Fri, 1 Nov 2013 22:14:31 +0000 (UTC) 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. Try something like this in pkg-plist: @unexec rm -d /var/foo 2>/dev/null || true @exec install -d -o uucp -g uucp -m 0770 /var/foo The directory is created on installation and removed (if empty) on deletion, but is not actually part of the package archive.