Re: ports/157628: [patch] www/red5 remove user data while reinstalling updating

[ Available lists | Index of freebsd-ports-bugs | Month of Aug 2011 | Week of 12 Aug 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
joris dedieu <joris.dedieu@gmail.com>
Date
12 Aug 2011 16:14:50
Subject
Re: ports/157628: [patch] www/red5 remove user data while reinstalling updating
Message-ID
CAPd55qDwexB7d0rG_q9WHXVMEdnfC1FS0fZCJE0nEAovc76bhw@mail.gmail.com

In reply to
References to
Replies
Referenced by

[ Hide this part ]
2011/8/12  <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=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


Elapsed time: 0.110 seconds