ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] iptables and bdm/gdb build the MPC8349mITX


From: Stuart Hughes
Subject: Re: [Ltib] iptables and bdm/gdb build the MPC8349mITX
Date: Fri, 05 Jan 2007 14:36:11 +0000

Hi Tobias,

You have it more or less right.  Putting the symlinkery in
sysconfig.spec is okay, but the selection process stuff should go into
config/userspace/sysconfig.lkc

So maybe something like this would work:

In sysconfig.lkc (put if after the time setup?):

config SYSCFG_TIMEZONE
    depends PKG_TIMEZONE
    default "GMT"
    string "timezone configuration"
    help
       Set this to your timezone located in "/usr/share/zoneinfo".
       A symbolic link will be created from "/etc/localtime" to
       the selected timezone.

and then in: sysconfig.spec (after the qtopia if/then/fi stuff):

if [ "$SYSCFG_TIMEZONE" ]; then
    ln -s /usr/share/zoneinfo/$SYSCFG_TIMEZONE 
$RPM_BUILD_ROOT/%{pfx}/etc/localtime
fi

You should probably also add:  SYSCFG_TIMEZONE to the list of items in
the $config_deps hash for the entry PKG_SYSCONFIG.  What this does is
force the package to build/install if that config item gets changed.

Also note that for uClibc this may not work the same way IIRC.  If you
get it working and check it in, can you let me know.

Regards, Stuart

>     ln -s $PATH_TO_ROOT_DIR/$SYSCFG_TIMEZONE $PATH_TO_ROOT_DIR/etc/localtime
> fi

On Fri, 2007-01-05 at 10:17 +0100, Tobias Simon wrote:
> Hello Group,
> 
> I am trying to bring the "/etc/localtime" symlink into the sysconfig package.
> My first question is: is this the right place to do something like that 
> (where 
> $SYSCFG_TIMEZONE is a path):
> 
> # timezone
> if [ "$SYSCFG_TIMEZONE" ]; then
>     ln -s $PATH_TO_ROOT_DIR/$SYSCFG_TIMEZONE $PATH_TO_ROOT_DIR/etc/localtime
> fi
> 
> ... where $PATH_TO_ROOT_DIR is a placeholder. Unfortunately I do not know if 
> there is a environment variable like that.
> 
> In "config/userspace/packages.lkc" I added the following:
> config SYSCFG_TIMEZONE
>     depends PKG_TIMEZONE
>     default "/usr/share/zoneinfo/GMT"
>     string "timezone configuration"
>     help
>        Set this to your timezone located in "/usr/share/zoneinfo".
>        A symbolic link will be created from "/etc/localtime" to
>        the selected timezone.
> 
> I hope anyone can help me with this.
> 
> 
> Regards,
> Tobi
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]