FreeBSD Bugzilla – Attachment 23102 Details for
Bug 39856
Horde apps: ${PERL} -> ${REINPLACE_CMD}
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 6.72 KB, created by
Thierry Thomas
on 2002-06-25 23:00:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Thierry Thomas
Created:
2002-06-25 23:00:09 UTC
Size:
6.72 KB
patch
obsolete
>diff -urN /usr/ports/www/horde2.orig/Makefile /usr/ports/www/horde2/Makefile >--- /usr/ports/www/horde2.orig/Makefile Tue Jun 18 20:28:49 2002 >+++ /usr/ports/www/horde2/Makefile Mon Jun 24 22:15:13 2002 >@@ -34,6 +34,9 @@ > RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 > > NO_BUILD= yes >+USE_REINPLACE= yes >+ >+REINPLACE_ARGS= -i.beforeHorde > DOCS= COPYING README docs/CHANGES docs/CODING_STANDARDS \ > docs/CONTRIBUTING docs/CREDITS docs/HACKING docs/INSTALL > CONFFILE= html.php lang.php mime_drivers.php mime_mapping.php \ >@@ -92,33 +95,35 @@ > @${CP} -p ${WRKSRC}/*.php ${HORDEDIR} > @if [ ! -f ${CONFDIR}/horde.php ]; then \ > ${CP} ${CONFDIR}/horde.php.dist ${CONFDIR}/horde.php ; \ >- ${PERL} -pi -e "s:/var/www/htdocs/horde/templates:${HORDEDIR}/templates:g" \ >- ${CONFDIR}/horde.php ; \ >- ${PERL} -pi -e "s:/tmp/horde.log:${LOG_FILE}:g" ${CONFDIR}/horde.php ; \ >+ ${REINPLACE_CMD} -e "s:/tmp/horde.log:${LOG_FILE}:g" ${CONFDIR}/horde.php ; \ >+ ${RM} ${CONFDIR}/horde.php.beforeHorde ; \ > fi >- @${PERL} -pi -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:g" \ >+ @${REINPLACE_CMD} -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:g" \ > ${HORDEDIR}/lib/Auth/mcal.php >+ @${RM} ${HORDEDIR}/lib/Auth/mcal.php.beforeHorde > .for FILE in ${CONFFILE} > @if [ ! -f ${CONFDIR}/${FILE} ]; then \ > ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ > fi > .endfor >- @${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${CONFDIR}/mime_drivers.php >+ @${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${CONFDIR}/mime_drivers.php >+ @${RM} ${CONFDIR}/mime_drivers.php.beforeHorde > @${CP} ${WRKSRC}/scripts/set_perms.sh ${HORDESBIN}/horde_set_perms.sh >- @${PERL} -pi -e "s:UPDATED_BY_THE_PORT:${HORDEDIR}/:g" \ >+ @${REINPLACE_CMD} -e "s:UPDATED_BY_THE_PORT:${HORDEDIR}/:g" \ > ${HORDESBIN}/horde_set_perms.sh >+ @${RM} ${HORDESBIN}/horde_set_perms.sh.beforeHorde > @${CHMOD} u+x ${HORDESBIN}/horde_set_perms.sh > @(if [ -f ${APACHE_CONF} ] ; then \ >- ${MKDIR} ${HORDE_INC} ; \ >- ${CP} -p ${FILESDIR}/httpd.conf.horde ${HORDE_INC} ; \ >- ${PERL} -pi -e "s:/home/httpd/html/horde:${HORDEDIR}:g" ${HORDE_INC}/httpd.conf.horde ; \ >- ${PERL} -pi -e "s:/home/httpd/phplib:${PHP_LIB}:g" ${HORDE_INC}/httpd.conf.horde ; \ >- ${ECHO_MSG} "===> Updating ${APACHE_CONF}..." ; \ >- ${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeHorde ; \ >- ${PERL} -pi -e "s:php_value auto_prepend_file:# php_value auto_prepend_file:g" ${APACHE_CONF} ; \ >- ${PERL} -pi -e "s:${HORDEDIR}/phplib:${PHP_LIB}:g" ${APACHE_CONF} ; \ >- ${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \ >- ${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \ >+ ${MKDIR} ${HORDE_INC} ; \ >+ ${CP} -p ${FILESDIR}/httpd.conf.horde ${HORDE_INC} ; \ >+ ${REINPLACE_CMD} -e "s:/home/httpd/html/horde:${HORDEDIR}:g ; \ >+ s:/home/httpd/phplib:${PHP_LIB}:g" ${HORDE_INC}/httpd.conf.horde ; \ >+ ${RM} ${HORDE_INC}/httpd.conf.horde.beforeHorde ; \ >+ ${ECHO_MSG} "===> Updating ${APACHE_CONF}..." ; \ >+ ${REINPLACE_CMD} -e "s:php_value auto_prepend_file:# php_value auto_prepend_file:g ; \ >+ s:${HORDEDIR}/phplib:${PHP_LIB}:g" ${APACHE_CONF} ; \ >+ ${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \ >+ ${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \ > fi) > @${CHOWN} -R www:www ${HORDEDIR} > @${CHMOD} -R o-rwx ${CONFDIR} >@@ -129,7 +134,8 @@ > .for FILE in ${DOCS} > @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} > .endfor >- @${PERL} -pi -e "s:/usr/local/apache/htdocs/horde:${DOCSDIR}:g" ${DOCSDIR}/INSTALL >+ @${REINPLACE_CMD} -e "s:/usr/local/apache/htdocs:${PREFIX}/www:g" ${DOCSDIR}/INSTALL >+ @${RM} ${DOCSDIR}/INSTALL.beforeHorde > @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." > .endif > >diff -urN /usr/ports/www/horde2.orig/files/patch-ab /usr/ports/www/horde2/files/patch-ab >--- /usr/ports/www/horde2.orig/files/patch-ab Thu May 16 20:44:45 2002 >+++ /usr/ports/www/horde2/files/patch-ab Mon Jun 24 22:00:14 2002 >@@ -1,5 +1,5 @@ >---- config/horde.php.dist.orig Sat Mar 9 19:43:35 2002 >-+++ config/horde.php.dist Wed Mar 13 01:21:30 2002 >+--- config/horde.php.dist.orig Sat Jun 1 01:57:03 2002 >++++ config/horde.php.dist Mon Jun 24 21:59:21 2002 > @@ -75,7 +75,7 @@ > > // What backend should we use for authenticating users to Horde? Valid >@@ -9,18 +9,9 @@ > > // An array holding any parameters that the Auth object will need to > // function correctly. >-@@ -106,7 +106,7 @@ >- // and for sql it would be the table name to use. For the 'syslog' >- // driver it is the facility as a _constant_ (with no quotes), e.g.: >- // ... = LOG_LOCAL0; >--$conf['log']['name'] = '/tmp/horde.log'; >-+$conf['log']['name'] = '/var/log/horde.log'; >- >- // What level of messages should we log? The values are LOG_EMERG, >- // LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, > @@ -131,7 +131,7 @@ > // (meaning use system defaults and don't save any user preferences), >- // 'session' (preferences only persist during the login), 'ldap', >+ // 'session' (preferences only persist during the login), 'ldap', > // and 'sql'. > -$conf['prefs']['driver'] = 'none'; > +$conf['prefs']['driver'] = 'sql'; >@@ -44,18 +35,18 @@ > +$conf['prefs']['params']['database'] = 'horde'; > +$conf['prefs']['params']['table'] = 'horde_prefs'; > >- >- /** >-@@ -177,7 +177,7 @@ >- // function correctly. For sendmail, this is mainly the sendmail_path >- // option; SMTP requires at least a server and a port (if nonstandard). >+ // This is an example configuration for an LDAP preference backend. >+ // The schemas needed for ldap are in horde/scripts/ldap. For more >+@@ -195,7 +195,7 @@ >+ // If you want to use SMTP authentication, set the 'auth' parameter >+ // to 'true' (without quotes). > $conf['mailer']['params'] = array(); > -// $conf['mailer']['params'] = array('sendmail_path' => '/usr/lib/sendmail'); > +// $conf['mailer']['params'] = array('sendmail_path' => '/usr/sbin/sendmail'); > // $conf['mailer']['params'] = array('host' => 'smtp.example.com'); > > >-@@ -223,3 +223,9 @@ >+@@ -241,3 +241,9 @@ > // Should we use DHTML to display a floating menu of Horde appliation > // links, instead of a frame? > $conf['menu']['floating_bar'] = false; >diff -urN /usr/ports/www/horde2.orig/pkg-deinstall /usr/ports/www/horde2/pkg-deinstall >--- /usr/ports/www/horde2.orig/pkg-deinstall Sun Nov 25 17:06:56 2001 >+++ /usr/ports/www/horde2/pkg-deinstall Mon Jun 24 22:22:45 2002 >@@ -8,6 +8,7 @@ > if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeHorde ] ; then > echo "Restoring httpd.conf..." > cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstHorde >- perl -pi -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \ >+ sed_inplace -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \ > ${PKG_PREFIX}/etc/apache/httpd.conf >+ rm ${PKG_PREFIX}/etc/apache/httpd.conf.tmp > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39856
: 23102 |
23103
|
23104
|
23105
|
23106
|
23107