aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMark Pulford <markp@FreeBSD.org>2001-06-10 04:14:04 +0000
committerMark Pulford <markp@FreeBSD.org>2001-06-10 04:14:04 +0000
commit3f55344195a287d4d5adb2ca04da1e11f97479a9 (patch)
tree9c261b39ba2b6f2515b85a88c2b07ba8d4ee2ffb /games
parentd74753326ca7605cb902b94cf2495211bdf2936f (diff)
downloadports-3f55344195a287d4d5adb2ca04da1e11f97479a9.tar.gz
ports-3f55344195a287d4d5adb2ca04da1e11f97479a9.zip
Add conquest 7.1,
a multi-player curses space warfare game similar to Netrek. PR: 26455 Reviewed by: will
Notes
Notes: svn path=/head/; revision=43735
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/conquest/Makefile59
-rw-r--r--games/conquest/distinfo1
-rw-r--r--games/conquest/pkg-comment1
-rw-r--r--games/conquest/pkg-descr5
-rw-r--r--games/conquest/pkg-install22
-rw-r--r--games/conquest/pkg-message16
-rw-r--r--games/conquest/pkg-plist13
8 files changed, 118 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 76989241486f..124a7e0bb58d 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -46,6 +46,7 @@
SUBDIR += clanbomber
SUBDIR += columns
SUBDIR += connect4
+ SUBDIR += conquest
SUBDIR += corewars
SUBDIR += cosmo
SUBDIR += cowsay
diff --git a/games/conquest/Makefile b/games/conquest/Makefile
new file mode 100644
index 000000000000..c44ae6644259
--- /dev/null
+++ b/games/conquest/Makefile
@@ -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>
diff --git a/games/conquest/distinfo b/games/conquest/distinfo
new file mode 100644
index 000000000000..aae3411bbb2d
--- /dev/null
+++ b/games/conquest/distinfo
@@ -0,0 +1 @@
+MD5 (conquest-7.1.src.tar.gz) = eb12d4e1d74db603c1ccc81d8d3b09de
diff --git a/games/conquest/pkg-comment b/games/conquest/pkg-comment
new file mode 100644
index 000000000000..da1cbca43353
--- /dev/null
+++ b/games/conquest/pkg-comment
@@ -0,0 +1 @@
+A multi-player curses space warfare game similar to Netrek
diff --git a/games/conquest/pkg-descr b/games/conquest/pkg-descr
new file mode 100644
index 000000000000..1754397f931a
--- /dev/null
+++ b/games/conquest/pkg-descr
@@ -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
diff --git a/games/conquest/pkg-install b/games/conquest/pkg-install
new file mode 100644
index 000000000000..8af060bc6be7
--- /dev/null
+++ b/games/conquest/pkg-install
@@ -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
diff --git a/games/conquest/pkg-message b/games/conquest/pkg-message
new file mode 100644
index 000000000000..cb1b0097e520
--- /dev/null
+++ b/games/conquest/pkg-message
@@ -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
diff --git a/games/conquest/pkg-plist b/games/conquest/pkg-plist
new file mode 100644
index 000000000000..00c6ff50e74d
--- /dev/null
+++ b/games/conquest/pkg-plist
@@ -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