aboutsummaryrefslogtreecommitdiff
path: root/games/trojka/files
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-14 11:54:25 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-14 11:54:25 +0000
commit28a2a12cce872f02236b1e8bd741f436ac342898 (patch)
tree3e1983399103b8856bbd2b7babea82cefb3f30bf /games/trojka/files
parentc18ca07ee198eaa665720146d748e744200e911e (diff)
downloadports-28a2a12cce872f02236b1e8bd741f436ac342898.tar.gz
ports-28a2a12cce872f02236b1e8bd741f436ac342898.zip
Notes
Diffstat (limited to 'games/trojka/files')
-rw-r--r--games/trojka/files/patch-Makefile19
-rw-r--r--games/trojka/files/patch-trojka.62
-rw-r--r--games/trojka/files/pkg-message.in7
3 files changed, 10 insertions, 18 deletions
diff --git a/games/trojka/files/patch-Makefile b/games/trojka/files/patch-Makefile
index 7f0360b996cc..7ef783233713 100644
--- a/games/trojka/files/patch-Makefile
+++ b/games/trojka/files/patch-Makefile
@@ -1,11 +1,11 @@
---- Makefile.orig Sat Oct 21 05:17:43 1995
-+++ Makefile Tue Jul 18 11:39:08 2000
-@@ -6,14 +6,25 @@
+--- Makefile.orig 1995-10-20 21:17:43 UTC
++++ Makefile
+@@ -6,14 +6,24 @@
#
-
-+SCOREDIR=$(PREFIX)/share/trojka
++SCOREDIR=/var/games
+SCOREFILE=$(SCOREDIR)/trojka.scores
+CFLAGS+= -DSCOREFILE=\"$(SCOREFILE)\"
OBJS= trojka.o screen.o scan.o hiscore.o system.o
@@ -17,18 +17,17 @@
install:
- cp trojka /usr/games
-+ install -c -d -m 0755 $(DESTDIR)$(SCOREDIR)
-+ install -c -s trojka $(DESTDIR)$(PREFIX)/bin
-+ install -c -m 0644 README $(DESTDIR)$(SCOREDIR)
-+ install -c -m 0664 /dev/null $(DESTDIR)$(SCOREFILE)
-+ install -c -m 0444 trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6
++ ${BSD_INSTALL_PROGRAM} trojka $(DESTDIR)$(PREFIX)/bin
++ ${BSD_INSTALL_MAN} trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6
++ mkdir -p $(DESTDIR)$(SCOREDIR)
++ touch $(DESTDIR)$(SCOREFILE).sample
+
+trojka.6.out: trojka.6
+ sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out
clean:
rm -f $(PROGS) *.o core a.out trojka.scores
-@@ -53,3 +64,5 @@
+@@ -53,3 +63,5 @@ hpux:
linux:
make trojka "CFLAGS=-DLINUX"
diff --git a/games/trojka/files/patch-trojka.6 b/games/trojka/files/patch-trojka.6
index c581ceb7cc6f..11c5512964f0 100644
--- a/games/trojka/files/patch-trojka.6
+++ b/games/trojka/files/patch-trojka.6
@@ -5,7 +5,7 @@
.SH FILES
.nf
-/usr/local/games/lib/trojka.scores The Trojka hiscore file
-+%%PREFIX%%/share/trojka/trojka.scores The Trojka hiscore file
++/var/games/trojka.scores The Trojka hiscore file
.SH HISTORY
First version written in 1989 for MS-Dog. Not long thereafter (in 1990)
diff --git a/games/trojka/files/pkg-message.in b/games/trojka/files/pkg-message.in
deleted file mode 100644
index ae85aabc78a7..000000000000
--- a/games/trojka/files/pkg-message.in
+++ /dev/null
@@ -1,7 +0,0 @@
-============================================================
-You now have suid binary (2755):
-
- %%PREFIX%%/bin/trojka
-
-Scores will not be saved if you don't set suid.
-============================================================