LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1123|回复: 2

[arch][PKGBUILD]Maya7.01

[复制链接]
发表于 2006-9-4 11:22:26 | 显示全部楼层 |阅读模式
软件名:Maya
版本:7.01-1
软件简介:3D图形
补丁:无
编写:ardin
提交日期:06年9月4日

要重装OS了,做个备份. Maya 从 verycd 上下的. rpm2targz 在 tur : staging

PKGBUILD

  1. # $Id: PKGBUILD,v 7.0 2006/2/1 06:30:26 ardin Exp $
  2. # Maintainer: ardin <>
  3. pkgname=maya
  4. pkgver=7.0
  5. pkgrel=1
  6. pkgdesc="ALIAS MAYA UNLIMITED VERSION 7.0"
  7. url=""
  8. sfpath=""
  9. depends=('rpm2targz' 'j2re')
  10. install=maya.install
  11. source=(aksusbd-suse-1.7-2.i386.rpm AWCommon-9.5-1.i686.rpm\
  12.         AWCommon-server-9.5-1.i686.rpm Maya7_0-7.0-374.i686.rpm\
  13.         Maya7_0-docs_en_US-7.0-380.i686.rpm Maya7_0-docserver-7.0-380.i686.rpm\
  14.         patch-0.1arch2.6.14)
  15. md5sums=('7d75b9f2e4b185163c7da28259f06382' '9e38403752742ba8146a644f13fe4ba8'\
  16.          '65797655d429ea32b1d329c66638c7e3' '95fc4270e3b333b838b58b1ba688129f'\
  17.          '21a88efcf35e33cc942daaa18f83fd76' '7df9b19eea049b96b35b752bc1746d61'\
  18.          '6e79149964a8e2a3f07f8bb25f48983b'\
  19.          )

  20. build() {
  21.         cd $startdir/pkg/
  22.         rpm2targz $startdir/src/*.rpm
  23.         for rpm_file in $startdir/pkg/*.tar.gz; do
  24.             tar zxfv $rpm_file
  25.             rm -f $rpm_file
  26.         done
  27.         unset rpm_file
  28.         #mv $startdir/pkg/usr/aw $startdir/pkg/opt
  29.         mv $startdir/pkg/etc/init.d/* $startdir/pkg/etc/rc.d
  30.         mv $startdir/pkg/etc/rc.d/init.d/* $startdir/pkg/etc/rc.d
  31.         rm -rf $startdir/pkg/usr/aw/maya7.0/docs/jre/ $startdir/pkg/usr/sbin/rcaksusbd $startdir/pkg/etc/init.d/ $startdir/pkg/etc/rc.d/init.d
  32.         patch -Np1 -i $startdir/src/patch-0.1arch2.6.14
  33. }
复制代码


files 1:maya.install

  1. # arg 1: the new package version
  2. post_install() {
  3.         ln -s /usr/aw/maya7.0/bin/Maya7.0 /opt/bin/maya
  4.         if [ ! "`grep /usr/aw/maya7.0/lib etc/ld.so.conf`" ]; then
  5.                 echo -n "updating /etc/ld.so.conf... "
  6.                 echo "/usr/aw/maya7.0/lib" >>etc/ld.so.conf
  7.                 sbin/ldconfig -r .
  8.                 echo "done."
  9.         fi
  10. }

  11. # arg 1: the new package version
  12. # arg 2: the old package version
  13. post_upgrade() {
  14.         post_install $1
  15. }

  16. # arg 1: the old package version
  17. pre_remove() {
  18.         rm /opt/bin/maya
  19.         echo -ne "\nupdating /etc/ld.so.conf... "
  20.         sed -i -e '/\/usr\/aw\/maya7.0\/lib ' etc/ld.so.conf
  21.         sbin/ldconfig -r .
  22.         echo "done."
  23. }

  24. op=$1
  25. shift

  26. $op $*
复制代码


files 2: patch for arch kernel 2.6
  1. diff -ruN pkg/etc/rc.d/aksusbd pkg-ok/etc/rc.d/aksusbd
  2. --- pkg/etc/rc.d/aksusbd        2003-05-22 23:04:27.000000000 +0800
  3. +++ pkg-ok/etc/rc.d/aksusbd        2006-02-05 10:57:21.000000000 +0800
  4. @@ -10,7 +10,7 @@
  5. ### END INIT INFO
  6. # $Id: aksusbd.suse,v 1.5 2002/11/13 13:20:16 chris Exp $

  7. -. /etc/rc.status
  8. +#. /etc/rc.status
  9. #. /etc/rc.config

  10. ## Determine the base and follow a runlevel link name.
  11. @@ -31,15 +31,15 @@
  12. #      rc_exit          exit appropriate to overall rc status

  13. # First reset status of this service
  14. -rc_reset
  15. +#rc_reset
  16. case "$1" in
  17.      start)
  18.         echo -n "Starting AKSUSB daemon"

  19. -        startproc @@@AKSUSBDDESTDIR@@@/aksusbd
  20. +        add_daemon @@@AKSUSBDDESTDIR@@@/aksusbd

  21.         # Remember status and be verbose
  22. -        rc_status -v
  23. +        #rc_status -v
  24.         ;;
  25.      stop)
  26.         echo -n "Shutting down AKSUSB daemon"
  27. @@ -47,29 +47,29 @@
  28.         killproc -TERM @@@AKSUSBDDESTDIR@@@/aksusbd

  29.         # Remember status and be verbose
  30. -        rc_status -v
  31. +        #rc_status -v
  32.         ;;
  33.      restart)
  34.         $0 stop  &&  $0 start

  35.         # Remember status and be quiet
  36. -        rc_status
  37. +        #rc_status
  38.         ;;
  39. -    reload)
  40. +    #reload)

  41. -        $0 stop  &&  $0 start
  42. +        #$0 stop  &&  $0 start

  43.         # Remember status and be verbose
  44. -        rc_status -v
  45. -        ;;
  46. -    status)
  47. -        echo -n "Checking for AKSUSB daemon: "
  48. +        #rc_status -v
  49. +        #;;
  50. +    #status)
  51. +        #echo -n "Checking for AKSUSB daemon: "

  52. -        checkproc @@@AKSUSBDDESTDIR@@@/aksusbd && echo OK || echo No process
  53. -        ;;
  54. +#        #checkproc @@@AKSUSBDDESTDIR@@@/aksusbd && echo OK || echo No process
  55. +        #;;
  56.      *)
  57. -        echo "Usage: $0 {start|stop|status|restart|reload}"
  58. +        echo "Usage: $0 {start|stop|restart}"
  59.         exit 1
  60.         ;;
  61. esac
  62. -rc_exit
  63. +#rc_exit
  64. diff -ruN pkg/etc/rc.d/aw_flexlm pkg-ok/etc/rc.d/aw_flexlm
  65. --- pkg/etc/rc.d/aw_flexlm        2005-06-09 22:30:47.000000000 +0800
  66. +++ pkg-ok/etc/rc.d/aw_flexlm        2006-02-05 10:59:28.000000000 +0800
  67. @@ -7,7 +7,7 @@
  68. # processname: lmgrd

  69. # source function library.
  70. -. /etc/rc.d/init.d/functions
  71. +. /etc/rc.d/functions

  72. FLEXLM=/usr/aw/COM/etc
  73. LICENSE_DIR=/var/flexlm
  74. @@ -19,7 +19,7 @@
  75.         echo "Starting FLEXlm License Server Daemon for Alias|Wavefront software"
  76.         if [ -x "$FLEXLM/lmgrd" ]; then
  77.                 if [ -f "$LICENSE_FILE" ] ; then
  78. -                        $SU "$FLEXLM/lmgrd -c $LICENSE_FILE -l /usr/tmp/aw_flexlm.log"       
  79. +                        $SU "$FLEXLM/lmgrd -c $LICENSE_FILE -l /var/log/aw_flexlm.log"       
  80.                         echo       
  81.                 else
  82.                         echo "ERROR Cannot run FLEXlm Licensing daemon: lmgrd"
  83. diff -ruN pkg/usr/aw/maya7.0/bin/Maya7.0 pkg-ok/usr/aw/maya7.0/bin/Maya7.0
  84. --- pkg/usr/aw/maya7.0/bin/Maya7.0        2005-07-20 10:34:24.000000000 +0800
  85. +++ pkg-ok/usr/aw/maya7.0/bin/Maya7.0        2006-02-05 11:06:20.000000000 +0800
  86. @@ -1,4 +1,4 @@
  87. -#!/bin/csh -f
  88. +#!/usr/bin/tcsh -f
  89. #Tag 0x00C98a00
  90. #*
  91. #*+***********************************************************************
  92. diff -ruN pkg/usr/aw/maya7.0/docs/startDocServer.sh pkg-ok/usr/aw/maya7.0/docs/startDocServer.sh
  93. --- pkg/usr/aw/maya7.0/docs/startDocServer.sh        2005-07-15 18:31:52.000000000 +0800
  94. +++ pkg-ok/usr/aw/maya7.0/docs/startDocServer.sh        2006-02-05 11:11:42.000000000 +0800
  95. @@ -60,7 +60,7 @@
  96.                 fi
  97.         ;;
  98.         Linux)
  99. -                JAVACMD=./jre/bin/java;
  100. +                JAVACMD=${JAVA_HOME}/bin/java;
  101.         ;;
  102. esac

复制代码
 楼主| 发表于 2006-9-8 12:41:36 | 显示全部楼层
TUR 不通了, 改用 rpmextract .

PKGBUILD

  1. # $Id: PKGBUILD,v 7.0 2006/2/1 06:30:26 ardin Exp $
  2. # Maintainer: ardin <ardinz@163.com>
  3. pkgname=maya
  4. pkgver=7.0
  5. pkgrel=1
  6. pkgdesc="ALIAS MAYA UNLIMITED VERSION 7.0"
  7. url=""
  8. sfpath=""
  9. depends=('tcsh' 'rpmextract' 'j2re' 'xorg')
  10. install=maya.install
  11. source=(aksusbd-suse-1.7-2.i386.rpm AWCommon-9.5-1.i686.rpm\
  12.         AWCommon-server-9.5-1.i686.rpm Maya7_0-7.0-374.i686.rpm\
  13.         Maya7_0-docs_en_US-7.0-380.i686.rpm Maya7_0-docserver-7.0-380.i686.rpm\
  14.         patch-0.1arch2.6 maya.sh)
  15. md5sums=('7d75b9f2e4b185163c7da28259f06382' '9e38403752742ba8146a644f13fe4ba8'\
  16.          '65797655d429ea32b1d329c66638c7e3' '95fc4270e3b333b838b58b1ba688129f'\
  17.          '21a88efcf35e33cc942daaa18f83fd76' '7df9b19eea049b96b35b752bc1746d61'\
  18.          '6e79149964a8e2a3f07f8bb25f48983b' 'e96c4b2c49efc8d9d518856055a82227'\
  19.          )

  20. build() {
  21.         cd $startdir/pkg/
  22.         #rpm2targz $startdir/src/*.rpm
  23.         for rpm_file in $startdir/src/*.rpm; do
  24.             /usr/bin/rpmextract.sh $rpm_file
  25.             #rm -f $rpm_file
  26.         done
  27.         unset rpm_file
  28.         #mv $startdir/pkg/usr/aw $startdir/pkg/opt
  29.         mv $startdir/pkg/etc/init.d/* $startdir/pkg/etc/rc.d
  30.         mv $startdir/pkg/etc/rc.d/init.d/* $startdir/pkg/etc/rc.d
  31.         mkdir -p $startdir/pkg/etc/profile.d
  32.         cp $startdir/src/maya.sh $startdir/pkg/etc/profile.d
  33.         chmod -R 755 *
  34.         ln -s /tmp usr
  35.         rm -rf $startdir/pkg/usr/aw/maya7.0/docs/jre/ $startdir/pkg/usr/sbin/rcaksusbd $startdir/pkg/etc/init.d/ $startdir/pkg/etc/rc.d/init.d
  36.         patch -Np1 -i $startdir/src/patch-0.1arch2.6
  37. }
复制代码


files 1:maya.install

  1. # arg 1: the new package version
  2. post_install() {
  3.         ln -s /usr/aw/maya7.0/bin/Maya7.0 /opt/bin/maya
  4.         if [ ! "`grep /usr/aw/maya7.0/lib etc/ld.so.conf`" ]; then
  5.                 echo -n "updating /etc/ld.so.conf... "
  6.                 echo "/usr/aw/maya7.0/lib" >>etc/ld.so.conf
  7.                 sbin/ldconfig -r .
  8.                 echo "done."
  9.         fi
  10. }

  11. # arg 1: the new package version
  12. # arg 2: the old package version
  13. post_upgrade() {
  14.         post_install $1
  15. }

  16. # arg 1: the old package version
  17. pre_remove() {
  18.         rm /opt/bin/maya
  19.         echo -ne "\nupdating /etc/ld.so.conf... "
  20.         sed -i -e '/\/usr\/aw\/maya7.0\/lib ' etc/ld.so.conf
  21.         sbin/ldconfig -r .
  22.         echo "done."
  23. }

  24. op=$1
  25. shift

  26. $op $*
复制代码

files 2: patch for arch kernel 2.6

  1. diff -ruN pkg/etc/rc.d/aksusbd pkg-ok/etc/rc.d/aksusbd
  2. --- pkg/etc/rc.d/aksusbd        2003-05-22 23:04:27.000000000 +0800
  3. +++ pkg-ok/etc/rc.d/aksusbd        2006-02-05 10:57:21.000000000 +0800
  4. @@ -10,7 +10,7 @@
  5. ### END INIT INFO
  6. # $Id: aksusbd.suse,v 1.5 2002/11/13 13:20:16 chris Exp $

  7. -. /etc/rc.status
  8. +#. /etc/rc.status
  9. #. /etc/rc.config

  10. ## Determine the base and follow a runlevel link name.
  11. @@ -31,15 +31,15 @@
  12. #      rc_exit          exit appropriate to overall rc status

  13. # First reset status of this service
  14. -rc_reset
  15. +#rc_reset
  16. case "$1" in
  17.      start)
  18.         echo -n "Starting AKSUSB daemon"

  19. -        startproc @@@AKSUSBDDESTDIR@@@/aksusbd
  20. +        add_daemon @@@AKSUSBDDESTDIR@@@/aksusbd

  21.         # Remember status and be verbose
  22. -        rc_status -v
  23. +        #rc_status -v
  24.         ;;
  25.      stop)
  26.         echo -n "Shutting down AKSUSB daemon"
  27. @@ -47,29 +47,29 @@
  28.         killproc -TERM @@@AKSUSBDDESTDIR@@@/aksusbd

  29.         # Remember status and be verbose
  30. -        rc_status -v
  31. +        #rc_status -v
  32.         ;;
  33.      restart)
  34.         $0 stop  &&  $0 start

  35.         # Remember status and be quiet
  36. -        rc_status
  37. +        #rc_status
  38.         ;;
  39. -    reload)
  40. +    #reload)

  41. -        $0 stop  &&  $0 start
  42. +        #$0 stop  &&  $0 start

  43.         # Remember status and be verbose
  44. -        rc_status -v
  45. -        ;;
  46. -    status)
  47. -        echo -n "Checking for AKSUSB daemon: "
  48. +        #rc_status -v
  49. +        #;;
  50. +    #status)
  51. +        #echo -n "Checking for AKSUSB daemon: "

  52. -        checkproc @@@AKSUSBDDESTDIR@@@/aksusbd && echo OK || echo No process
  53. -        ;;
  54. +#        #checkproc @@@AKSUSBDDESTDIR@@@/aksusbd && echo OK || echo No process
  55. +        #;;
  56.      *)
  57. -        echo "Usage: $0 {start|stop|status|restart|reload}"
  58. +        echo "Usage: $0 {start|stop|restart}"
  59.         exit 1
  60.         ;;
  61. esac
  62. -rc_exit
  63. +#rc_exit
  64. diff -ruN pkg/etc/rc.d/aw_flexlm pkg-ok/etc/rc.d/aw_flexlm
  65. --- pkg/etc/rc.d/aw_flexlm        2005-06-09 22:30:47.000000000 +0800
  66. +++ pkg-ok/etc/rc.d/aw_flexlm        2006-02-05 10:59:28.000000000 +0800
  67. @@ -7,7 +7,7 @@
  68. # processname: lmgrd

  69. # source function library.
  70. -. /etc/rc.d/init.d/functions
  71. +. /etc/rc.d/functions

  72. FLEXLM=/usr/aw/COM/etc
  73. LICENSE_DIR=/var/flexlm
  74. @@ -19,7 +19,7 @@
  75.         echo "Starting FLEXlm License Server Daemon for Alias|Wavefront software"
  76.         if [ -x "$FLEXLM/lmgrd" ]; then
  77.                 if [ -f "$LICENSE_FILE" ] ; then
  78. -                        $SU "$FLEXLM/lmgrd -c $LICENSE_FILE -l /usr/tmp/aw_flexlm.log"       
  79. +                        $SU "$FLEXLM/lmgrd -c $LICENSE_FILE -l /var/log/aw_flexlm.log"       
  80.                         echo       
  81.                 else
  82.                         echo "ERROR Cannot run FLEXlm Licensing daemon: lmgrd"
  83. diff -ruN pkg/usr/aw/maya7.0/bin/Maya7.0 pkg-ok/usr/aw/maya7.0/bin/Maya7.0
  84. --- pkg/usr/aw/maya7.0/bin/Maya7.0        2005-07-20 10:34:24.000000000 +0800
  85. +++ pkg-ok/usr/aw/maya7.0/bin/Maya7.0        2006-02-05 11:06:20.000000000 +0800
  86. @@ -1,4 +1,4 @@
  87. -#!/bin/csh -f
  88. +#!/usr/bin/tcsh -f
  89. #Tag 0x00C98a00
  90. #*
  91. #*+***********************************************************************
  92. diff -ruN pkg/usr/aw/maya7.0/docs/startDocServer.sh pkg-ok/usr/aw/maya7.0/docs/startDocServer.sh
  93. --- pkg/usr/aw/maya7.0/docs/startDocServer.sh        2005-07-15 18:31:52.000000000 +0800
  94. +++ pkg-ok/usr/aw/maya7.0/docs/startDocServer.sh        2006-02-05 11:11:42.000000000 +0800
  95. @@ -60,7 +60,7 @@
  96.                 fi
  97.         ;;
  98.         Linux)
  99. -                JAVACMD=./jre/bin/java;
  100. +                JAVACMD=${JAVA_HOME}/bin/java;
  101.         ;;
  102. esac

复制代码

files 3:maya.sh

  1. export PATH=$PATH:/usr/aw/maya7.0/bin
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-9-8 15:15:57 | 显示全部楼层
现在 maya版本是8了...

没有在linux装过 今天回去试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表