[FUG-BR] Alterando a timezone no php

Rodrigo Brito brito.bsd em gmail.com
Quarta Outubro 17 11:50:09 BRST 2007


Caro Giancarlo,

Estou com o seguinte erro ao executar o seu script, poderia nos ajudar?

sh timezone.php
c - pecl-timezonedb/
x - pecl-timezonedb/Makefile
x - pecl-timezonedb/distinfo
x - pecl-timezonedb/pkg-descr
x - pecl-timezonedb/patch-Makefile
timezone.php: 49: Syntax error: newline unexpected


Obrigado.

Rodrigo Brito

2007/10/15, Giancarlo Rubio <gianrubio em gmail.com>:
>
> Srs:
>
> Acabei de postar a solucao para atualiza o timezone do php. Acabei de
> aprender a usar o shar para criar um scriptzinho que atualiza
> automatico se vc lere vera que ele apenas altera o distinfo
> (assinatura md5) e o distversion
>
> Para rodar sincronize seu ports
> #portsnap fetch update
>
> Salve o script no diretorio /usr/ports/misc/ e apenas execute-o
> #sh  timezone.php
>
> Segue o script
>
> ##################
> echo c - pecl-timezonedb/
> mkdir -p pecl-timezonedb/ > /dev/null 2>&1
> echo x - pecl-timezonedb/Makefile
> sed 's/^X//' >pecl-timezonedb/Makefile <<
> 'END-of-pecl-timezonedb/Makefile'
> X# Ports collection makefile for:  pecl-timezonedb
> X# Date created:                          20 Oct 2006
> X# Whom:                                  Marcus Alves Grando <
> mnag em FreeBSD.org>
> X#
> X# $FreeBSD: ports/misc/pecl-timezonedb/Makefile,v 1.4 2007/04/21
> 00:41:43 mnag Exp $
> X#
> X
> XPORTNAME=      timezonedb
> XDISTVERSION=   2007.8
> XCATEGORIES=    misc
> XMASTER_SITES=  http://pecl.php.net/get/
> XPKGNAMEPREFIX= pecl-
> XEXTRACT_SUFX=  .tgz
> XDIST_SUBDIR=   PECL
> X
> XMAINTAINER=    mnag em FreeBSD.org
> XCOMMENT=       Timezone Database to be used with PHP's date and time
> functions
> X
> XUSE_PHP=       yes
> XUSE_PHPEXT=    yes
> XPHP_MODNAME=   timezonedb
> XIGNORE_WITH_PHP=4
> X
> XCONFIGURE_ARGS=        --enable-timezonedb
> X
> X.include <bsd.port.mk>
> END-of-pecl-timezonedb/Makefile
> echo x - pecl-timezonedb/distinfo
> sed 's/^X//' >pecl-timezonedb/distinfo <<
> 'END-of-pecl-timezonedb/distinfo'
> XMD5 (PECL/timezonedb-2007.8.tgz) = 4d4efe289a0547a164873a7d15b86424
> XSHA256 (PECL/timezonedb-2007.8.tgz) =
> 99f3b3bfb0155ebe9f08e8f5107cbe194c3f6d60ee1ac4c40422386187fe3e2a
> XSIZE (PECL/timezonedb-2007.8.tgz) = 177801
> END-of-pecl-timezonedb/distinfo
> echo x - pecl-timezonedb/pkg-descr
> sed 's/^X//' >pecl-timezonedb/pkg-descr <<
> 'END-of-pecl-timezonedb/pkg-descr'
> XThis extension is a drop-in replacement for the builtin timezone database
> that
> Xcomes with PHP. You should only install this extension in case you need
> to get
> Xa later version of the timezone database then the one that ships with
> PHP.
> X
> XWWW:   http://pecl.php.net/package/timezonedb
> END-of-pecl-timezonedb/pkg-descr
> echo x - pecl-timezonedb/patch-Makefile
> sed 's/^X//' >pecl-timezonedb/patch-Makefile <<
> 'END-of-pecl-timezonedb/patch-Makefile'
> X--- Makefile.orig      Mon Oct 15 20:47:03 2007
> X+++ Makefile   Mon Oct 15 20:39:28 2007
> X@@ -6,7 +6,7 @@
> X #
> X
> X PORTNAME=     timezonedb
> X-DISTVERSION=  2007.5
> X+DISTVERSION=  2007.8
> X CATEGORIES=   misc
> X MASTER_SITES= http://pecl.php.net/get/
> X PKGNAMEPREFIX=        pecl-
> END-of-pecl-timezonedb/patch-Makefile
> echo x - pecl-timezonedb/Makefile.orig
> sed 's/^X//' >pecl-timezonedb/Makefile.orig <<
> 'END-of-pecl-timezonedb/Makefile.orig'
> X# Ports collection makefile for:  pecl-timezonedb
> X# Date created:                          20 Oct 2006
> X# Whom:                                  Marcus Alves Grando <
> mnag em FreeBSD.org>
> X#
> X# $FreeBSD: ports/misc/pecl-timezonedb/Makefile,v 1.4 2007/04/21
> 00:41:43 mnag Exp $
> X#
> X
> XPORTNAME=      timezonedb
> XDISTVERSION=   2007.5
> XCATEGORIES=    misc
> XMASTER_SITES=  http://pecl.php.net/get/
> XPKGNAMEPREFIX= pecl-
> XEXTRACT_SUFX=  .tgz
> XDIST_SUBDIR=   PECL
> X
> XMAINTAINER=    mnag em FreeBSD.org
> XCOMMENT=       Timezone Database to be used with PHP's date and time
> functions
> X
> XUSE_PHP=       yes
> XUSE_PHPEXT=    yes
> XPHP_MODNAME=   timezonedb
> XIGNORE_WITH_PHP=4
> X
> XCONFIGURE_ARGS=        --enable-timezonedb
> X
> X.include <bsd.port.mk>
> END-of-pecl-timezonedb/Makefile.orig
> echo x - pecl-timezonedb/distinfo.orig
> sed 's/^X//' >pecl-timezonedb/distinfo.orig <<
> 'END-of-pecl-timezonedb/distinfo.orig'
> XMD5 (PECL/timezonedb-2007.5.tgz) = 8c73725678581ba81f56b83afaa56282
> XSHA256 (PECL/timezonedb-2007.5.tgz) =
> dd6fa6ca2193cb36dd84bcefe56b48f0d37ef25d480b45d13557d6a8c612cd9b
> XSIZE (PECL/timezonedb-2007.5.tgz) = 177842
> END-of-pecl-timezonedb/distinfo.orig
> exit
>
> Att
> --
> Giancarlo Rubio
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>



-- 
Atenciosamente,

Rodrigo Brito - [ brito.bsd em gmail.com ]

Linux & BSD's - Viver é aprender!


Mais detalhes sobre a lista de discussão freebsd