ports/76387: new port: games/hattrickorganizer

Lars Engels lars.engels at 0x20.net
Tue Jan 18 02:10:22 UTC 2005


>Number:         76387
>Category:       ports
>Synopsis:       new port: games/hattrickorganizer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 18 02:10:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Lars Engels
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD bart.bsd-geek.de 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Mon Jan 10 03:57:08 CET 2005 root at bart.bsd-geek.de:/usr/obj/usr/src/sys/BART i386


	
>Description:
This is a port of Hattrick Organizer. It is a management tool for the
online football manager game at Hattrick.org
WWW: http://www.hattrickorganizer.de

>How-To-Repeat:
	
>Fix:

# 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:
#
#	/usr/ports/games/hattrickorganizer/
#	/usr/ports/games/hattrickorganizer/ho.shar
#	/usr/ports/games/hattrickorganizer/files
#	/usr/ports/games/hattrickorganizer/files/hattrickorganizer
#	/usr/ports/games/hattrickorganizer/pkg-descr
#	/usr/ports/games/hattrickorganizer/Makefile
#	/usr/ports/games/hattrickorganizer/distinfo
#	/usr/ports/games/hattrickorganizer/pkg-plist
#
echo c - /usr/ports/games/hattrickorganizer/
mkdir -p /usr/ports/games/hattrickorganizer/ > /dev/null 2>&1
echo x - /usr/ports/games/hattrickorganizer/ho.shar
sed 's/^X//' >/usr/ports/games/hattrickorganizer/ho.shar << 'END-of-/usr/ports/games/hattrickorganizer/ho.shar'
X# This is a shell archive.  Save it in a file, remove anything before
X# this line, and then unpack it by entering "sh file".  Note, it may
X# create directories; files and directories will be owned by you and
X# have default permissions.
X#
X# This archive contains:
X#
X#	/usr/ports/games/hattrickorganizer/
X#	/usr/ports/games/hattrickorganizer/ho.shar
X#	/usr/ports/games/hattrickorganizer/files
X#	/usr/ports/games/hattrickorganizer/files/hattrickorganizer
X#	/usr/ports/games/hattrickorganizer/pkg-descr
X#	/usr/ports/games/hattrickorganizer/Makefile
X#	/usr/ports/games/hattrickorganizer/distinfo
X#	/usr/ports/games/hattrickorganizer/pkg-plist
X#
Xecho c - /usr/ports/games/hattrickorganizer/
Xmkdir -p /usr/ports/games/hattrickorganizer/ > /dev/null 2>&1
Xecho x - /usr/ports/games/hattrickorganizer/ho.shar
Xsed 's/^X//' >/usr/ports/games/hattrickorganizer/ho.shar << 'END-of-/usr/ports/games/hattrickorganizer/ho.shar'
END-of-/usr/ports/games/hattrickorganizer/ho.shar
echo c - /usr/ports/games/hattrickorganizer/files
mkdir -p /usr/ports/games/hattrickorganizer/files > /dev/null 2>&1
echo x - /usr/ports/games/hattrickorganizer/files/hattrickorganizer
sed 's/^X//' >/usr/ports/games/hattrickorganizer/files/hattrickorganizer << 'END-of-/usr/ports/games/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
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 (! -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-/usr/ports/games/hattrickorganizer/files/hattrickorganizer
echo x - /usr/ports/games/hattrickorganizer/pkg-descr
sed 's/^X//' >/usr/ports/games/hattrickorganizer/pkg-descr << 'END-of-/usr/ports/games/hattrickorganizer/pkg-descr'
XThis is a port of Hattrick Organizer. It is a management tool for the
Xonline football manager game at Hattrick.org
X
X WWW: http://www.hattrickorganizer.de
X
X - Lars Engels
X lars at 0x20.net
END-of-/usr/ports/games/hattrickorganizer/pkg-descr
echo x - /usr/ports/games/hattrickorganizer/Makefile
sed 's/^X//' >/usr/ports/games/hattrickorganizer/Makefile << 'END-of-/usr/ports/games/hattrickorganizer/Makefile'
X# New ports collection makefile for:	hattrickorganizer
X# Date Created:		17 Jan 2005
X# Whom:			Lars Engels <lars.engels at 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 at 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.include <bsd.port.mk>
END-of-/usr/ports/games/hattrickorganizer/Makefile
echo x - /usr/ports/games/hattrickorganizer/distinfo
sed 's/^X//' >/usr/ports/games/hattrickorganizer/distinfo << 'END-of-/usr/ports/games/hattrickorganizer/distinfo'
XMD5 (ho_127.zip) = cc64e084c9fb96b85307aca0dd839038
XSIZE (ho_127.zip) = 3008391
END-of-/usr/ports/games/hattrickorganizer/distinfo
echo x - /usr/ports/games/hattrickorganizer/pkg-plist
sed 's/^X//' >/usr/ports/games/hattrickorganizer/pkg-plist << 'END-of-/usr/ports/games/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 at dirrm games/hattrickorganizer/sprache
X at dirrm games/hattrickorganizer/hoplugins/trainings/sprache
X at dirrm games/hattrickorganizer/hoplugins/trainings
X at dirrm games/hattrickorganizer/hoplugins/pluginUpdater/rsc
X at dirrm games/hattrickorganizer/hoplugins/pluginUpdater
X at dirrm games/hattrickorganizer/hoplugins
X at dirrm games/hattrickorganizer
END-of-/usr/ports/games/hattrickorganizer/pkg-plist
exit


	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list