mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-29 16:11:31 +00:00
* Solaris package patch
This commit is contained in:
parent
be6ca402e8
commit
8b41386905
19 changed files with 349 additions and 0 deletions
42
code/unix/setup/pkg/ioq3ded.sh
Normal file
42
code/unix/setup/pkg/ioq3ded.sh
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
# Rev: $Id: ioq3ded.sh,v 1.9 2006/01/18 13:47:42 raistlin Exp raistlin $
|
||||
# Needed to make symlinks/shortcuts work.
|
||||
# the binaries must run with correct working directory
|
||||
#
|
||||
|
||||
IOQ3_DIR=/usr/local/share/games/quake3
|
||||
|
||||
COMPILE_PLATFORM=`uname|sed -e s/_.*//|tr A-Z a-z`
|
||||
COMPILE_ARCH=`uname -p | sed -e s/i.86/i386/`
|
||||
|
||||
EXEC_REL=release
|
||||
|
||||
#EXEC_BIN=ioquake3.${COMPILE_ARCH}
|
||||
#EXEC_BIN=ioquake3-smp.${COMPILE_ARCH}
|
||||
EXEC_BIN=ioq3ded.${COMPILE_ARCH}
|
||||
|
||||
EXEC_FLAGS="+set fs_cdpath ${IOQ3_DIR} +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0"
|
||||
|
||||
EXEC_DIR_LIST=${IOQ3_DIR}
|
||||
|
||||
for d in ${EXEC_DIR_LIST}
|
||||
do
|
||||
if [ -d $d ]; then
|
||||
EXEC_DIR=${d}
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "X${EXEC_DIR}" != "X" ]; then
|
||||
if [ ! -x ${EXEC_DIR}/${EXEC_BIN} ]; then
|
||||
echo "Executable ${EXEC_DIR}/${EXEC_BIN} not found!" ; exit 1
|
||||
fi
|
||||
cd ${IOQ3_DIR} && \
|
||||
${EXEC_DIR}/${EXEC_BIN} ${EXEC_FLAGS} $*
|
||||
exit $?
|
||||
else
|
||||
echo "No ioq3 binaries found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
41
code/unix/setup/pkg/ioquake3.sh
Normal file
41
code/unix/setup/pkg/ioquake3.sh
Normal file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
# Rev: $Id: ioquake3.sh,v 1.11 2006/01/18 13:47:42 raistlin Exp raistlin $
|
||||
# Needed to make symlinks/shortcuts work.
|
||||
# the binaries must run with correct working directory
|
||||
|
||||
IOQ3_DIR=/usr/local/share/games/quake3
|
||||
|
||||
COMPILE_PLATFORM=`uname|sed -e s/_.*//|tr A-Z a-z`
|
||||
COMPILE_ARCH=`uname -p | sed -e s/i.86/i386/`
|
||||
|
||||
EXEC_REL=release
|
||||
|
||||
EXEC_BIN=ioquake3.${COMPILE_ARCH}
|
||||
#EXEC_BIN=ioquake3-smp.${COMPILE_ARCH}
|
||||
#EXEC_BIN=ioq3ded.${COMPILE_ARCH}
|
||||
|
||||
EXEC_FLAGS="+set fs_cdpath ${IOQ3_DIR} +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0"
|
||||
|
||||
EXEC_DIR_LIST=${IOQ3_DIR}
|
||||
|
||||
for d in ${EXEC_DIR_LIST}
|
||||
do
|
||||
if [ -d $d ]; then
|
||||
EXEC_DIR=${d}
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "X${EXEC_DIR}" != "X" ]; then
|
||||
if [ ! -x ${EXEC_DIR}/${EXEC_BIN} ]; then
|
||||
echo "Executable ${EXEC_DIR}/${EXEC_BIN} not found!" ; exit 1
|
||||
fi
|
||||
cd ${IOQ3_DIR} && \
|
||||
${EXEC_DIR}/${EXEC_BIN} ${EXEC_FLAGS} $*
|
||||
exit $?
|
||||
else
|
||||
echo "No ioq3 binaries found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
3
code/unix/setup/pkg/ioquake3/depend
Normal file
3
code/unix/setup/pkg/ioquake3/depend
Normal file
|
@ -0,0 +1,3 @@
|
|||
P SUNWxilrl XIL Runtime Environment
|
||||
P SFWsdl SDL - Simple DirectMedia Layer library
|
||||
P ioquake3d Icculus.Org Quake3 game data files for Solaris 10 (X11,GLX,SDL)
|
12
code/unix/setup/pkg/ioquake3/pkginfo.template
Normal file
12
code/unix/setup/pkg/ioquake3/pkginfo.template
Normal file
|
@ -0,0 +1,12 @@
|
|||
CLASSES=none
|
||||
BASEDIR=/usr/local/share/games
|
||||
TZ=PST
|
||||
PATH=/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
|
||||
PKG=ioquake3
|
||||
NAME=Icculus.Org Quake3 1.34 for Solaris 10 (X11,GLX,SDL)
|
||||
VERSION=
|
||||
CATEGORY=application,graphics,opengl
|
||||
DESC=Icculus.Org Quake3 1.34 for Solaris 10 (http://www.icculus.org/quake3)
|
||||
VENDOR=http://www.icculus.org/quake3
|
||||
EMAIL=quake@cojot.name
|
||||
PKGSAV=/var/sadm/pkg/ioquake3/save
|
21
code/unix/setup/pkg/ioquake3/postinstall
Normal file
21
code/unix/setup/pkg/ioquake3/postinstall
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: postinstall,v 1.3 2006/01/21 12:54:52 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR/quake3
|
||||
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
|
||||
|
||||
if [ -d ${dest_dir} ]; then
|
||||
for inst_script in ioq3ded.sh ioquake3.sh
|
||||
do
|
||||
dest_script=${dest_dir}/${inst_script}
|
||||
if [ ! -h ${dest_script} ]; then
|
||||
ln -s ${quake3_dir}/${inst_script} ${dest_script}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
21
code/unix/setup/pkg/ioquake3/postremove
Normal file
21
code/unix/setup/pkg/ioquake3/postremove
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postremove $Id: postremove,v 1.3 2006/01/21 12:54:52 coyote Exp $
|
||||
#
|
||||
# postremove script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
|
||||
|
||||
if [ -d ${dest_dir} ]; then
|
||||
for inst_script in ioq3ded.sh ioquake3.sh
|
||||
do
|
||||
dest_script=${dest_dir}/${inst_script}
|
||||
if [ -h ${dest_script} ]; then
|
||||
rm -f ${dest_script}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
10
code/unix/setup/pkg/ioquake3/preinstall
Normal file
10
code/unix/setup/pkg/ioquake3/preinstall
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
|
||||
exit 0
|
||||
|
10
code/unix/setup/pkg/ioquake3/preremove
Normal file
10
code/unix/setup/pkg/ioquake3/preremove
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
|
||||
exit 0
|
||||
|
8
code/unix/setup/pkg/ioquake3/prototype.template
Normal file
8
code/unix/setup/pkg/ioquake3/prototype.template
Normal file
|
@ -0,0 +1,8 @@
|
|||
!default 0755 root bin
|
||||
i pkginfo
|
||||
i copyright
|
||||
i depend
|
||||
i postinstall
|
||||
i postremove
|
||||
i preinstall
|
||||
i preremove
|
1
code/unix/setup/pkg/ioquake3/space
Normal file
1
code/unix/setup/pkg/ioquake3/space
Normal file
|
@ -0,0 +1 @@
|
|||
/usr/local/share 20000 15
|
2
code/unix/setup/pkg/ioquake3d/depend
Normal file
2
code/unix/setup/pkg/ioquake3d/depend
Normal file
|
@ -0,0 +1,2 @@
|
|||
P SUNWxilrl XIL Runtime Environment
|
||||
P SFWsdl SDL - Simple DirectMedia Layer library
|
12
code/unix/setup/pkg/ioquake3d/pkginfo.template
Normal file
12
code/unix/setup/pkg/ioquake3d/pkginfo.template
Normal file
|
@ -0,0 +1,12 @@
|
|||
CLASSES=none
|
||||
BASEDIR=/usr/local/share/games
|
||||
TZ=PST
|
||||
PATH=/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
|
||||
PKG=ioquake3d
|
||||
NAME=Icculus.Org Quake3 game data files for Solaris 10 (X11,GLX,SDL)
|
||||
VERSION=
|
||||
CATEGORY=application,graphics,opengl
|
||||
DESC=Icculus.Org Quake3 game data files for Solaris 10 (http://www.icculus.org/quake3)
|
||||
VENDOR=http://www.icculus.org/quake3
|
||||
EMAIL=quake@cojot.name
|
||||
PKGSAV=/var/sadm/pkg/ioquake3d/save
|
10
code/unix/setup/pkg/ioquake3d/postinstall
Normal file
10
code/unix/setup/pkg/ioquake3d/postinstall
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: postinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
|
||||
exit 0
|
||||
|
10
code/unix/setup/pkg/ioquake3d/postremove
Normal file
10
code/unix/setup/pkg/ioquake3d/postremove
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: postremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
|
||||
exit 0
|
||||
|
10
code/unix/setup/pkg/ioquake3d/preinstall
Normal file
10
code/unix/setup/pkg/ioquake3d/preinstall
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
|
||||
exit 0
|
||||
|
10
code/unix/setup/pkg/ioquake3d/preremove
Normal file
10
code/unix/setup/pkg/ioquake3d/preremove
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
|
||||
#
|
||||
# postinstall script for quake3
|
||||
|
||||
quake3_dir=$BASEDIR
|
||||
|
||||
exit 0
|
||||
|
8
code/unix/setup/pkg/ioquake3d/prototype.template
Normal file
8
code/unix/setup/pkg/ioquake3d/prototype.template
Normal file
|
@ -0,0 +1,8 @@
|
|||
!default 0755 root bin
|
||||
i pkginfo
|
||||
i copyright
|
||||
i depend
|
||||
i postinstall
|
||||
i postremove
|
||||
i preinstall
|
||||
i preremove
|
1
code/unix/setup/pkg/ioquake3d/space
Normal file
1
code/unix/setup/pkg/ioquake3d/space
Normal file
|
@ -0,0 +1 @@
|
|||
/usr/local/share 50000 100
|
Loading…
Add table
Add a link
Reference in a new issue