aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/gnarr/Makefile20
-rw-r--r--games/gnarr/distinfo1
-rw-r--r--games/gnarr/files/patch-aa44
-rw-r--r--games/gnarr/files/patch-ab61
-rw-r--r--games/gnarr/files/patch-ac41
-rw-r--r--games/gnarr/pkg-comment1
-rw-r--r--games/gnarr/pkg-descr1
-rw-r--r--games/gnarr/pkg-plist2
9 files changed, 172 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 09f53dc60c82..39ec2e780010 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -70,6 +70,7 @@
SUBDIR += glife
SUBDIR += gltron
SUBDIR += gma
+ SUBDIR += gnarr
SUBDIR += gniffel
SUBDIR += gno3dtet
SUBDIR += gnocatan
diff --git a/games/gnarr/Makefile b/games/gnarr/Makefile
new file mode 100644
index 000000000000..d366a3352f82
--- /dev/null
+++ b/games/gnarr/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: gnarr
+# Date created: 13 December 2000
+# Whom: roam@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnarr
+PORTVERSION= 2.0
+CATEGORIES= games
+MASTER_SITES= http://www.sacredchao.net/freednd/
+DISTNAME= ${PORTNAME}-2
+
+MAINTAINER= roam@FreeBSD.org
+
+MAN6= gnarr.6
+
+NO_BUILD= yes
+
+.include <bsd.port.mk>
diff --git a/games/gnarr/distinfo b/games/gnarr/distinfo
new file mode 100644
index 000000000000..92f9ea41bf32
--- /dev/null
+++ b/games/gnarr/distinfo
@@ -0,0 +1 @@
+MD5 (gnarr-2.tar.gz) = c240ee8f2e47cfdf2a67bf8a7308ac7d
diff --git a/games/gnarr/files/patch-aa b/games/gnarr/files/patch-aa
new file mode 100644
index 000000000000..09e16ebe2300
--- /dev/null
+++ b/games/gnarr/files/patch-aa
@@ -0,0 +1,44 @@
+--- Makefile 2000/12/13 13:10:33 1.1.1.1
++++ Makefile 2000/12/13 13:48:26 1.2
+@@ -1,13 +1,35 @@
++PREFIX ?= /usr/local
++BINDIR = ${PREFIX}/bin
++ETCDIR = ${PREFIX}/etc
++MANDIR = ${PREFIX}/man
++MAN6DIR = ${MANDIR}/man6
++
++INSTALL ?= install
++INST_COPY ?= -c
++INST_OWNER ?= -o root
++INST_GROUP ?= -g wheel
++INST_P_MODE ?= -m 555
++INST_D_MODE ?= -m 444
++
++INSTALL_PROGRAM ?= ${INSTALL} ${COPY} ${INST_OWNER} ${INST_GROUP} ${INST_P_MODE}
++INSTALL_DATA ?= ${INSTALL} ${COPY} ${INST_OWNER} ${INST_GROUP} ${INST_D_MODE}
++
++MKDIR ?= mkdir -p
++RM ?= rm -f
++
+ all:
+
+ install:
+- install -D -m 755 gnarr $(DESTDIR)/usr/games/gnarr
+- install -D -m 755 gnarr.rc $(DESTDIR)/etc/gnarrrc
+- install -D -m 644 gnarr.6 $(DESTDIR)/usr/share/man/man6/gnarr.6
++ ${MKDIR} ${BINDIR}
++ ${INSTALL_PROGRAM} gnarr ${BINDIR}
++ ${MKDIR} ${ETCDIR}
++ ${INSTALL_DATA} gnarr.rc ${ETCDIR}/gnarrrc
++ ${MKDIR} ${MAN6DIR}
++ ${INSTALL_DATA} gnarr.6 ${MAN6DIR}
+
+ clean:
+
+ uninstall:
+- rm -f $(DESTDIR)/usr/games/gnarr
+- rm -f $(DESTDIR)/etc/gnarrrc
+- rm -f $(DESTDIR)/usr/share/man/man6/gnarr.6
++ ${RM} ${BINDIR}/gnarr
++ ${RM} ${ETCDIR}/gnarrrc
++ ${RM} ${MAN6DIR}/gnarr.6
diff --git a/games/gnarr/files/patch-ab b/games/gnarr/files/patch-ab
new file mode 100644
index 000000000000..e2bfaf20f6ce
--- /dev/null
+++ b/games/gnarr/files/patch-ab
@@ -0,0 +1,61 @@
+--- gnarr 2000/12/13 13:10:33 1.1.1.1
++++ gnarr 2000/12/13 14:00:35 1.4
+@@ -1,15 +1,17 @@
+-#!/usr/bin/perl
++#!/usr/bin/perl -w
+ # public domain
+
+ use strict;
+
+ my $VERSION = "v2";
++my $PREFIX = "/usr/local";
+
+-my $one = 0; # Heh heh.
++my $one = 1; # Heh heh.
+
+ my %subrefs = ( '-h' => [\&help, 'print this help text'],
+ '-v' => [\&ver, 'print version information'],
+- '-1' => [\&one, 'print one cry and exit'],
++ '-1' => [\&one, 'print one cry and exit (default)'],
++ '-m' => [\&mult, 'print multiple cries'],
+ '-l' => [\&list, 'list substitutions (long)'] );
+
+ my @place = ("hearth",
+@@ -135,13 +137,20 @@
+ }
+ }
+
+-open( BASE, "/etc/gnarrrc" );
+-open( USER, "$ENV{HOME}/.gnarrrc" );
+-my @base = (<BASE>, <USER>);
++my @base = ();
++
++if (open( BASE, "$PREFIX/etc/gnarrrc" )) {
++ push @base, (<BASE>);
++ close BASE;
++}
++if (open( USER, "$ENV{HOME}/.gnarrrc" )) {
++ push @base, (<USER>);
++ close USER;
++}
++
+ chomp @base;
+-close USER;
+-close BASE;
+
++die("No data read from gnarrc files!\n") if ($#base == -1);
+
+ do {
+
+@@ -187,8 +196,10 @@
+ print "Please send any enhancements to piman\@sacredchao.net.\n\n";
+ exit();
+ }
++
++sub one { $one = 1; }
+
+-sub one { $one = 1; }
++sub mult { $one = 0; }
+
+ sub list {
+ print "PLACE:\n"; print " $_\n" foreach (@place);
diff --git a/games/gnarr/files/patch-ac b/games/gnarr/files/patch-ac
new file mode 100644
index 000000000000..ee0697db4553
--- /dev/null
+++ b/games/gnarr/files/patch-ac
@@ -0,0 +1,41 @@
+--- gnarr.6 2000/12/13 13:10:33 1.1.1.1
++++ gnarr.6 2000/12/13 14:16:02 1.2
+@@ -3,7 +3,7 @@
+ .SH NAME
+ gnarr - generate a dwarven battle cry
+
+-\fBgnarr \fR[\fI-1\fR]
++\fBgnarr \fR[\fB-1m\fR]
+ .br
+ \fBgnarr -l\fR
+ .br
+@@ -18,21 +18,24 @@
+
+ .SH OPTIONS
+ .IP -1
+-Print one battle cry and exit (normal behavior is to prompt for another).
++Print one battle cry and exit (normal behavior, as opposed to \fB-m\fR).
+ Suitable for use in scripts.
+
++.IP -h
++Print a help text describing command options.
++
++.IP -m
++Print battle cries, prompting for more after each one.
++
+ .IP -l
+ Print all replacements Gnarr can make to templates. You should probably
+ pipe this to a pager.
+
+-.IP -h
+-Print a help text describing command options.
+-
+ .IP -v
+ Print version information.
+
+ .SH FILES
+-.IP \fB/etc/gnarrrc/fR, \fB~/.gnarrrc\fR
++.IP \fB/etc/gnarrrc\fR,\ \fB~/.gnarrrc\fR
+ Contains the templates Gnarr uses to construct battle cries; one is a global
+ system file (installed with Gnarr), the other is user-specific.
+
diff --git a/games/gnarr/pkg-comment b/games/gnarr/pkg-comment
new file mode 100644
index 000000000000..34e088e61403
--- /dev/null
+++ b/games/gnarr/pkg-comment
@@ -0,0 +1 @@
+A program for generating battle cries
diff --git a/games/gnarr/pkg-descr b/games/gnarr/pkg-descr
new file mode 100644
index 000000000000..34e088e61403
--- /dev/null
+++ b/games/gnarr/pkg-descr
@@ -0,0 +1 @@
+A program for generating battle cries
diff --git a/games/gnarr/pkg-plist b/games/gnarr/pkg-plist
new file mode 100644
index 000000000000..51ef72ef29d2
--- /dev/null
+++ b/games/gnarr/pkg-plist
@@ -0,0 +1,2 @@
+bin/gnarr
+etc/gnarrrc