From owner-svn-ports-head@FreeBSD.ORG Thu Apr 10 22:02:40 2014 Return-Path: Delivered-To: svn-ports-head@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 D961BA71; Thu, 10 Apr 2014 22:02:40 +0000 (UTC) Received: from exodus.zi0r.com (exodus.zi0r.com [71.245.171.203]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "exodus.zi0r.com", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A636C19D6; Thu, 10 Apr 2014 22:02:40 +0000 (UTC) Received: from exodus.zi0r.com (localhost [127.0.0.1]) by exodus.zi0r.com (Postfix) with ESMTP id 252713DC59; Thu, 10 Apr 2014 18:02:33 -0400 (EDT) X-Virus-Scanned: amavisd-new at zi0r.com Received: from exodus.zi0r.com ([127.0.0.1]) by exodus.zi0r.com (exodus.zi0r.com [127.0.0.1]) (amavisd-new, port 10026) with LMTP id CYy45qwJJCls; Thu, 10 Apr 2014 18:02:32 -0400 (EDT) Received: from exodus.zi0r.com (syn.zi0r.com [71.245.171.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by exodus.zi0r.com (Postfix) with ESMTPSA id CD0EB3DC57; Thu, 10 Apr 2014 18:02:31 -0400 (EDT) Date: Thu, 10 Apr 2014 18:02:26 -0400 From: Ryan Steinmetz To: Tijl Coosemans Subject: Re: svn commit: r350763 - head/net-mgmt/net-snmp Message-ID: <20140410220226.GA61993@exodus.zi0r.com> References: <201404100241.s3A2fDrS077880@svn.freebsd.org> <20140410102630.65029403@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20140410102630.65029403@kalimero.tijl.coosemans.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 22:02:40 -0000 FYI This is incorrect, per bdrewery. The correct syntax is: @unexec rmdir /var/dir 2>/dev/null || true -r On (04/10/14 10:26), Tijl Coosemans wrote: >On Thu, 10 Apr 2014 02:41:13 +0000 (UTC) Ryan Steinmetz wrote: >> @@ -622,3 +621,4 @@ sbin/snmptrapd >> @cwd / >> @exec mkdir -p var/agentx >> @unexec rmdir var/agentx 2>/dev/null || true >> +@dirrmtry /var/agentx > >@dirrmtry doesn't work with absolute paths. > >You can replace these 4 lines with: > >@exec mkdir -p /var/agentx >@unexec rm -d /var/agentx 2>/dev/null || true > >This should work with both the old pkg_install and the new pkg. -- Ryan Steinmetz PGP: 9079 51A3 34EF 0CD4 F228 EDC6 1EF8 BA6B D028 46D7