FreeBSD Bugzilla – Attachment 50600 Details for
Bug 77042
new port: games/hattrickorganizer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 11.61 KB, created by
Lars Engels
on 2005-02-03 01:20:13 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Lars Engels
Created:
2005-02-03 01:20:13 UTC
Size:
11.61 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># hattrickorganizer/ ># hattrickorganizer/files ># hattrickorganizer/files/hattrickorganizer ># hattrickorganizer/pkg-descr ># hattrickorganizer/Makefile ># hattrickorganizer/distinfo ># hattrickorganizer/pkg-plist ># hattrickorganizer/pkg-message ># >echo c - hattrickorganizer/ >mkdir -p hattrickorganizer/ > /dev/null 2>&1 >echo c - hattrickorganizer/files >mkdir -p hattrickorganizer/files > /dev/null 2>&1 >echo x - hattrickorganizer/files/hattrickorganizer >sed 's/^X//' >hattrickorganizer/files/hattrickorganizer << 'END-of-hattrickorganizer/files/hattrickorganizer' >X#!/bin/tcsh >X >X >X### If you like to, you can try to fix the backup/restore >X### commands and submit a pr :) >X >X >X# Enter the maximum amount of backups you do want to store. >X# Default is 5 >X# >X#MAX_BACKUPS=5 >X >Xset MAX_BACKUPS=5 >X >X >X########################################################## >X# DO NOT EDIT ANY MORE UNTIL YOU KNOW WHAT YOU'RE DOING! # >X########################################################## >X >X >X# Enter HO!'s directory. Default is the current directory >X# >X#HODIR=. >X >Xset HODIR=/usr/local/games/hattrickorganizer >X >Xset HOME=~/.hattrickorganizer >X >X# Enter the default backup-directory. It will be created >X# in $HODIR/$DB/ if it doesn't exist. Default is `backup' >X# >X#BACKUPDIR=backup >X >Xset BACKUPDIR=~/.hattrickorganizer/backup >X >Xset JAVA=`which java` >X >Xset PLUGINSDIR=~/.hattrickorganizer/hoplugins >X >X# database-directory: >X >Xset DATABASEDIR=~/.hattrickorganizer/db >X >X# Store the name of this script. >X >Xset HONAME=$0 >X >X# Which database to backup? >X >Xset SCRIPT=database.script >X >X# We need a date for the backup-file >X >Xset DATE=`date "+%Y-%m-%d"` >X >X# Perform backup by default? >X >Xset BACKUP=true >X >X# Restore by default? >X# IMPORTANT! This is just for initialisation! >X# If you set this to true strange things will occure! >X >Xset RESTORE=false >X >X# Which version of HO! is this? >X >Xset HOVERSION=`cat $HODIR/version.txt` >X >X# MAIN >X >X# Run throuh the params >X >Xif ($#argv != 0) then >X switch ($argv[1]) >X case {-v,--version}: >X echo "This is HO\! version $HOVERSION" >X exit (0) >X #case {-nb,--nobackup}: >X # set BACKUP=false >X # breaksw >X case {-h,--help}: >X echo "Usage: $HONAME [option]" >X echo "Options:" >X echo " -h --help This help text." >X echo " -v --version Show HO\! version." >X # echo " -nb --nobackup Start without backup" >X # echo " -r --restore Restore the last backup-/le." >X # echo " -rd --restoredate <date>" >X # echo " Restore the backup-/le from <date>" >X # echo " -bd --backupdir Use this as the backup directory." >X exit (0) >X #case {-bd,--backupdir}: >X # set BACKUPDIR=$2 >X # shift >X # breaksw >X #case {-r,--restore}: >X # set RESTORE=true >X # set BACKUP=false >X # breaksw >X #case {rd,--restoredir}: >X # set RESTORE=true >X # set RESTOREDATE=$2 >X # if (-z $RESTOREDATE) then >X # echo "Option rd or restoredate needs a parameter\!" >X # exit 1 >X # endif >X # set BACKUP=false; >X # shift >X # breaksw >X default: >X echo "Unknown parameter $1" >X echo "Try $HONAME --help to get help." >X exit (1) >X endsw >X shift >Xendif >X >Xif (! -d $HOME) then >X echo "creating ~/.hattrickorganizer" >X mkdir ~/.hattrickorganizer >Xendif >X >Xif (! -d $DATABASEDIR) then >X echo "creating $DATABASEDIR" >X mkdir -p $DATABASEDIR >Xendif >X >Xif (! -d $PLUGINSDIR) then >X echo "creating $PLUGINSDIR" >X mkdir -p $PLUGINSDIR >Xendif >X >Xif (! -e $HOME/sprache) then >X ln -s $HODIR/sprache $HOME/sprache >Xendif >X >X# Perform backups or restore only if $DATABASEDIR exists >X >X#if (-d $DATABASEDIR) then >X# `$BACKUP` >X# cd $DATABASEDIR >X# if (! -d $BACKUPDIR) then >X# echo "creating $DATABASEDIR$BACKUPDIR" >X# mkdir -p $BACKUPDIR >X# endif >X# cd $BACKUPDIR >X# #while (`ls -r | wc -l` -gt $MAX_BACKUPS) >X# # rm -f `ls -r | tail -1` >X# #end >X# cd .. >X# if (-r $SCRIPT) then >X# gzip -c $SCRIPT > $BACKUPDIR/$SCRIPT-$DATE.gz >X# else >X# echo "No database found, so there is nothing to backup." >X# endif >X# cd .. >X# >X# `$RESTORE` >X# cd $DATABASEDIR >X# if (-z $RESTOREDATE) then >X# if (`ls $BACKUPDIR/$SCRIPT*.gz | wc -l` -lt 1) then >X# echo "No backup-/le found." >X# exit 1 >X# endif >X# gunzip -c `ls $BACKUPDIR/$SCRIPT*.gz | tail -1` > $SCRIPT >X# else >X# if (-r $BACKUPDIR/$SCRIPT-$RESTOREDATE.gz) then >X# gunzip -c "$BACKUPDIR/$SCRIPT-$RESTOREDATE.gz" > $SCRIPT >X# echo "restored database from $BACKUPDIR/$SCRIPT-$RESTOREDATE.gz" >X# else >X# echo "Error reading backup-/le $BACKUPDIR/$SCRIPT-$RESTOREDATE.gz." >X# cd .. >X# exit 1 >X# endif >X# endif >X# cd .. >X# >X#else >X# echo "No directory $DATABASEDIR found. This is your /rst HO\!-Session, isn't it? Have fun\!" >X#endif >X >X# Start HO! >X cd $HOME >X $JAVA -jar $HODIR/hocoded.jar >X >X# Exit this script >X >Xexit 0 >END-of-hattrickorganizer/files/hattrickorganizer >echo x - hattrickorganizer/pkg-descr >sed 's/^X//' >hattrickorganizer/pkg-descr << 'END-of-hattrickorganizer/pkg-descr' >XHattrick Organizer is a management tool for the >Xonline football manager game at Hattrick.org >X >XWWW: http://www.hattrickorganizer.de >X >X- Lars Engels >Xlars@0x20.net >END-of-hattrickorganizer/pkg-descr >echo x - hattrickorganizer/Makefile >sed 's/^X//' >hattrickorganizer/Makefile << 'END-of-hattrickorganizer/Makefile' >X# New ports collection makefile for: hattrickorganizer >X# Date Created: 17 Jan 2005 >X# Whom: Lars Engels <lars.engels@0x20.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= hattrickorganizer >XPORTVERSION= 1.271 >XCATEGORIES= games >XMASTER_SITES= http://www.wow-auctions.net/ho/download/ >XDISTNAME= ho_127 >X >XMAINTAINER= lars.engels@0x20.net >XCOMMENT= A management tool for Hattrick.org written in Java >X >XEXTRACT_AFTER_ARGS= -d ${WRKSRC} >X >XUSE_ZIP= yes >XNO_BUILD= yes >XUSE_JAVA= yes >XJAVA_VERSION= 1.4+ >X >Xdo-install: >X @${MKDIR} ${PREFIX}/games/${PORTNAME} >X @${CP} -r ${WRKSRC}/* ${PREFIX}/games/${PORTNAME} >X @${CP} -r ${FILESDIR}/hattrickorganizer /${PREFIX}/bin/ >X @${CHMOD} 755 /${PREFIX}/bin/hattrickorganizer >X >Xpost-install: >X @${CAT} ${PKGMESSAGE} >X >X.include <bsd.port.mk> >END-of-hattrickorganizer/Makefile >echo x - hattrickorganizer/distinfo >sed 's/^X//' >hattrickorganizer/distinfo << 'END-of-hattrickorganizer/distinfo' >XMD5 (ho_127.zip) = cc64e084c9fb96b85307aca0dd839038 >XSIZE (ho_127.zip) = 3008391 >END-of-hattrickorganizer/distinfo >echo x - hattrickorganizer/pkg-plist >sed 's/^X//' >hattrickorganizer/pkg-plist << 'END-of-hattrickorganizer/pkg-plist' >Xbin/hattrickorganizer >Xgames/hattrickorganizer/HO.bat >Xgames/hattrickorganizer/HO.sh >Xgames/hattrickorganizer/Logo.ico >Xgames/hattrickorganizer/defaults.xml >Xgames/hattrickorganizer/hocoded.jar >Xgames/hattrickorganizer/hoplugins/PluginUpdater.class >Xgames/hattrickorganizer/hoplugins/Trainings.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/DialogListener.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/Downloader.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/HOVersion.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/HPLanguageInfo.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/HPPluginInfo.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/InfoButtonListener.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/RSC.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/TableEditor.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/TableModel.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/UpdateListener.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/UpdaterCellRenderer.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/UpdaterDialog.class >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/CheckBoxNotSelected.gif >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/CheckBoxSelected.gif >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/empty.gif >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/info.gif >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/languages.xml >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/tmp.xml >Xgames/hattrickorganizer/hoplugins/pluginUpdater/rsc/tmp.zip >Xgames/hattrickorganizer/hoplugins/trainings/OutputTable.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableModel.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$1.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$2.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$Arrow.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$Directive.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$MouseHandler.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$Row.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$SortableHeaderRenderer.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter$TableModelHandler.class >Xgames/hattrickorganizer/hoplugins/trainings/OutputTableSorter.class >Xgames/hattrickorganizer/hoplugins/trainings/TrainingsTable.class >Xgames/hattrickorganizer/hoplugins/trainings/TrainingsTableModel.class >Xgames/hattrickorganizer/hoplugins/trainings/sprache/Deutsch.properties >Xgames/hattrickorganizer/hoplugins/trainings/sprache/English.properties >Xgames/hattrickorganizer/hoplugins/trainings/sprache/Nederlands.properties >Xgames/hattrickorganizer/hoplugins/trainings/sprache/Spanish.properties >Xgames/hattrickorganizer/hsqldb_lic.txt >Xgames/hattrickorganizer/lizenz.txt >Xgames/hattrickorganizer/sprache/Argentina.properties >Xgames/hattrickorganizer/sprache/Bulgarian.properties >Xgames/hattrickorganizer/sprache/Catalan.properties >Xgames/hattrickorganizer/sprache/Czech.properties >Xgames/hattrickorganizer/sprache/Danish.properties >Xgames/hattrickorganizer/sprache/Deutsch.properties >Xgames/hattrickorganizer/sprache/English.properties >Xgames/hattrickorganizer/sprache/Finnish.properties >Xgames/hattrickorganizer/sprache/Italiano.properties >Xgames/hattrickorganizer/sprache/Latvija.properties >Xgames/hattrickorganizer/sprache/Lithuanian.properties >Xgames/hattrickorganizer/sprache/Nederlands.properties >Xgames/hattrickorganizer/sprache/Polish.properties >Xgames/hattrickorganizer/sprache/Portugues.properties >Xgames/hattrickorganizer/sprache/PortuguesBrasil.properties >Xgames/hattrickorganizer/sprache/Romanian.properties >Xgames/hattrickorganizer/sprache/Spanish.properties >Xgames/hattrickorganizer/sprache/french.properties >Xgames/hattrickorganizer/sprache/languages.properties >Xgames/hattrickorganizer/sprache/norsk.properties >Xgames/hattrickorganizer/sprache/svenska.properties >Xgames/hattrickorganizer/version.txt >Xshare/nls/POSIX >Xshare/nls/en_US.US-ASCII >X@dirrm games/hattrickorganizer/sprache >X@dirrm games/hattrickorganizer/hoplugins/trainings/sprache >X@dirrm games/hattrickorganizer/hoplugins/trainings >X@dirrm games/hattrickorganizer/hoplugins/pluginUpdater/rsc >X@dirrm games/hattrickorganizer/hoplugins/pluginUpdater >X@dirrm games/hattrickorganizer/hoplugins >X@dirrm games/hattrickorganizer >END-of-hattrickorganizer/pkg-plist >echo x - hattrickorganizer/pkg-message >sed 's/^X//' >hattrickorganizer/pkg-message << 'END-of-hattrickorganizer/pkg-message' >X************************************************************ >X >XCheck if ${PREFIX}/bin/java exists. If not, create a link: >X >X ln -s {PREFIX}/bin/javavm ${PREFIX}/bin/java >X >Xor change the start script ${PREFIX}/bin/hattrickorganizer >X >X************************************************************ >END-of-hattrickorganizer/pkg-message >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 77042
: 50600 |
50601
|
50602
|
50603
|
50604