ports/114624: phpbb-devel configuration removal on portupgrade
Dima Panov
fluffy at ael.ru
Mon Jul 16 23:23:37 UTC 2007
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:
===
--
Дмитрий А. Панов
Государственная Академия Экономики и Права
Хабаровск, Россия
More information about the freebsd-ports-bugs
mailing list