ports/114624: phpbb-devel configuration removal on portupgrade
Razor
bg1tpt at gmail.com
Thu Jul 19 02:46:20 UTC 2007
Thanks for your patch. And here is my patch. I made it quiet when
pkg_delete, and use ! name instead of *.
On 7/17/07, Dima Panov <fluffy at ael.ru> wrote:
> On 16 July 2007, Frank Altpeter wrote:
> > >Number: 114624
> > >Category: ports
> > >Synopsis: phpbb-devel configuration removal on portupgrade
> > >Description:
> >
> > Portupgrade of phpbb-devel removes the complete content, including the
> > (user modified) config.php and replaces it with an empty one.
>
> This patch does trick.
>
> ===
> Index: www/phpbb-devel/Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/www/phpbb-devel/Makefile,v
> retrieving revision 1.3
> diff -u -r1.3 Makefile
> --- www/phpbb-devel/Makefile 16 Jul 2007 08:06:21 -0000 1.3
> +++ www/phpbb-devel/Makefile 16 Jul 2007 23:21:12 -0000
> @@ -55,7 +55,9 @@
>
> do-install:
> @ ${MKDIR} -m 0775 ${PREFIX}/${PHPBBDIR}
> - @ cd ${WRKSRC} && ${FIND} . -print | ${TAR} cTf - - | ${TAR} xUCf
> ${PREFIX}/${PHPBBDIR} -
> + @ cd ${WRKSRC} && ${FIND} * \( -name config.php \) -o -print \
> + | ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${PHPBBDIR} -
> + @ ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
> @ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
>
> post-install:
> ===
>
>
> --
> Дмитрий А. Панов
>
> Государственная Академия Экономики и Права
> Хабаровск, Россия
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phpbb-devel.diff
Type: text/x-patch
Size: 1873 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20070719/1666b918/attachment.bin>
More information about the freebsd-ports-bugs
mailing list