Date: Thu, 10 Apr 2014 18:02:26 -0400 From: Ryan Steinmetz <zi@FreeBSD.org> To: Tijl Coosemans <tijl@FreeBSD.org> Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org Subject: Re: svn commit: r350763 - head/net-mgmt/net-snmp Message-ID: <20140410220226.GA61993@exodus.zi0r.com> In-Reply-To: <20140410102630.65029403@kalimero.tijl.coosemans.org> References: <201404100241.s3A2fDrS077880@svn.freebsd.org> <20140410102630.65029403@kalimero.tijl.coosemans.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140410220226.GA61993>