[SM-Commit] GIT changes to master z-rejected grimoire by Julien ROZO (3be725f12d1715c27cb37d31bc7ce4f63ca55d7b)

Eric Sandall eric at sandall.us
Mon Nov 10 06:09:42 EST 2008


On Mon, 10 Nov 2008 04:50:17 -0600
Julien ROZO <scm at sourcemage.org> wrote:

> GIT changes to master z-rejected grimoire by Julien ROZO
> <julien at rozo.org>:
> 
>  ChangeLog                          |    3 +++
>  z-games/openarena-bin/BUILD        |    1 -
>  z-games/openarena-bin/DEPENDS      |    5 -----
>  z-games/openarena-bin/DETAILS      |   19 -------------------
>  z-games/openarena-bin/HISTORY      |   16 ----------------
>  z-games/openarena-bin/INSTALL      |    8 --------
>  z-games/openarena-bin/POST_INSTALL |   13 -------------
>  z-games/openarena-bin/PREPARE      |    1 -
>  z-games/openarena-bin/PRE_BUILD    |    7 -------
>  z-games/openarena-bin/oa_ded       |   14 --------------
>  z-games/openarena-bin/openarena    |   14 --------------
>  11 files changed, 3 insertions(+), 98 deletions(-)
> 
> New commits:
> commit 3be725f12d1715c27cb37d31bc7ce4f63ca55d7b
> Author: Julien ROZO <julien at rozo.org>
> Commit: Julien ROZO <julien at rozo.org>
> 
>     openarena-bin: moved to binary grimoire
> 
> commit d8693fd44de65a9575e8066c288d3dba1fefe5ca
> Author: Julien ROZO <julien at rozo.org>
> Commit: Julien ROZO <julien at rozo.org>
> 
>     openarena-bin: added PRE_INSTALL to remove Windows and Mac OS X
> files before installation

Can you do this in PRE_BUILD so they're definitely ignored throughout
the entire process? :)

> diff --git a/bin-games/openarena-bin/INSTALL
> b/bin-games/openarena-bin/INSTALL new file mode 100755
> index 0000000..d6b856a
> --- /dev/null
> +++ b/bin-games/openarena-bin/INSTALL
> @@ -0,0 +1,8 @@
> +INSTALL_DIR=${INSTALL_ROOT}/opt/openarena  &&
> +mkdir $INSTALL_DIR  &&
> +cp -v ${SPELL_DIRECTORY}/openarena ${INSTALL_ROOT}/usr/games  &&
> +cp -v ${SPELL_DIRECTORY}/oa_ded ${INSTALL_ROOT}/usr/games  &&
> +cp -rv * $INSTALL_DIR  &&
> +cd $INSTALL_DIR  &&
> +find_and_scam  &&
> +chmod 750 {oa_ded,openarena}.{i386,x86_64}

You should modify the files before installation, that way they are
copied with the right permissions. This is mostly important for managed
files (e.g. config files or files installed with install_config_file),
since one file would be copied to the stage (if using castfs) or to
a $(file).$(date) file, while the currently installed file would have
it's perms changed (and would now be marked as unmodified for this
install of the spell).

-sandalle

-- 
Eric Sandall                     |  Source Mage GNU/Linux Developer
eric at sandall.us PGP: 0xA8EFDD61  |  http://www.sourcemage.org/
http://eric.sandall.us/          |  http://counter.li.org/  #196285
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20081110/97021435/attachment.bin 


More information about the SM-Commit mailing list