From owner-svn-ports-all@freebsd.org Fri Aug 19 01:20:29 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66794BBF90D; Fri, 19 Aug 2016 01:20:29 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1AC41164F; Fri, 19 Aug 2016 01:20:28 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id aYTrb84GvnROdaYTsbJgKD; Thu, 18 Aug 2016 19:20:21 -0600 X-Authority-Analysis: v=2.2 cv=eo2d9chX c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=7z1cN_iqozsA:10 a=ylX8_5QwAAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=tULsBB48uLnrhVx3XtQA:9 a=iZyaqenN3ho1YRgQTAlP:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id CD87E13753; Thu, 18 Aug 2016 18:20:18 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id u7J1KIcF090022; Thu, 18 Aug 2016 18:20:18 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201608190120.u7J1KIcF090022@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Adam Weinberger cc: Cy Schubert , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r420435 - in head/sysutils: cfengine33 cfengine34 cfengine35 cfengine36 cfengine37 cfengine38 cfengine39 In-Reply-To: Message from Adam Weinberger of "Thu, 18 Aug 2016 19:11:49 -0600." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 18 Aug 2016 18:20:18 -0700 X-CMAE-Envelope: MS4wfACMIu1HdiACkSZwRO6bLJYf2CjtdaQ2PE7KB4jpgCgoW1nSp+WDFaYTQpdYIqiAldaYG3g9W8axvxlfTSqY2ORJhja9eDVMJP9b3ISr212EBRJFTwuw gRyGSBr7EY2svkwOW6jhVUunrdziQSwYwFXgS7euw1ZoFzFp2D1/X/1sxErg+4AAbM8eTUHHRGqJEiiIihmZ9mTFmFpZ1XkWBbSGs0r3Oh8EQsjFE3TL3k2B XpZHvOGuGoZyV/R/mqSeEcHneBGcNEUBfcv6IkIfjPiGkjIiwli1/4dcqMQLN+y+R7W6QfHGh4H+wBlF4Zp2yQ== X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 01:20:29 -0000 In message , Adam Weinberger wr ites: > > On 18 Aug, 2016, at 18:37, Cy Schubert wrote: > > > > Author: cy > > Date: Fri Aug 19 00:37:47 2016 > > New Revision: 420435 > > URL: https://svnweb.freebsd.org/changeset/ports/420435 > > > > Log: > > Update @unexec with modern @postunexec. > > > > Modified: head/sysutils/cfengine33/pkg-plist > > =========================================================================== > === > > --- head/sysutils/cfengine33/pkg-plist Thu Aug 18 23:28:59 2016 > (r420434) > > +++ head/sysutils/cfengine33/pkg-plist Fri Aug 19 00:37:47 2016 > (r420435) > > > > -@unexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || : > > +@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || : > > Why not just plain old > @dir /var/cfengine/inputs > @dir will happily ignore non-empty directories. > > And combining with your next commit, you can just > @dir(root,wheel,700) /var/cfengine/ppkeys Does that not delete the directory upon package deletion? If upgrading, you're left with no keys, no data. I suppose though, this could work because the directories would have data and would not be deleted, except for a nasty message to the user. Either way, it's a hack. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.