From: Aristedes M. <ar...@is...> - 2004-05-25 11:51:37
|
I've significantly tidied up the FreeBSD port and brought it up to 1.3.10. I notice that this is marked in Sourceforge as the development branch and 1.2.x is still stable. But since this situation has languished for some time (several years?), will it be changing soon? If so, I'll submit the updated FreeBSD port and make it much easier for FreeBSD users to install and use this package. Ari Maniatis --------------------------> ish group pty ltd http://www.ish.com.au 7 Darghan St Glebe 2037 Australia phone +61 2 9660 1400 fax +61 2 9660 7400 PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8 |
From: Reini U. <ru...@x-...> - 2004-05-25 12:52:15
|
Aristedes Maniatis schrieb: > I've significantly tidied up the FreeBSD port and brought it up to > 1.3.10. I notice that this is marked in Sourceforge as the development > branch and 1.2.x is still stable. But since this situation has > languished for some time (several years?), will it be changing soon? 1.2.x can only be used with register_globals = on. Stable means, that no development is done on this branch besides smaller bugfixes which appear from time to time. (dba lately) I would consider 1.3.x more stable than 1.2.x, because it reacts better on unfriendly or unusual environments. > If so, I'll submit the updated FreeBSD port and make it much easier for > FreeBSD users to install and use this package. Please post the patch or package url. I am curious how to changed the default installation for FreeBSD, since normally nothing had to be changed IMHO. Maybe a postinstall script? Debian decided to use a /etc/phpwiki/config.ini -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Aristedes M. <ar...@is...> - 2004-05-25 13:12:43
|
On 25/05/2004, at 10:54 PM, Reini Urban wrote: > Aristedes Maniatis schrieb: >> I've significantly tidied up the FreeBSD port and brought it up to >> 1.3.10. I notice that this is marked in Sourceforge as the >> development branch and 1.2.x is still stable. But since this >> situation has languished for some time (several years?), will it be >> changing soon? > > 1.2.x can only be used with register_globals = on. I've found this was necessary on 1.3.10 as well. Not a good idea. I better try again with it off and see if I made a mistake. I had a bit of trouble until I realised that php cached everything in the config/config.ini until I restarted apache. I also had problems with variables_order = "GPCS". Shouldn't you be using getenv()? > Stable means, that no development is done on this branch besides > smaller bugfixes which appear from time to time. (dba lately) > I would consider 1.3.x more stable than 1.2.x, because it reacts > better on unfriendly or unusual environments. Then may I suggest you mark it as such in Sourceforge and I'll get the FreeBSD committers to CVS my port once I've ironed out the bugs. >> If so, I'll submit the updated FreeBSD port and make it much easier >> for FreeBSD users to install and use this package. > > Please post the patch or package url. > I am curious how to changed the default installation for FreeBSD, > since normally nothing had to be changed IMHO. Maybe a postinstall > script? Well, it started because you changed a lot of folder names. So I cleaned that up. Then I tried to make it work better and break less in the future. Then I put things in more sensible paths and put in a little documentation about how to get it to work once you've finished. I'll post what I've got so far, but isn't quite done...I've got a problem right now with sed, but I'll get that sorted. > > Debian decided to use a /etc/phpwiki/config.ini Yes, I thought about that, but I wasn't sure about the problems with getting apache to read that directory properly since it is outside docroot. I wanted to keep changes to httpd.conf to a minimum since they are very hard to automate. Ari Maniatis PORTNAME= phpwiki PORTVERSION= 1.3.10 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= phpwiki MSG_SKEL= ${PKGDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message MAINTAINER= di...@Fr... COMMENT= A PHP WikiWikiWeb .if defined(WITH_APACHE2) RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/${PHP4_PORT} .else RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/${PHP4_PORT} .endif NO_BUILD= YES PHP4_PORT?= www/mod_php4 PHPWIKI?= www/phpwiki PLIST_SUB+= PHPWIKI=${PHPWIKI} pre-install: # @${SED} -e 's,%%PHPWIKI%%,${PHPWIKI},g' \ # -e 's,%%PREFIX%%,${PREFIX},g' ${MSG_SKEL} > ${PKGMESSAGE} @${CP} ${MSG_SKEL} ${PKGMESSAGE} do-install: @${MKDIR} ${PREFIX}/${PHPWIKI} @${CP} -Rp ${WRKSRC}/* ${PREFIX}/${PHPWIKI} @${CHOWN} -R www:www ${PREFIX}/${PHPWIKI} @${CHMOD} -R 755 ${PREFIX}/${PHPWIKI} @${TEST} -f ${PREFIX}/${PHPWIKI}/config/config.ini || \ ${CP} ${PREFIX}/${PHPWIKI}/config/config-dist.ini \ ${PREFIX}/${PHPWIKI}/config/config.ini post-install: @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> --------------------------> ish group pty ltd http://www.ish.com.au 7 Darghan St Glebe 2037 Australia phone +61 2 9660 1400 fax +61 2 9660 7400 PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8 |
From: Reini U. <ru...@x-...> - 2004-05-25 15:27:30
|
Aristedes Maniatis schrieb: > > On 25/05/2004, at 10:54 PM, Reini Urban wrote: > >> Aristedes Maniatis schrieb: >> >>> I've significantly tidied up the FreeBSD port and brought it up to >>> 1.3.10. I notice that this is marked in Sourceforge as the >>> development branch and 1.2.x is still stable. But since this >>> situation has languished for some time (several years?), will it be >>> changing soon? >> >> >> 1.2.x can only be used with register_globals = on. > > > I've found this was necessary on 1.3.10 as well. Not a good idea. I > better try again with it off and see if I made a mistake. I had a bit of > trouble until I realised that php cached everything in the > config/config.ini until I restarted apache. hmm, strange. php doesn't cache config.ini for our 1.3.x installations. we even recommend register_globals = off in our sample .htaccess file. > I also had problems with variables_order = "GPCS". Shouldn't you be > using getenv()? for 1.2.x yes, for 1.3.x not. We query $HTTP_ENV_VARS directly if used as CGI, otherwise $HTTP_SERVER_VARS. >> Stable means, that no development is done on this branch besides >> smaller bugfixes which appear from time to time. (dba lately) >> I would consider 1.3.x more stable than 1.2.x, because it reacts >> better on unfriendly or unusual environments. > > Then may I suggest you mark it as such in Sourceforge and I'll get the > FreeBSD committers to CVS my port once I've ironed out the bugs. well, that's debatable. 1.2.x is per this definition "stable", even if 1.3.x is problem-wise more stable. of course as with every development branch new features and new config options create new problems. >>> If so, I'll submit the updated FreeBSD port and make it much easier >>> for FreeBSD users to install and use this package. >> >> Please post the patch or package url. >> I am curious how to changed the default installation for FreeBSD, >> since normally nothing had to be changed IMHO. Maybe a postinstall >> script? > > > Well, it started because you changed a lot of folder names. So I cleaned > that up. Then I tried to make it work better and break less in the > future. Then I put things in more sensible paths and put in a little > documentation about how to get it to work once you've finished. I'll > post what I've got so far, but isn't quite done...I've got a problem > right now with sed, but I'll get that sorted. You mean from 1.2.x to 1.3.x? I'm really interested in the "make it work better and break less in the future"... :) >> Debian decided to use a /etc/phpwiki/config.ini > > Yes, I thought about that, but I wasn't sure about the problems with > getting apache to read that directory properly since it is outside > docroot. I wanted to keep changes to httpd.conf to a minimum since they > are very hard to automate. imho, you only have to: chmod 775 /etc/phpwiki/ chgrp www /etc/phpwiki/ /etc/phpwiki/config.ini no change to http.conf required. phpwiki/index.php tries to read config.ini directly. > PORTNAME= phpwiki > PORTVERSION= 1.3.10 > CATEGORIES= www > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= phpwiki > > MSG_SKEL= ${PKGDIR}/pkg-message > PKGMESSAGE= ${WRKDIR}/pkg-message > > MAINTAINER= di...@Fr... > COMMENT= A PHP WikiWikiWeb > > .if defined(WITH_APACHE2) > RUN_DEPENDS+= > ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/${PHP4_PORT} > .else > RUN_DEPENDS+= > ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/${PHP4_PORT} > .endif > > NO_BUILD= YES > PHP4_PORT?= www/mod_php4 > PHPWIKI?= www/phpwiki > PLIST_SUB+= PHPWIKI=${PHPWIKI} > > pre-install: > # @${SED} -e 's,%%PHPWIKI%%,${PHPWIKI},g' \ > # -e 's,%%PREFIX%%,${PREFIX},g' ${MSG_SKEL} > ${PKGMESSAGE} > @${CP} ${MSG_SKEL} ${PKGMESSAGE} > > do-install: > @${MKDIR} ${PREFIX}/${PHPWIKI} > @${CP} -Rp ${WRKSRC}/* ${PREFIX}/${PHPWIKI} > @${CHOWN} -R www:www ${PREFIX}/${PHPWIKI} > @${CHMOD} -R 755 ${PREFIX}/${PHPWIKI} > > @${TEST} -f ${PREFIX}/${PHPWIKI}/config/config.ini || \ > ${CP} ${PREFIX}/${PHPWIKI}/config/config-dist.ini \ > ${PREFIX}/${PHPWIKI}/config/config.ini > > post-install: > @${CAT} ${PKGMESSAGE} > > .include <bsd.port.mk> -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |