From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 12 16:10:15 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCBBA106567D for ; Fri, 12 Aug 2011 16:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0C08FC12 for ; Fri, 12 Aug 2011 16:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7CGADNU070543 for ; Fri, 12 Aug 2011 16:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7CGADVK070542; Fri, 12 Aug 2011 16:10:13 GMT (envelope-from gnats) Date: Fri, 12 Aug 2011 16:10:13 GMT Message-Id: <201108121610.p7CGADVK070542@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Chris Rees Cc: Subject: Re: ports/157628: [patch] www/red5 remove user data while reinstalling updating X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Rees List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 16:10:16 -0000 The following reply was made to PR ports/157628; it has been noted by GNATS. From: Chris Rees To: joris dedieu Cc: freebsd-ports-bugs@freebsd.org, bug-followup@freebsd.org Subject: Re: ports/157628: [patch] www/red5 remove user data while reinstalling updating Date: Fri, 12 Aug 2011 17:01:01 +0100 On 12 August 2011 16:49, joris dedieu wrote: > 2011/8/12 =A0: >> Synopsis: [patch] www/red5 remove user data while reinstalling updating >> >> State-Changed-From-To: open->feedback >> State-Changed-By: crees >> State-Changed-When: Fri Aug 12 12:23:00 UTC 2011 >> State-Changed-Why: >> Hi Joris, Are you OK to work the fixes in that Olli suggested? If you're >> stuck, one of us will help you, just email. >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D157628 >> > > Hi crees, > As there are many files in conf/ and webapps/root, maybe the best way > is to install them in %%EXEMPLEDIR%%, make a copy =A0if %D/red5/conf and > %D/red5/webapps/root don't exist and remove then only if no > modification occurred. > > Something like : > > @unexec =A0diff -rq =A0%D/%%EXAMPLESDIR%%/conf %D/red5/conf >/dev/null > 2>&1 && rm -fr %D/red5/conf > @exec ! =A0[ -d %D/red5/conf =A0-o -L %D/red5/conf =A0] && cp -RP > %D/%%EXAMPLESDIR%%/conf %D/red5/conf > > What do you think about it ? > > Joris Hm, something like [1] would probably be easier, or we're going to be looking at a monster plist. I'm happy to adapt that script for your port if you'd like, or you can have a play. Let me know! Chris [1] http://www.freebsd.org/cgi/cvsweb.cgi/ports/mail/mailscanner/files/pkg-= install.in?rev=3D1.1;content-type=3Dtext%2Fx-cvsweb-markup