1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

- The server for the block building game Minecraft

PR:		ports/162515
Submitted by:	Martin Kropfinger <freebsd@rakor-net.de> (maintainer)
Approved by:	gabor (mentor)
This commit is contained in:
Michael Scheidell 2011-12-21 16:59:16 +00:00
parent de7256a9be
commit 0c214f449c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287811
5 changed files with 72 additions and 0 deletions

View File

@ -524,6 +524,7 @@
SUBDIR += meritous
SUBDIR += mindfocus
SUBDIR += mindguard
SUBDIR += minecraft-server
SUBDIR += minetest
SUBDIR += mirrormagic
SUBDIR += miscom

View File

@ -0,0 +1,58 @@
# New ports collection makefile for: minecraft-client
# Date created: 12 November 2011
# Whom: Martin Kropfinger
#
# $FreeBSD$
#
PORTNAME= minecraft-server
PORTVERSION= 1.0.0
CATEGORIES= games java
MASTER_SITES= http://s3.amazonaws.com/MinecraftDownload/launcher/:minecraft \
http://www.minecraftwiki.net/images/f/f7/:icon
DISTNAME= minecraft_server
DISTFILES= minecraft_server.jar:minecraft \
Bookshelf.png:icon
EXTRACT_ONLY=
MAINTAINER= freebsd@rakor-net.de
COMMENT= Server for the block building game
OPTIONS= X11 "Build with X11 support" On
.include <bsd.port.options.mk>
WRKSRC= ${WRKDIR}
NO_BUILD= yes
USE_JAVA= yes
.if !defined(WITHOUT_X11)
DESKTOP_ENTRIES= "Minecraft-Server" "Block building game (server)" "${DATADIR}/Bookshelf.png" "minecraft-server" "Application;Game;" false
.endif
.if !defined(WITHOUT_X11)
PLIST_SUB+= X11=""
.else
PLIST_SUB+= X11="@comment "
.endif
do-install:
${MKDIR} ${DATADIR}
(${INSTALL_DATA} "${DISTDIR}/minecraft_server.jar" ${DATADIR}/)
.if !defined(WITHOUT_X11)
(${INSTALL_DATA} "${DISTDIR}/Bookshelf.png" ${DATADIR}/)
.endif
echo "#!/bin/sh" > ${WRKDIR}/${PORTNAME}
echo "if ! test -d ~/.minecraft-server ; then" >> ${WRKDIR}/${PORTNAME}
echo " mkdir ~/.minecraft-server" >> ${WRKDIR}/${PORTNAME}
echo "fi" >> ${WRKDIR}/${PORTNAME}
echo "cd ~/.minecraft-server" >> ${WRKDIR}/${PORTNAME}
${CP} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-nogui
echo "java -Xmx1024M -Xms1024M -jar ${DATADIR}/minecraft_server.jar" >> ${WRKDIR}/${PORTNAME}
echo "java -Xmx1024M -Xms1024M -jar ${DATADIR}/minecraft_server.jar nogui" >> ${WRKDIR}/${PORTNAME}-nogui
.if !defined(WITHOUT_X11)
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
.endif
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-nogui ${PREFIX}/bin/
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
SHA256 (minecraft_server.jar) = 985c5aaacf1a27ae1579a41190d2ecff0007b869ce68b57d893a6c6613ee2618
SIZE (minecraft_server.jar) = 747345
SHA256 (Bookshelf.png) = fe5e7f0bbbbe284379cb5e7aed8d539b727a3039f7fe8c64a179e4fc2a0e1821
SIZE (Bookshelf.png) = 9674

View File

@ -0,0 +1,4 @@
This is the server for the popular block building game Minecraft.
There is a nongui-version and a gui-version.
WWW: http://www.minecraft.net/

View File

@ -0,0 +1,5 @@
share/minecraft-server/minecraft_server.jar
%%X11%%share/minecraft-server/Bookshelf.png
%%X11%%bin/minecraft-server
bin/minecraft-server-nogui
@dirrm share/minecraft-server