From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 12 16:14:50 2011 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6662B106566B for ; Fri, 12 Aug 2011 16:14:50 +0000 (UTC) (envelope-from joris.dedieu@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 34F908FC08 for ; Fri, 12 Aug 2011 16:14:49 +0000 (UTC) Received: by iye7 with SMTP id 7so5918523iye.17 for ; Fri, 12 Aug 2011 09:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=83vCtw6qH/BNdX4lTyN0pJExQ96YMLCIgZ6kJwsCQak=; b=TAR8llcqsgH0ugdxLB6U+hINpLcW14Ve2BKORYs4GO8JSMUiM3MQQpzqOOi5NaGR2p ngSJk7wN+u+nBtT01CLbuCm/IoL7vNQvSnZM+4ErrFw4Qji4MjVe10QIV2vosyOPnop+ gNlVIvZ+xPmKRVTnTjPPWQbkHP2jGrzeyrKdA= MIME-Version: 1.0 Received: by 10.231.130.15 with SMTP id q15mr2225904ibs.8.1313164163879; Fri, 12 Aug 2011 08:49:23 -0700 (PDT) Received: by 10.231.13.204 with HTTP; Fri, 12 Aug 2011 08:49:23 -0700 (PDT) In-Reply-To: <201108121223.p7CCN1wM047583@freefall.freebsd.org> References: <201108121223.p7CCN1wM047583@freefall.freebsd.org> Date: Fri, 12 Aug 2011 17:49:23 +0200 Message-ID: From: joris dedieu To: crees@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports-bugs@freebsd.org 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 List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 16:14:50 -0000 2011/8/12 : > 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=157628 > 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 if %D/red5/conf and %D/red5/webapps/root don't exist and remove then only if no modification occurred. Something like : @unexec diff -rq %D/%%EXAMPLESDIR%%/conf %D/red5/conf >/dev/null 2>&1 && rm -fr %D/red5/conf @exec ! [ -d %D/red5/conf -o -L %D/red5/conf ] && cp -RP %D/%%EXAMPLESDIR%%/conf %D/red5/conf What do you think about it ? Joris