mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Add conquest 7.1,
a multi-player curses space warfare game similar to Netrek. PR: 26455 Reviewed by: will
This commit is contained in:
parent
d74753326c
commit
3f55344195
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43735
@ -46,6 +46,7 @@
|
||||
SUBDIR += clanbomber
|
||||
SUBDIR += columns
|
||||
SUBDIR += connect4
|
||||
SUBDIR += conquest
|
||||
SUBDIR += corewars
|
||||
SUBDIR += cosmo
|
||||
SUBDIR += cowsay
|
||||
|
59
games/conquest/Makefile
Normal file
59
games/conquest/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# New ports collection makefile for: conquest
|
||||
# Date created: Apr 9, 2001
|
||||
# Whom: Mark Pulford <mark@kyne.com.au>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= conquest
|
||||
PORTVERSION= 7.1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www.radscan.com/conquest/
|
||||
EXTRACT_SUFX= .src.tar.gz
|
||||
|
||||
MAINTAINER= markp@FreeBSD.org
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
BINGRP= conquest
|
||||
SHAREGRP= conquest
|
||||
|
||||
post-patch:
|
||||
${PERL} -pi -e "s|\@prefix\@/conquest|\@prefix\@|g; \
|
||||
s|^.+\@chgrp .\(CONQGROUP\) conq.+||g; \
|
||||
s|^.+\@chmod 2771 conq.+||g;" ${WRKSRC}/Makefile.in
|
||||
${PERL} -pi -e "s/# include <termio.h>//g" ${WRKSRC}/c_defs.h
|
||||
${PERL} -pi -e "s/-O2 -fPIC//g" ${WRKSRC}/configure
|
||||
${PERL} -pi -e "s|/opt/conquest|${PREFIX}|g; \
|
||||
s|etc/conquestrc|etc/conquest/conquestrc|g; \
|
||||
s|bin/conqdriv|libexec/conqdriv|g; \
|
||||
s|etc/conquest_common.img|etc/conquest/conquest_common.img|g; \
|
||||
s|etc/conquest.log|share/conquest/conquest.log|g; \
|
||||
s|etc/conqnews.doc|share/conquest/conqnews.doc|g; \
|
||||
s|etc/conquest.doc|share/conquest/conquest.doc|g;" \
|
||||
${WRKSRC}/defs.h ${WRKSRC}/conf.h ${WRKSRC}/README
|
||||
|
||||
do-install:
|
||||
@${SH} pkg-install ${PORTNAME} PRE-INSTALL
|
||||
${INSTALL_PROGRAM} -m 2550 ${WRKSRC}/conqai ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conqdriv ${PREFIX}/libexec
|
||||
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conqoper ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/conqstrat ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conquest ${PREFIX}/bin
|
||||
${MKDIR} ${PREFIX}/etc/conquest
|
||||
${INSTALL_DATA} ${WRKSRC}/conqrule \
|
||||
${PREFIX}/etc/conquest/conqrule.sample
|
||||
${MKDIR} ${PREFIX}/share/conquest
|
||||
${INSTALL_DATA} ${WRKSRC}/conqnews.doc \
|
||||
${PREFIX}/share/conquest/conqnews.doc.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/conquest.doc ${PREFIX}/share/conquest
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/doc/conquest
|
||||
${INSTALL_DATA} ${WRKSRC}/SERVER.DOC ${WRKSRC}/README \
|
||||
${PREFIX}/share/doc/conquest
|
||||
.endif
|
||||
@${SH} pkg-install ${PORTNAME} POST-INSTALL
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
games/conquest/distinfo
Normal file
1
games/conquest/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (conquest-7.1.src.tar.gz) = eb12d4e1d74db603c1ccc81d8d3b09de
|
1
games/conquest/pkg-comment
Normal file
1
games/conquest/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A multi-player curses space warfare game similar to Netrek
|
5
games/conquest/pkg-descr
Normal file
5
games/conquest/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Conquest is a real-time multi-player space warfare game for curses.
|
||||
The object of the game is similar to Netrek - conquer the universe by
|
||||
taking over planets.
|
||||
|
||||
WWW: http://www.radscan.com/conquest.html
|
22
games/conquest/pkg-install
Normal file
22
games/conquest/pkg-install
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "${PKG_PREFIX}" ] && PREFIX="${PKG_PREFIX}"
|
||||
[ "${PREFIX}" ] || PREFIX=/usr/local
|
||||
|
||||
case "$2" in
|
||||
PRE-INSTALL)
|
||||
if ! pw group show conquest >/dev/null 2>&1
|
||||
then
|
||||
echo "===> Creating group conquest"
|
||||
pw add group conquest
|
||||
fi
|
||||
;;
|
||||
POST-INSTALL)
|
||||
chown root:conquest ${PREFIX}/etc/conquest
|
||||
chmod 775 ${PREFIX}/etc/conquest
|
||||
;;
|
||||
*)
|
||||
echo "Incorrect parameter"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
16
games/conquest/pkg-message
Normal file
16
games/conquest/pkg-message
Normal file
@ -0,0 +1,16 @@
|
||||
Before Conquest can be run it must be configured. First copy the sample
|
||||
configuration into place:
|
||||
|
||||
# cp etc/conquest/conqrule.sample etc/conquest/conqrule
|
||||
|
||||
Then you can initialise and enable the game:
|
||||
|
||||
# sbin/conqoper -C
|
||||
# sbin/conqoper -Ie -E
|
||||
|
||||
Conqoper is documented in share/doc/conquest/README.
|
||||
|
||||
Also a file for the in-game news must be created. This package includes a
|
||||
sample news file you can copy into place:
|
||||
|
||||
# cp share/conquest/conqnews.doc.sample share/conquest/conqnews.doc
|
13
games/conquest/pkg-plist
Normal file
13
games/conquest/pkg-plist
Normal file
@ -0,0 +1,13 @@
|
||||
bin/conquest
|
||||
etc/conquest/conqrule.sample
|
||||
libexec/conqdriv
|
||||
sbin/conqai
|
||||
sbin/conqoper
|
||||
sbin/conqstrat
|
||||
share/conquest/conqnews.doc.sample
|
||||
share/conquest/conquest.doc
|
||||
%%PORTDOCS%%share/doc/conquest/README
|
||||
%%PORTDOCS%%share/doc/conquest/SERVER.DOC
|
||||
%%PORTDOCS%%@dirrm share/doc/conquest
|
||||
@dirrm etc/conquest
|
||||
@dirrm share/conquest
|
Loading…
Reference in New Issue
Block a user