Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2011 17:01:01 +0100
From:      Chris Rees <crees@freebsd.org>
To:        joris dedieu <joris.dedieu@gmail.com>
Cc:        freebsd-ports-bugs@freebsd.org, bug-followup@freebsd.org
Subject:   Re: ports/157628: [patch] www/red5 remove user data while reinstalling updating
Message-ID:  <CADLo83889LCr6S59RdaeJrYukbnPnnpsnnG2q_OUpCtVjnfBaA@mail.gmail.com>
In-Reply-To: <CAPd55qDwexB7d0rG_q9WHXVMEdnfC1FS0fZCJE0nEAovc76bhw@mail.gmail.com>
References:  <201108121223.p7CCN1wM047583@freefall.freebsd.org> <CAPd55qDwexB7d0rG_q9WHXVMEdnfC1FS0fZCJE0nEAovc76bhw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12 August 2011 16:49, joris dedieu <joris.dedieu@gmail.com> wrote:
> 2011/8/12 =A0<crees@freebsd.org>:
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83889LCr6S59RdaeJrYukbnPnnpsnnG2q_OUpCtVjnfBaA>